mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
fixed indexer UI on OSX
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user