diff options
Diffstat (limited to 'src/olpc/datastore/xapianindex.py')
-rw-r--r-- | src/olpc/datastore/xapianindex.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/olpc/datastore/xapianindex.py b/src/olpc/datastore/xapianindex.py index a859aa9..d071eba 100644 --- a/src/olpc/datastore/xapianindex.py +++ b/src/olpc/datastore/xapianindex.py @@ -22,7 +22,6 @@ import time import thread import threading import warnings -import traceback import secore import xapian as _xapian # we need to modify the QueryParser @@ -166,11 +165,7 @@ class IndexManager(object): self.deltact += 1 if force or self.deltact > FLUSH_THRESHOLD: with self._write_lock: - try: - self.write_index.flush() - except Exception: - logging.error('Index flush failed:\n' + \ - ''.join(traceback.format_exception(*sys.exc_info()))) + self.write_index.flush() #self.read_index.reopen() self.deltact = 0 else: |