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

Stop ReplicaThreads on exit

(cherry picked from commit 778f5b5e47d44ab51a5c10ba78b4b4c2f05b9cd7)
This commit is contained in:
Ruben S. Montero 2017-10-06 23:26:07 +02:00
parent 721efccf13
commit 15ae0f474f

View File

@ -250,6 +250,11 @@ int RaftManager::start()
void RaftManager::finalize_action(const ActionRequest& ar)
{
NebulaLog::log("RCM", Log::INFO, "Raft Consensus Manager...");
if (is_leader())
{
follower(-1);
}
}
/* -------------------------------------------------------------------------- */