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:
parent
721efccf13
commit
15ae0f474f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user