From 46287c92e6da0f63093ee8515ae042fd3a7490c4 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 4 Jul 2019 13:52:31 +0200 Subject: [PATCH] Cluster: Avoid checking for checksum length with internal files in use fixes #7282 --- lib/remote/apilistener-filesync.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) {