]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrMonitor: clear last_beacon after mon election
authorSage Weil <sage@redhat.com>
Thu, 6 Jul 2017 21:53:34 +0000 (17:53 -0400)
committerSage Weil <sage@redhat.com>
Wed, 12 Jul 2017 16:52:03 +0000 (12:52 -0400)
commit9f91df6bedb8662239bb603e6b60ce78d14714c0
treea1300df3567d8f7e600105f025c75bee5905c888
parent067215152c47580328860e2907a1095e75fd3d83
mon/MgrMonitor: clear last_beacon after mon election

The last_beacon map is local to an election interval; if there is a new
election completed we should reset it or else we may kill an apparently
laggy mgr that hasn't been able to get a beacon processed due to the mon
quorum changing, or had its beacon processed on a different leader.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MgrMonitor.cc
src/mon/MgrMonitor.h