]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PaxosService: add force_immediate_propose mechanism
authorSage Weil <sage@redhat.com>
Fri, 5 May 2017 16:26:04 +0000 (12:26 -0400)
committerJoao Eduardo Luis <joao@suse.de>
Mon, 5 Jun 2017 14:20:19 +0000 (15:20 +0100)
commit799291428602f842fce881bcdfd3133ccc57624c
treeb0148be669981a9a2afa21009b603663789861d1
parent465caef4fc0bb4e8da4974919b0e167256689813
mon/PaxosService: add force_immediate_propose mechanism

Add an easy mechanism for a prepare method to force an immediate proposal.
(Otherwise they have to ensure that a future call to should_propose
returns true with delay==0.0, which is a bit more work for them.)

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