]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: shutdown messenger early to avoid accessing deleted logger 25846/head
authorningtao <ningtao@sangfor.com.cn>
Thu, 3 Jan 2019 15:20:12 +0000 (23:20 +0800)
committerPrashant D <pdhange@redhat.com>
Wed, 9 Jan 2019 00:57:49 +0000 (19:57 -0500)
commitefcb708e173c864e887b39e7ca77d01ab37248ee
treed8a96d59403596b0ef134f94e1c79da924ce0e6e
parent4be4c4bd8c2140070976422c7366457b60fc3e2b
mon: shutdown messenger early to avoid accessing deleted logger

In the monitor shutdown process, the MSG thread exits after the logger is released,
causing the null pointer to be accessed. So move the logger release to the MSG thread after it exits

Fixes: http://tracker.ceph.com/issues/37780
Signed-off-by: ningtao <ningtao@sangfor.com.cn>
(cherry picked from commit 47da5a0caa7edec17ff4253e363571b78372506a)
src/mon/Monitor.cc