Add log message for config/status dump end for Redis

refs #4991
This commit is contained in:
Michael Friedrich 2017-03-24 14:39:24 +01:00
parent 91b8decaac
commit a5556cbaae
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -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 });