mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Cluster: Avoid checking for checksum length with internal files in use
fixes #7282
This commit is contained in:
parent
f3e682cef4
commit
46287c92e6
@ -667,11 +667,7 @@ bool ApiListener::CheckConfigChange(const ConfigDirInformation& oldConfig, const
|
|||||||
<< "' vs. new (" << newChecksums->GetLength() << "): '"
|
<< "' vs. new (" << newChecksums->GetLength() << "): '"
|
||||||
<< JsonEncode(newChecksums) << "'.";
|
<< JsonEncode(newChecksums) << "'.";
|
||||||
|
|
||||||
// Different length means that either one or the other side added or removed something. */
|
// Don't check for different length, this may be influenced from internal files
|
||||||
if (oldChecksums->GetLength() != newChecksums->GetLength())
|
|
||||||
return true;
|
|
||||||
|
|
||||||
// Both dictionaries have an equal size.
|
|
||||||
ObjectLock olock(oldChecksums);
|
ObjectLock olock(oldChecksums);
|
||||||
|
|
||||||
for (const Dictionary::Pair& kv : oldChecksums) {
|
for (const Dictionary::Pair& kv : oldChecksums) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user