From: Michael Friedrich Date: Thu, 4 Jul 2019 11:52:31 +0000 (+0200) Subject: Cluster: Avoid checking for checksum length with internal files in use X-Git-Tag: v2.11.0-rc1~37^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F7283%2Fhead;p=icinga2 Cluster: Avoid checking for checksum length with internal files in use fixes #7282 --- diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index 979156bf9..54a1bdf04 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -667,11 +667,7 @@ bool ApiListener::CheckConfigChange(const ConfigDirInformation& oldConfig, const << "' vs. new (" << newChecksums->GetLength() << "): '" << JsonEncode(newChecksums) << "'."; - // Different length means that either one or the other side added or removed something. */ - if (oldChecksums->GetLength() != newChecksums->GetLength()) - return true; - - // Both dictionaries have an equal size. + // Don't check for different length, this may be influenced from internal files ObjectLock olock(oldChecksums); for (const Dictionary::Pair& kv : oldChecksums) {