Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2010-07-29 21:21:37 (GMT)
committer Anish Mangal <anish@sugarlabs.org>2011-08-26 06:19:51 (GMT)
commit24ebd11e4e1257afe8ea0e35108186a3a73353e5 (patch)
tree060f847211bb796acf216b94b9c131d074a38c26
parent00d3b02e06aa8a7943da5bdd2784b0e3d5176376 (diff)
Set index_updated flag on ds shutting down
Signed-off-by: Anish Mangal <anish@sugarlabs.org>
-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 333d702..62b843b 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)