mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 22:14:13 +09:00
B: Do not try to pro-active monitor host if not leader
This commit is contained in:
1 parent
d597cefe15
commit
06e4e28bfb
1 file changed
+8
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user