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

B : Prevent race-condition when leader-follower transitions

This commit is contained in:
Ruben S. Montero 2017-09-15 01:38:09 +02:00
parent 47a03f1bd9
commit 7219d3cd16

@ -540,6 +540,8 @@ void RaftManager::replicate_log(ReplicaRequest * request)
if ( state != LEADER )
{
request->notify();
pthread_mutex_unlock(&mutex);
return;
}