]> granicus.if.org Git - icinga2/commitdiff
Cluster: Avoid checking for checksum length with internal files in use 7283/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Thu, 4 Jul 2019 11:52:31 +0000 (13:52 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 4 Jul 2019 11:52:31 +0000 (13:52 +0200)
fixes #7282

lib/remote/apilistener-filesync.cpp

index 979156bf90bff3ad74bb297cbbb804ebf54e057a..54a1bdf048a44e4af6c41725044e1eb549192725 100644 (file)
@@ -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) {