From: Patrick Donnelly Date: Tue, 17 Apr 2018 03:13:37 +0000 (-0700) Subject: mds: unset deleted vars in shutdown_pass X-Git-Tag: v13.1.0~202^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F21457%2Fhead;p=ceph.git mds: unset deleted vars in shutdown_pass So future passes do not try to delete again. Fixes: http://tracker.ceph.com/issues/23766 Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index e8529969ea59..6803eeadee2f 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -7818,11 +7818,15 @@ bool MDCache::shutdown_pass() } assert(subtrees.empty()); - if (myin) + if (myin) { remove_inode(myin); + assert(!myin); + } - if (global_snaprealm) + if (global_snaprealm) { remove_inode(global_snaprealm->inode); + global_snaprealm = nullptr; + } // done! dout(2) << "shutdown done." << dendl;