mirror of https://github.com/Icinga/icinga2.git
parent
91b8decaac
commit
a5556cbaae
|
@ -60,6 +60,8 @@ void RedisWriter::UpdateAllConfigObjects(void)
|
|||
{
|
||||
AssertOnWorkQueue();
|
||||
|
||||
double startTime = Utility::GetTime();
|
||||
|
||||
//TODO: "Publish" the config dump by adding another event, globally or by object
|
||||
ExecuteQuery({ "MULTI" });
|
||||
|
||||
|
@ -86,6 +88,9 @@ void RedisWriter::UpdateAllConfigObjects(void)
|
|||
}
|
||||
|
||||
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)
|
||||
|
|
|
@ -97,6 +97,9 @@ void RedisWriter::TryToReconnect(void)
|
|||
|
||||
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())
|
||||
ExecuteQuery({ "AUTH", password });
|
||||
|
||||
|
|
Loading…
Reference in New Issue