Skip to content

Commit

Permalink
Merge pull request #1444 from david-guenault/fix-1434
Browse files Browse the repository at this point in the history
Fix #1434 arbiter api does not update alive field when arbiter master fail
  • Loading branch information
naparuba committed Jan 8, 2015
2 parents d07e86d + bfbaf98 commit cc4ac86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shinken/daemons/arbiterdaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,9 @@ def wait_for_master_death(self):
now = time.time()
if now - self.last_master_speack > master_timeout:
logger.info("Arbiter Master is dead. The arbiter %s take the lead", self.me.get_name())
for arb in self.conf.arbiters:
if not arb.spare:
arb.alive = False
self.must_run = True
break

Expand Down

0 comments on commit cc4ac86

Please sign in to comment.