]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: check is_shutdown() in timer callbacks
authorKefu Chai <kchai@redhat.com>
Fri, 5 May 2017 04:02:05 +0000 (12:02 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 5 May 2017 05:54:45 +0000 (13:54 +0800)
commit561cbded0c7e28231b1c7ce18663b8d7d40aad6d
tree274f5e4e505cc70c3bcc2f0ca587fa946163b6e3
parent12139ae529a49b6caedea89f910d034ddca094b6
mon: check is_shutdown() in timer callbacks

introduce a helper class: C_MonContext, and initialize all timer events
using it, to ensure that they do check is_shutdown() before doing their
work.

Fixes: http://tracker.ceph.com/issues/19825
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/Elector.cc
src/mon/Elector.h
src/mon/MgrMonitor.cc
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/Paxos.cc
src/mon/PaxosService.cc
src/mon/PaxosService.h
src/mon/QuorumService.h