]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: do a trivial write on every election cycle 6040/head
authorSage Weil <sage@redhat.com>
Wed, 23 Sep 2015 14:58:01 +0000 (10:58 -0400)
committerSage Weil <sage@redhat.com>
Wed, 23 Sep 2015 14:58:15 +0000 (10:58 -0400)
commitef909ccbdc303cce8a39edef255325127832ff16
tree67412782bb4c6919b18dcefd0003a2712e9f8556
parent2fb7b1f0e33ada7c9a1be3de2f7708eb0760fcef
mon/Elector: do a trivial write on every election cycle

Currently we already do a small write when the *first* election in
a round happens (to update the election epoch).  If the backend
happens to fail while we are already in the midst of elections,
however, we may continue to call elections without verifying we
are still writeable.

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