Avoid syncing .authorititative marker received from < 2.11 parent nodes

This commit is contained in:
Michael Friedrich 2019-10-02 10:49:02 +02:00
parent f0fcfdf910
commit e7c07062f8
1 changed files with 4 additions and 0 deletions

View File

@ -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;