Update exit status settings.

This commit is contained in:
iaom 2021-02-22 14:35:55 +08:00
parent 59bf8c53e8
commit eac2d7f418
2 changed files with 2 additions and 1 deletions

View File

@ -188,6 +188,7 @@ void FirstIndex::run(){
qWarning("write error\n");
}
qDebug("write data ok!\n");
GlobalSettings::getInstance()->reset(INOTIFY_NORMAL_EXIT);
return;
}

View File

@ -65,7 +65,7 @@ bool IndexGenerator::creatAllIndex(QQueue<QVector<QString> > *messageList)
// FileUtils::_index_status |= 0x1;
HandlePathList(messageList);
qDebug()<<"begin creatAllIndex";
GlobalSettings::getInstance()->setValue(INDEX_DATABASE_STATE,"1");
GlobalSettings::getInstance()->setValue(INDEX_DATABASE_STATE,"0");
try
{
// m_indexer = new Xapian::TermGenerator();