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:
parent
47a03f1bd9
commit
7219d3cd16
@ -540,6 +540,8 @@ void RaftManager::replicate_log(ReplicaRequest * request)
|
||||
|
||||
if ( state != LEADER )
|
||||
{
|
||||
request->notify();
|
||||
|
||||
pthread_mutex_unlock(&mutex);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user