mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-13 04:48:12 +02:00
Merge pull request #8189 from Icinga/bugfix/last-zone-sync-stage-validation-failed-7642
Clear ApiListener#last_failed_zones_stage_validation on config::Update if config not changed
This commit is contained in:
commit
7ec7cae4b1
@ -312,7 +312,7 @@ Value ApiListener::ConfigUpdateHandler(const MessageOrigin::Ptr& origin, const D
|
||||
return Empty;
|
||||
}
|
||||
|
||||
std::thread([origin, params]() { HandleConfigUpdate(origin, params); }).detach();
|
||||
std::thread([origin, params, listener]() { listener->HandleConfigUpdate(origin, params); }).detach();
|
||||
return Empty;
|
||||
}
|
||||
|
||||
@ -534,6 +534,7 @@ void ApiListener::HandleConfigUpdate(const MessageOrigin::Ptr& origin, const Dic
|
||||
Log(LogInformation, "ApiListener")
|
||||
<< "Received configuration updates (" << count << ") from endpoint '" << fromEndpointName
|
||||
<< "' are equal to production, skipping validation and reload.";
|
||||
ClearLastFailedZonesStageValidation();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ public:
|
||||
|
||||
/* filesync */
|
||||
static Value ConfigUpdateHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params);
|
||||
static void HandleConfigUpdate(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params);
|
||||
void HandleConfigUpdate(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params);
|
||||
|
||||
/* configsync */
|
||||
static void ConfigUpdateObjectHandler(const ConfigObject::Ptr& object, const Value& cookie);
|
||||
|
Loading…
x
Reference in New Issue
Block a user