changeset 5752:657bf0479970

xapian indexing: make sure done_count is initialized early (fix crash when index is locked)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 21 Dec 2010 16:12:41 +0100
parents e4479bf1c820
children 09e6d2748472
files MoinMoin/search/Xapian/indexing.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/Xapian/indexing.py	Mon Dec 13 21:49:11 2010 +0300
+++ b/MoinMoin/search/Xapian/indexing.py	Tue Dec 21 16:12:41 2010 +0100
@@ -190,13 +190,13 @@
 
             @param amount: amount of queue entries to process (default: -1 == all)
         """
+        done_count = 0
         try:
             request = self._indexingRequest(self.request)
             connection = self.get_indexer_connection()
             self.touch()
             total = amount
             try:
-                done_count = 0
                 while amount:
                     # trick: if amount starts from -1, it will never get 0
                     amount -= 1