mirror of https://github.com/kiwix/libkiwix.git
fixed indexer UI on OSX
This commit is contained in:
parent
2acadfb0c9
commit
91245974e2
|
@ -230,7 +230,6 @@ namespace kiwix {
|
||||||
/* Test if the thread should be cancelled */
|
/* Test if the thread should be cancelled */
|
||||||
pthread_testcancel();
|
pthread_testcancel();
|
||||||
}
|
}
|
||||||
self->setProgression(100);
|
|
||||||
self->indexingPostlude();
|
self->indexingPostlude();
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
Sleep(100);
|
Sleep(100);
|
||||||
|
@ -238,6 +237,7 @@ namespace kiwix {
|
||||||
sleep(1);
|
sleep(1);
|
||||||
#endif
|
#endif
|
||||||
self->articleIndexerRunning(false);
|
self->articleIndexerRunning(false);
|
||||||
|
self->setProgression(100);
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,10 @@ namespace kiwix {
|
||||||
void XapianIndexer::indexingPostlude() {
|
void XapianIndexer::indexingPostlude() {
|
||||||
this->flush();
|
this->flush();
|
||||||
this->writableDatabase.commit_transaction();
|
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
|
// commit is not available is old version of xapian and seems not mandatory there
|
||||||
// this->writableDatabase.commit();
|
// this->writableDatabase.commit();
|
||||||
|
|
Loading…
Reference in New Issue