1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

B #: fix HA race condition (#673)

Fix race condition when a node fails to became leader due to
another node having greater term.
This commit is contained in:
Christian González 2021-01-19 17:57:29 +01:00 committed by GitHub
parent fe6c2abf41
commit 81273b2b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,13 +400,13 @@ void RaftManager::leader()
heartbeat_manager.replicate();
clock_gettime(CLOCK_REALTIME, &last_heartbeat);
auto im = nd.get_im();
im->raft_status(state);
}
aclm->reload_rules();
auto im = nd.get_im();
im->raft_status(state);
if ( nd.is_federation_master() )
{
frm->start_replica_threads();