From: Xiubo Li Date: Fri, 10 Dec 2021 01:15:46 +0000 (+0800) Subject: mds: set hb to NULL after the memory released X-Git-Tag: v17.1.0~143^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6e446423937abd0d2d3413385bea78df1f0fbc48;p=ceph.git mds: set hb to NULL after the memory released Signed-off-by: Xiubo Li --- diff --git a/src/mds/MDSRank.cc b/src/mds/MDSRank.cc index 89f340647a2d..94de7861f570 100644 --- a/src/mds/MDSRank.cc +++ b/src/mds/MDSRank.cc @@ -556,6 +556,7 @@ MDSRank::~MDSRank() { if (hb) { g_ceph_context->get_heartbeat_map()->remove_worker(hb); + hb = nullptr; } if (scrubstack) { delete scrubstack; scrubstack = NULL; }