From: Michael Friedrich Date: Wed, 2 Oct 2019 08:49:02 +0000 (+0200) Subject: Avoid syncing .authorititative marker received from < 2.11 parent nodes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fheads%2Fbugfix%2Fcluster-sync-authoritative-file-old-versions;p=icinga2 Avoid syncing .authorititative marker received from < 2.11 parent nodes --- diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index 4aa381c43..f069e2623 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -450,6 +450,10 @@ Value ApiListener::ConfigUpdateHandler(const MessageOrigin::Ptr& origin, const D << "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. String content = kv.second;