1
0
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:
Ruben S. Montero 2017-09-08 11:30:11 +02:00
parent d597cefe15
commit 06e4e28bfb

View File

@ -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);