]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: there is an assertion when calling Beacon::shutdown() 29223/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Wed, 20 Mar 2019 15:46:08 +0000 (23:46 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 23 Jul 2019 15:35:48 +0000 (17:35 +0200)
commit4f0f0a8fe245e48f8dc54e1cfc3031e7d38159ec
tree6a823d9748f42ad535aaaab34e30ad5835439987
parentc1cd465c4f7a185c193fc8999a74b9ff428ac254
mds: there is an assertion when calling Beacon::shutdown()

If you run MDSDaemon::init(), an exception occurs that causes MDSDaemon::suicide()--->Beacon::shutdown()--->sender.join();
this problem occurs because sender is just Default-constructed is in Beacon.h(std::thread sender;), there is no call
to Beacon::init() to construct the sender, so the sender has no "joinable"

Fixes: http://tracker.ceph.com/issues/38822
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
(cherry picked from commit 526bbda6f68873a500c78685a7c39a129d8531e5)
src/mds/Beacon.cc