diff options
Diffstat (limited to 'client/src/leap/soledad/client/sqlcipher.py')
-rw-r--r-- | client/src/leap/soledad/client/sqlcipher.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/leap/soledad/client/sqlcipher.py b/client/src/leap/soledad/client/sqlcipher.py index 249ffb1a..6a4fa01a 100644 --- a/client/src/leap/soledad/client/sqlcipher.py +++ b/client/src/leap/soledad/client/sqlcipher.py @@ -420,11 +420,6 @@ class SQLCipherU1DBSync(SQLCipherDatabase): """ ENCRYPT_LOOP_PERIOD = 1 - """ - A dictionary that hold locks which avoid multiple sync attempts from the - same database replica. - """ - def __init__(self, opts, soledad_crypto, replica_uid, cert_file, defer_encryption=False, sync_db=None, sync_enc_pool=None): @@ -513,6 +508,9 @@ class SQLCipherU1DBSync(SQLCipherDatabase): changes, we should add a thread-safe condition to ensure the db is ready before using it. + This method is atomic, with atomicity guaranteed by caller. Each + caller should implement a locking mechanism to ensure atomicity. + :param url: The url of the target replica to sync with. :type url: str :param creds: optional dictionary giving credentials to authorize the |