]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: do a trivial write on every election cycle 6091/head
authorSage Weil <sage@redhat.com>
Wed, 23 Sep 2015 14:58:01 +0000 (10:58 -0400)
committerNathan Cutler <ncutler@suse.com>
Sun, 27 Sep 2015 21:41:55 +0000 (23:41 +0200)
commit6d396a322e5ad61a3ca262b1c78a670481ff740c
tree4e92f42882ecba7a0b87eb43dd8a30040fb4b6a8
parentd2bfa19077422eea37205fee9ed6fd5f2692f222
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)

    Conflicts:
src/mon/Elector.cc
            no MonitorDBStore::TransactionRef in firefly
src/mon/Elector.cc