Stop ReplicaThreads on exit

(cherry picked from commit 778f5b5e47d44ab51a5c10ba78b4b4c2f05b9cd7)
This commit is contained in:
Ruben S. Montero committed 2017-10-06 23:27:36 +02:00
1 parent 721efccf13
commit 15ae0f474f
1 file changed
+5
+5
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);
}
}
/* -------------------------------------------------------------------------- */