Revert change in indexfiles which was preventing the real time indexer from processing the web queue

This commit is contained in:
Jean-Francois Dockes 2015-02-16 19:35:24 +01:00
parent 9873407ac4
commit 811e02bf87

View File

@ -209,8 +209,6 @@ bool recursive_index(RclConfig *config, const string& top)
// this case we're called repeatedly in the same process, and the // this case we're called repeatedly in the same process, and the
// confindexer is only created once by makeIndexerOrExit (but the db closed and // confindexer is only created once by makeIndexerOrExit (but the db closed and
// flushed every time) // flushed every time)
// We set the noweb flag (the web queue is processed by default when
// confindexer::indexFiles is called from the realtime monitor)
bool indexfiles(RclConfig *config, list<string> &filenames) bool indexfiles(RclConfig *config, list<string> &filenames)
{ {
if (filenames.empty()) if (filenames.empty())
@ -218,7 +216,7 @@ bool indexfiles(RclConfig *config, list<string> &filenames)
makeIndexerOrExit(config, (op_flags & OPT_Z) != 0); makeIndexerOrExit(config, (op_flags & OPT_Z) != 0);
return confindexer->indexFiles(filenames, (op_flags&OPT_f) ? return confindexer->indexFiles(filenames, (op_flags&OPT_f) ?
ConfIndexer::IxFIgnoreSkip : ConfIndexer::IxFIgnoreSkip :
ConfIndexer::IxFNoWeb); ConfIndexer::IxFNone);
} }
// Delete a list of files. Same comments about call contexts as indexfiles. // Delete a list of files. Same comments about call contexts as indexfiles.
@ -227,7 +225,7 @@ bool purgefiles(RclConfig *config, list<string> &filenames)
if (filenames.empty()) if (filenames.empty())
return true; return true;
makeIndexerOrExit(config, (op_flags & OPT_Z) != 0); makeIndexerOrExit(config, (op_flags & OPT_Z) != 0);
return confindexer->purgeFiles(filenames, ConfIndexer::IxFNoWeb); return confindexer->purgeFiles(filenames, ConfIndexer::IxFNone);
} }
// Create stemming and spelling databases // Create stemming and spelling databases