]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: check is_shutdown() in timer callbacks 15084/head
authorKefu Chai <kchai@redhat.com>
Fri, 5 May 2017 04:02:05 +0000 (12:02 +0800)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Tue, 20 Jun 2017 14:18:20 +0000 (18:18 +0400)
commitd38a7529995cd13b1a3d13a8e00d22ce0172aa5c
tree9216ae6ab929acd6cd5f4fad3a38cc17c5580040
parente7361176f4ad1d4b43a393e6e34c50233a73e829
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>
(cherry picked from commit 561cbded0c7e28231b1c7ce18663b8d7d40aad6d)
src/mon/Elector.cc
src/mon/Elector.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/Paxos.cc
src/mon/PaxosService.cc
src/mon/PaxosService.h
src/mon/QuorumService.h