From: Gunnar Beutner Date: Tue, 26 Jan 2016 14:42:54 +0000 (+0100) Subject: Ignore the .timestamp file when determining whether the zone config has changed ... X-Git-Tag: v2.5.0~586 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4185c75d8a55960dd7ffcbccca4af007e77879db;p=icinga2 Ignore the .timestamp file when determining whether the zone config has changed (second attempt) refs #11014 --- diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index 32620ea29..66906f3c3 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -105,11 +105,9 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con { ObjectLock olock(newConfig); BOOST_FOREACH(const Dictionary::Pair& kv, newConfig) { - if (Utility::Match("*/.timestamp", kv.first)) - continue; - if (oldConfig->Get(kv.first) != kv.second) { - configChange = true; + if (!Utility::Match("*/.timestamp", kv.first)) + configChange = true; String path = configDir + "/" + kv.first; Log(LogInformation, "ApiListener")