Ticket #2132: 0001-Set-index_updated-flag-on-ds-shutting-down.patch

File 0001-Set-index_updated-flag-on-ds-shutting-down.patch, 988 bytes (added by alsroot, 14 years ago)
  • src/carquinyol/indexstore.py

    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): 
    226226        if not self._database:
    227227            return
    228228
    229         self._database.flush()
     229        self._flush(True)
    230230        self._database = None
    231231
    232232    def remove_index(self):
    class IndexStore(object): 
    334334
    335335    def _flush(self, force=False):
    336336        """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)
    338339
    339340        self._set_index_updated(False)
    340341