diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-13 15:49:47 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-13 15:49:47 (GMT) |
commit | a0613664b4c32676a5c4b6681279eef8606b47cf (patch) | |
tree | 9c6395115b9104f8e17c4e90ba6b1bcaaffb3660 /src | |
parent | 5b1b6738f438a6607179ee139ccdc8dc095f24ec (diff) |
flush after change
Diffstat (limited to 'src')
-rw-r--r-- | src/olpc/datastore/xapianindex.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/olpc/datastore/xapianindex.py b/src/olpc/datastore/xapianindex.py index c0f1665..7cb54b6 100644 --- a/src/olpc/datastore/xapianindex.py +++ b/src/olpc/datastore/xapianindex.py @@ -154,14 +154,18 @@ class IndexManager(object): (uid, operation)) continue - # XXX: this isn't quite true, we haven't called flush - # yet so the document might not be on disk + # we do flush on each record now + self.flush() + logger.info("Indexed Content %s:%s" % (uid, vid)) # but we still tell the queue its complete self.queue.task_done() except Empty: pass + except: + logger.exception("Error in indexer") + ## except: ## import traceback ## traceback.print_exc() |