Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/carquinyol/indexstore.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/carquinyol/indexstore.py')
-rw-r--r--src/carquinyol/indexstore.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.py
index fbef496..e36f9a7 100644
--- a/src/carquinyol/indexstore.py
+++ b/src/carquinyol/indexstore.py
@@ -226,7 +226,7 @@ class IndexStore(object):
if not self._database:
return
- self._database.flush()
+ self._flush(True)
self._database = None
def remove_index(self):
@@ -334,7 +334,8 @@ class IndexStore(object):
def _flush(self, force=False):
"""Called after any database mutation"""
- logging.debug('IndexStore.flush: %r %r', force, self._pending_writes)
+ logging.debug('IndexStore.flush: force=%r _pending_writes=%r',
+ force, self._pending_writes)
self._set_index_updated(False)