fixed indexer UI on OSX

This commit is contained in:
reg_ 2012-04-24 16:25:03 +00:00
parent 2acadfb0c9
commit 91245974e2
2 changed files with 5 additions and 2 deletions

View File

@ -230,7 +230,6 @@ namespace kiwix {
/* Test if the thread should be cancelled */
pthread_testcancel();
}
self->setProgression(100);
self->indexingPostlude();
#ifdef _WIN32
Sleep(100);
@ -238,6 +237,7 @@ namespace kiwix {
sleep(1);
#endif
self->articleIndexerRunning(false);
self->setProgression(100);
pthread_exit(NULL);
return NULL;
}

View File

@ -92,7 +92,10 @@ namespace kiwix {
void XapianIndexer::indexingPostlude() {
this->flush();
this->writableDatabase.commit_transaction();
this->writableDatabase.close();
#ifdef __APPLE__
#else
this->writableDatabase.close();
#endif
// commit is not available is old version of xapian and seems not mandatory there
// this->writableDatabase.commit();