]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: check is_shutdown() in timer callbacks 15083/head
authorKefu Chai <kchai@redhat.com>
Fri, 5 May 2017 04:02:05 +0000 (12:02 +0800)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Wed, 17 May 2017 14:11:23 +0000 (18:11 +0400)
commite3cba06bd02b1fca07414c987cf147f1ded99b68
tree1e36731bf97e41954b86caecccc6b2476b793e55
parentef5265f107858d37bbdeea165cec571db614b4a3
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)

Conflicts:
src/mon/MgrMonitor.cc: no such service in Jewel
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