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:
parent
fe6c2abf41
commit
81273b2b31
@ -400,13 +400,13 @@ void RaftManager::leader()
|
|||||||
heartbeat_manager.replicate();
|
heartbeat_manager.replicate();
|
||||||
|
|
||||||
clock_gettime(CLOCK_REALTIME, &last_heartbeat);
|
clock_gettime(CLOCK_REALTIME, &last_heartbeat);
|
||||||
|
|
||||||
|
auto im = nd.get_im();
|
||||||
|
im->raft_status(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
aclm->reload_rules();
|
aclm->reload_rules();
|
||||||
|
|
||||||
auto im = nd.get_im();
|
|
||||||
im->raft_status(state);
|
|
||||||
|
|
||||||
if ( nd.is_federation_master() )
|
if ( nd.is_federation_master() )
|
||||||
{
|
{
|
||||||
frm->start_replica_threads();
|
frm->start_replica_threads();
|
||||||
|
Loading…
Reference in New Issue
Block a user