From bec68ffa13edb514262e26b0b570045bdc3f4640 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Thu, 19 Apr 2012 13:31:15 +0000 Subject: [PATCH] + close cleanly the writabledatabse at the end of the indexing process --- src/common/kiwix/xapianIndexer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/kiwix/xapianIndexer.cpp b/src/common/kiwix/xapianIndexer.cpp index 64609b4a4..85acdb4e6 100644 --- a/src/common/kiwix/xapianIndexer.cpp +++ b/src/common/kiwix/xapianIndexer.cpp @@ -92,7 +92,8 @@ namespace kiwix { void XapianIndexer::indexingPostlude() { this->flush(); this->writableDatabase.commit_transaction(); - + this->writableDatabase.close(); + // commit is not available is old version of xapian and seems not mandatory there // this->writableDatabase.commit(); }