]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: shutdown messenger early to avoid accessing deleted logger 25847/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:58:45 +0000 (19:58 -0500)
commit1330e070850338c8fbf3b91c9b89ca2606424d57
tree99314dd5526f0eaa8fa40df6ab84d1e8b391eb6c
parent9b49daf0c4b188d193e49abd9bc5bbe657d7a8f8
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