diff options
author | Simon Schampijer <simon@laptop.org> | 2012-12-14 16:57:53 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2012-12-14 16:57:53 (GMT) |
commit | 56171a8e46d53d41ee5f056a9155975917ebc379 (patch) | |
tree | b041584e2c54ca27d872a0257e2b4be192f6b9d6 | |
parent | 766e83e4acbc1e448dc429701620cb379fc96f3a (diff) |
Flush the database when a new entry is created or an entry is deleted, SL #4305 SL #4306
Otherwise we see side effects of non-updated entries in the Journal
when altering the database fast.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Tested-by: Manuel QuiƱones <manuq@laptop.org>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
-rw-r--r-- | src/carquinyol/indexstore.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.py index d922100..24bdbcb 100644 --- a/src/carquinyol/indexstore.py +++ b/src/carquinyol/indexstore.py @@ -302,7 +302,7 @@ class IndexStore(object): self._database.replace_document(_PREFIX_FULL_VALUE + \ _PREFIX_UID + uid, document) - self._flush() + self._flush(True) def find(self, query): offset = query.pop('offset', 0) @@ -353,7 +353,7 @@ class IndexStore(object): def delete(self, uid): self._database.delete_document(_PREFIX_FULL_VALUE + _PREFIX_UID + uid) - self._flush() + self._flush(True) def get_activities(self): activities = [] |