]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: update PaxosService::cached_first_committed in PaxosService::maybe_trim() 21328/head
authorXuehan Xu <xuxuehan@360.cn>
Wed, 10 Jan 2018 03:17:16 +0000 (11:17 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 10 Apr 2018 13:25:48 +0000 (21:25 +0800)
commit51198c71e243d9b3a9883df91461340e03558dad
tree51f6215f72dada9703461658553dfedac62d0cc0
parent9d2cda9a819752a487741d553dbc12c61f5fac1d
mon: update PaxosService::cached_first_committed in PaxosService::maybe_trim()

This should be able to avoid interleaving execution of Paxos::commit_finish() and
check_sub(), which could lead to unexpected failure of ceph-mon.

Fixes: http://tracker.ceph.com/issues/11332
Signed-off-by: Xuehan Xu <xuxuehan@360.cn>
Signed-off-by: yupeng chen <chenyupeng-it@360.cn>
(cherry picked from commit c3c88d84d696016d56a04f95662dc1f4f937ebec)
src/mon/PaxosService.cc