]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: do a trivial write on every election cycle 6144/head
authorSage Weil <sage@redhat.com>
Wed, 23 Sep 2015 14:58:01 +0000 (10:58 -0400)
committerLoic Dachary <ldachary@redhat.com>
Fri, 2 Oct 2015 10:49:05 +0000 (12:49 +0200)
commitd4e4d85c005ff68cb0461e9d7f0cbe5e6cf2f073
tree311619c670d20def4f45f4c625e10c531456d8e2
parent20a4c0c4831a9dcd49d8ad34b99369effbda9ab8
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>
(cherry picked from commit ef909ccbdc303cce8a39edef255325127832ff16)
src/mon/Elector.cc