index: ignore .update when store is empty

This somewhat emulates the 1.4 behavior.
This commit is contained in:
Dirk-Jan C. Binnema
2021-11-11 21:58:23 +02:00
parent ce08ec3250
commit e672f952a8
2 changed files with 4 additions and 0 deletions

View File

@ -767,6 +767,8 @@ Server::Private::index_handler(const Parameters& params)
Mu::Indexer::Config conf{};
conf.cleanup = get_bool_or(params, ":cleanup");
conf.lazy_check = get_bool_or(params, ":lazy-check");
// ignore .noupdate with an empty store.
conf.ignore_noupdate = store().empty();
indexer().stop();