From: Gunnar Beutner Date: Thu, 1 Oct 2015 02:45:50 +0000 (+0200) Subject: Only update version when config attributes are changed X-Git-Tag: v2.4.0~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55616209ae98e237c2a9ba02e012697cc5a42f3a;p=icinga2 Only update version when config attributes are changed refs #10257 --- diff --git a/lib/base/configobject.cpp b/lib/base/configobject.cpp index 2c3a4ea18..1e10da9a4 100644 --- a/lib/base/configobject.cpp +++ b/lib/base/configobject.cpp @@ -222,11 +222,12 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool SetField(fid, newValue); - if (updateVersion) - SetVersion(Utility::GetTime()); + if (updated_original_attributes) { + if (updateVersion) + SetVersion(Utility::GetTime()); - if (updated_original_attributes) NotifyOriginalAttributes(); + } } void ConfigObject::RestoreAttribute(const String& attr)