]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: set hb to NULL after the memory released 44268/head
authorXiubo Li <xiubli@redhat.com>
Fri, 10 Dec 2021 01:15:46 +0000 (09:15 +0800)
committerXiubo Li <xiubli@redhat.com>
Sat, 11 Dec 2021 00:52:33 +0000 (08:52 +0800)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/MDSRank.cc

index 89f340647a2d8af20274332b9bf59861f11128e5..94de7861f5705d879c50649eac478c0856b7f550 100644 (file)
@@ -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; }