diff options
author | drebs <drebs@leap.se> | 2017-12-10 21:22:13 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-12-12 13:46:53 -0200 |
commit | 5cd3883f9ba98f3e78a818988860da0071c9480b (patch) | |
tree | cb6c421775b0941665299d0d20029d00ab3d63d9 /src/leap/soledad/client/_db | |
parent | 1c533260d94e03da59d46d507b1ed611fbae7011 (diff) |
[bug] use namespace when uploading blobs
Diffstat (limited to 'src/leap/soledad/client/_db')
-rw-r--r-- | src/leap/soledad/client/_db/blobs/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/soledad/client/_db/blobs/__init__.py b/src/leap/soledad/client/_db/blobs/__init__.py index 95814d46..4db7df6a 100644 --- a/src/leap/soledad/client/_db/blobs/__init__.py +++ b/src/leap/soledad/client/_db/blobs/__init__.py @@ -321,8 +321,9 @@ class BlobManager(BlobsSynchronizer): # In fact, some kind of pipe is needed here, where each write on db # handle gets forwarded into a write on the connection handle fd = yield self.local.get(blob_id, namespace=namespace) - yield self._encrypt_and_upload(blob_id, fd) - yield self.local.update_sync_status(blob_id, SyncStatus.SYNCED) + yield self._encrypt_and_upload(blob_id, fd, namespace=namespace) + yield self.local.update_sync_status(blob_id, SyncStatus.SYNCED, + namespace=namespace) def set_flags(self, blob_id, flags, namespace=''): """ |