1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

B #5432: Execute timer action for SOLO oned's, this clean federation log

in non-HA configurations
This commit is contained in:
Ruben S. Montero 2017-10-13 17:25:13 +02:00
parent fa4df3290e
commit 577d976d14

View File

@ -212,16 +212,7 @@ extern "C" void * raft_manager_loop(void *arg)
NebulaLog::log("RCM",Log::INFO,"Raft Consensus Manager started.");
if ( raftm->is_solo() )
{
raftm->am.loop();
}
else
{
raftm->am.loop(timeout);
}
raftm->am.loop(timeout);
NebulaLog::log("RCM",Log::INFO,"Raft Consensus Manager stopped.");
@ -816,7 +807,7 @@ void RaftManager::timer_action(const ActionRequest& ar)
pthread_mutex_unlock(&mutex);
}
}
else
else //SOLO or CANDIDATE, do nothing
{
pthread_mutex_unlock(&mutex);
}