suppress query time updated map spurious error message

This commit is contained in:
Jean-Francois Dockes 2018-10-07 09:07:51 +02:00
parent 90fe78191b
commit 3ff88a9541

View File

@ -1989,11 +1989,15 @@ void Db::setExistingFlags(const string& udi, unsigned int docid)
void Db::i_setExistingFlags(const string& udi, unsigned int docid) void Db::i_setExistingFlags(const string& udi, unsigned int docid)
{ {
// Set the up to date flag for the document and its subdocs // Set the up to date flag for the document and its
// subdocs. needUpdate() can also be called at query time (for
// preview up to date check), so no error if the updated bitmap is
// of size 0
if (docid >= updated.size()) { if (docid >= updated.size()) {
LOGERR("needUpdate: existing docid beyond updated.size(). Udi [" << if (updated.size())
udi << "], docid " << docid << ", updated.size() " << LOGERR("needUpdate: existing docid beyond updated.size(). Udi [" <<
updated.size() << "\n"); udi << "], docid " << docid << ", updated.size() " <<
updated.size() << "\n");
return; return;
} else { } else {
updated[docid] = true; updated[docid] = true;