mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-04 05:17:40 +03:00
Sync fix for race condition on replica thread with master branch
This commit is contained in:
parent
eb368386ab
commit
e6daa66e39
@ -601,7 +601,7 @@ void RaftManager::replicate_log(ReplicaRequest * request)
|
||||
{
|
||||
to_commit--;
|
||||
}
|
||||
else if ( rindex == (int) it->second )
|
||||
else
|
||||
{
|
||||
replica_manager.replicate(it->first);
|
||||
}
|
||||
|
@ -96,11 +96,6 @@ void ReplicaThread::do_replication()
|
||||
|
||||
if ( pthread_cond_timedwait(&cond, &mutex, &timeout) == ETIMEDOUT )
|
||||
{
|
||||
if ( _prending_requests == true )
|
||||
{
|
||||
NebulaLog::log("RCM", Log::WARN, "Replication timeout with pending requests");
|
||||
}
|
||||
|
||||
_pending_requests = retry_request || _pending_requests;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user