1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

in non-HA configurations

(cherry picked from commit 577d976d14fa689bbc0cc15ca8d6dbb0eb01588d)
This commit is contained in:
Ruben S. Montero 2017-10-13 17:25:13 +02:00
parent 512da1ee67
commit a21b39f9f7

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