Merge pull request #145 from iaom/0219-dev

Update exit status settings.
This commit is contained in:
Mouse Zhang 2021-02-23 08:40:03 +08:00 committed by GitHub
commit f4cc4353a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();