B: Do not try to pro-active monitor host if not leader

(cherry picked from commit 06e4e28bfb)
This commit is contained in:
Ruben S. Montero committed 2017-09-08 11:31:45 +02:00
1 parent 2f5eb1a385
commit 39cf0b4abe
1 file changed
+8
+8
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);