]> granicus.if.org Git - icinga2/commitdiff
Add a note for config updates V1 and V2
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 23 Oct 2018 14:07:08 +0000 (16:07 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 19 Jun 2019 12:46:11 +0000 (14:46 +0200)
Old clients sync !.conf via update_v2 message, we cannot
remove this handling for the time being.

lib/remote/apilistener-filesync.cpp

index c8afd43af6971d5e9dd5c7dd183249cef7c62dcc..68625a4b794e5d3551465e13e33bee54c7f98b03 100644 (file)
@@ -32,6 +32,11 @@ void ApiListener::ConfigGlobHandler(ConfigDirInformation& config, const String&
 
        Dictionary::Ptr update;
 
+       /*
+        * 'update' messages contain conf files. 'update_v2' syncs everything else (.timestamp).
+        *
+        * **Keep this intact to stay compatible with older clients.**
+        */
        if (Utility::Match("*.conf", file))
                update = config.UpdateV1;
        else