From 7faf55c9466b13c2e16f6242373a6e9bf5a27f8e Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@member.fsf.org>
Date: Thu, 29 Jul 2010 21:21:37 +0000
Subject: Set index_updated flag on ds shutting down
diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.py
index fbef496..e36f9a7 100644
a
|
b
|
class IndexStore(object): |
226 | 226 | if not self._database: |
227 | 227 | return |
228 | 228 | |
229 | | self._database.flush() |
| 229 | self._flush(True) |
230 | 230 | self._database = None |
231 | 231 | |
232 | 232 | def remove_index(self): |
… |
… |
class IndexStore(object): |
334 | 334 | |
335 | 335 | def _flush(self, force=False): |
336 | 336 | """Called after any database mutation""" |
337 | | logging.debug('IndexStore.flush: %r %r', force, self._pending_writes) |
| 337 | logging.debug('IndexStore.flush: force=%r _pending_writes=%r', |
| 338 | force, self._pending_writes) |
338 | 339 | |
339 | 340 | self._set_index_updated(False) |
340 | 341 | |