Disable blocked eval tracker when leadership is lost

This commit is contained in:
Alex Dadgar
2016-01-30 16:21:37 -08:00
parent a987dece12
commit cc2ee4fbd8

View File

@@ -348,6 +348,9 @@ func (s *Server) revokeLeadership() error {
// Disable the eval broker, since it is only useful as a leader
s.evalBroker.SetEnabled(false)
// Disable the blocked eval tracker, since it is only useful as a leader
s.blockedEvals.SetEnabled(false)
// Disable the periodic dispatcher, since it is only useful as a leader
s.periodicDispatcher.SetEnabled(false)