mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 23:54:07 +02:00
parent
91b8decaac
commit
a5556cbaae
@ -60,6 +60,8 @@ void RedisWriter::UpdateAllConfigObjects(void)
|
|||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
|
double startTime = Utility::GetTime();
|
||||||
|
|
||||||
//TODO: "Publish" the config dump by adding another event, globally or by object
|
//TODO: "Publish" the config dump by adding another event, globally or by object
|
||||||
ExecuteQuery({ "MULTI" });
|
ExecuteQuery({ "MULTI" });
|
||||||
|
|
||||||
@ -86,6 +88,9 @@ void RedisWriter::UpdateAllConfigObjects(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ExecuteQuery({ "EXEC" });
|
ExecuteQuery({ "EXEC" });
|
||||||
|
|
||||||
|
Log(LogInformation, "RedisWriter")
|
||||||
|
<< "Initial config/status dump finished in " << Utility::GetTime() - startTime << " seconds.";
|
||||||
}
|
}
|
||||||
|
|
||||||
void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, const String& typeName, bool runtimeUpdate)
|
void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, const String& typeName, bool runtimeUpdate)
|
||||||
|
@ -97,6 +97,9 @@ void RedisWriter::TryToReconnect(void)
|
|||||||
|
|
||||||
String password = GetPassword();
|
String password = GetPassword();
|
||||||
|
|
||||||
|
/* TODO: exception is fired but terminates reconnect silently.
|
||||||
|
* Error case: Password does not match, or even: "Client sent AUTH, but no password is set" which also results in an error.
|
||||||
|
*/
|
||||||
if (!password.IsEmpty())
|
if (!password.IsEmpty())
|
||||||
ExecuteQuery({ "AUTH", password });
|
ExecuteQuery({ "AUTH", password });
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user