diff --git a/briar-api/src/net/sf/briar/api/db/DatabaseComponent.java b/briar-api/src/net/sf/briar/api/db/DatabaseComponent.java index 1ce45bc8d..4f2612316 100644 --- a/briar-api/src/net/sf/briar/api/db/DatabaseComponent.java +++ b/briar-api/src/net/sf/briar/api/db/DatabaseComponent.java @@ -244,7 +244,8 @@ public interface DatabaseComponent { /** * Increments the outgoing connection counter for the given endpoint - * in the given rotation period and returns the old value of the counter. + * in the given rotation period and returns the old value, or -1 if the + * counter does not exist. */ long incrementConnectionCounter(ContactId c, TransportId t, long period) throws DbException; diff --git a/briar-core/src/net/sf/briar/db/Database.java b/briar-core/src/net/sf/briar/db/Database.java index 5aa63ee7e..9fdeae416 100644 --- a/briar-core/src/net/sf/briar/db/Database.java +++ b/briar-core/src/net/sf/briar/db/Database.java @@ -577,8 +577,9 @@ interface Database { boolean hasSendableMessages(T txn, ContactId c) throws DbException; /** - * Increments the outgoing connection counter for the given contact - * transport in the given rotation period and returns the old value; + * Increments the outgoing connection counter for the given endpoint + * in the given rotation period and returns the old value, or -1 if the + * counter does not exist. *

* Locking: window write. */