Add a note for config updates V1 and V2

Old clients sync !.conf via update_v2 message, we cannot
remove this handling for the time being.
This commit is contained in:
Michael Friedrich 2018-10-23 16:07:08 +02:00
parent 83c11962b2
commit 46cb806b3f
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ void ApiListener::ConfigGlobHandler(ConfigDirInformation& config, const String&
Dictionary::Ptr update; 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)) if (Utility::Match("*.conf", file))
update = config.UpdateV1; update = config.UpdateV1;
else else