mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Merge pull request #7552 from Icinga/bugfix/cluster-sync-authoritative-file-old-versions
Avoid syncing .authorititative marker received from < 2.11 parent nodes
This commit is contained in:
commit
63c7f7e7b5
@ -450,6 +450,10 @@ Value ApiListener::ConfigUpdateHandler(const MessageOrigin::Ptr& origin, const D
|
|||||||
<< "Stage: Updating received configuration file '" << path << "' for zone '" << zoneName << "'.";
|
<< "Stage: Updating received configuration file '" << path << "' for zone '" << zoneName << "'.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Parent nodes < 2.11 always send this, avoid this bug and deny its receival prior to writing it on disk.
|
||||||
|
if (Utility::BaseName(path) == ".authoritative")
|
||||||
|
continue;
|
||||||
|
|
||||||
// Sync string content only.
|
// Sync string content only.
|
||||||
String content = kv.second;
|
String content = kv.second;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user