Cluster: Avoid checking for checksum length with internal files in use

fixes #7282
This commit is contained in:
Michael Friedrich 2019-07-04 13:52:31 +02:00
parent f3e682cef4
commit 46287c92e6
1 changed files with 1 additions and 5 deletions

View 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) {