From b6cd22c32096a4e9c5ea58a7133e0b58234a8374 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 27 Mar 2020 10:56:14 +0100 Subject: [PATCH] rcldb: message log level change (docid beyond updated.size()) --- src/rcldb/rcldb.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index 0584c485..43a7f584 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -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 // 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 + // 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 (updated.size()) - LOGERR("needUpdate: existing docid beyond updated.size(). Udi [" << - udi << "], docid " << docid << ", updated.size() " << - updated.size() << "\n"); + if (updated.size()) { + LOGDEB("needUpdate: existing docid beyond updated.size() " + "(probably ok). Udi [" << udi << "], docid " << docid << + ", updated.size() " << updated.size() << "\n"); + } return; } else { updated[docid] = true;