diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-20 01:11:26 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-20 11:50:10 -0400 |
commit | 4bcb32639bff9a5aab076dba2bdc7667cea60c7f (patch) | |
tree | 92e5a611ab54f970903ca89c38d1e27f326709a3 /src/leap/mail/imap/soledadstore.py | |
parent | 95e00da239bd119ae161f249a74af229cb6c7759 (diff) |
fix rdoc duplication
Diffstat (limited to 'src/leap/mail/imap/soledadstore.py')
-rw-r--r-- | src/leap/mail/imap/soledadstore.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/mail/imap/soledadstore.py b/src/leap/mail/imap/soledadstore.py index ed5259a..e047e2e 100644 --- a/src/leap/mail/imap/soledadstore.py +++ b/src/leap/mail/imap/soledadstore.py @@ -350,6 +350,9 @@ class SoledadStore(ContentDedup): if call == self._PUT_DOC_FUN: doc_id = item.doc_id + if doc_id is None: + logger.warning("BUG! Dirty doc but has no doc_id!") + return with put_locks[doc_id]: doc = self._GET_DOC_FUN(doc_id) @@ -438,12 +441,12 @@ class SoledadStore(ContentDedup): :return: a tuple with recent-flags doc payload and callable :rtype: tuple """ - call = self._CREATE_DOC_FUN + call = self._PUT_DOC_FUN payload = rflags_wrapper.content if payload: logger.debug("Saving RFLAGS to Soledad...") - yield payload, call + yield rflags_wrapper, call # Mbox documents and attributes |