]> granicus.if.org Git - icinga2/commitdiff
Avoid loading the authoritative marker for syncs at all cost 7544/head
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Fri, 27 Sep 2019 11:42:17 +0000 (13:42 +0200)
committerAlexander A. Klimov <alexander.klimov@icinga.com>
Fri, 27 Sep 2019 11:42:17 +0000 (13:42 +0200)
lib/remote/apilistener-filesync.cpp

index efb2a59e680f147413b261efc68603247be30d84..e6e331584634c91f7bc9ce597150554b8e0b6bdb 100644 (file)
@@ -33,6 +33,10 @@ REGISTER_APIFUNCTION(Update, config, &ApiListener::ConfigUpdateHandler);
 
 void ApiListener::ConfigGlobHandler(ConfigDirInformation& config, const String& path, const String& file)
 {
+       // Avoid loading the authoritative marker for syncs at all cost.
+       if (Utility::BaseName(file) == ".authoritative")
+               return;
+
        CONTEXT("Creating config update for file '" + file + "'");
 
        Log(LogNotice, "ApiListener")