improve periodic indexing status reporting and timer processing

This commit is contained in:
dockes
2009-07-02 10:26:02 +00:00
parent b915c4aea7
commit 86a1684fff
2 changed files with 15 additions and 16 deletions
+7 -8
View File
@@ -508,14 +508,13 @@ DbIndexer::processone(const std::string &fn, const struct stat *stp,
// Tell what we are doing and check for interrupt request
if (m_updater) {
if ((++(m_updater->status.docsdone) % 10) == 0) {
m_updater->status.fn = fn;
if (!ipath.empty())
m_updater->status.fn += "|" + ipath;
if (!m_updater->update()) {
return FsTreeWalker::FtwStop;
}
}
++(m_updater->status.docsdone);
m_updater->status.fn = fn;
if (!ipath.empty())
m_updater->status.fn += "|" + ipath;
if (!m_updater->update()) {
return FsTreeWalker::FtwStop;
}
}
}