DB IDO: Fix failover_timeout config validator

refs #6827
This commit is contained in:
Michael Friedrich 2014-08-15 17:50:38 +02:00
parent 60f219450f
commit e52848b923
1 changed files with 3 additions and 0 deletions

View File

@ -416,6 +416,9 @@ void DbConnection::PrepareDatabase(void)
void DbConnection::ValidateFailoverTimeout(const String& location, const Dictionary::Ptr& attrs)
{
if (!attrs->Contains("failover_timeout"))
return;
Value failover_timeout = attrs->Get("failover_timeout");
if (failover_timeout < 60) {
ConfigCompilerContext::GetInstance()->AddMessage(true, "Validation failed for " +