mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
B: Do not try to pro-active monitor host if not leader
This commit is contained in:
parent
d597cefe15
commit
06e4e28bfb
@ -179,6 +179,14 @@ void InformationManager::timer_action(const ActionRequest& ar)
|
||||
mark = 0;
|
||||
}
|
||||
|
||||
Nebula& nd = Nebula::instance();
|
||||
RaftManager * raftm = nd.get_raftm();
|
||||
|
||||
if ( !raftm->is_leader() && !raftm->is_solo() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
hpool->clean_expired_monitoring();
|
||||
|
||||
now = time(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user