rcldb: message log level change (docid beyond updated.size())

This commit is contained in:
Jean-Francois Dockes 2020-03-27 10:56:14 +01:00
parent 7de66aae60
commit b6cd22c320

View File

@ -2030,12 +2030,15 @@ void Db::i_setExistingFlags(const string& udi, unsigned int docid)
// Set the up to date flag for the document and its // Set the up to date flag for the document and its
// subdocs. needUpdate() can also be called at query time (for // subdocs. needUpdate() can also be called at query time (for
// preview up to date check), so no error if the updated bitmap is // preview up to date check), so no error if the updated bitmap is
// of size 0 // of size 0, and also this now happens when fsIndexer() calls
// udiTreeMarkExisting() after an error, so the message level is
// now debug
if (docid >= updated.size()) { if (docid >= updated.size()) {
if (updated.size()) if (updated.size()) {
LOGERR("needUpdate: existing docid beyond updated.size(). Udi [" << LOGDEB("needUpdate: existing docid beyond updated.size() "
udi << "], docid " << docid << ", updated.size() " << "(probably ok). Udi [" << udi << "], docid " << docid <<
updated.size() << "\n"); ", updated.size() " << updated.size() << "\n");
}
return; return;
} else { } else {
updated[docid] = true; updated[docid] = true;