diff --git a/src/ftshelpers.cc b/src/ftshelpers.cc index 52526aaa..c400fa05 100644 --- a/src/ftshelpers.cc +++ b/src/ftshelpers.cc @@ -162,6 +162,8 @@ void makeFTSIndex( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isCancell db.compact( dict->ftsIndexName() ); + db.close(); + Utils::Fs::removeDirectory( dict->ftsIndexName() + "_temp" ); } catch ( Xapian::Error & e ) {