]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: unset deleted vars in shutdown_pass 21457/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 17 Apr 2018 03:13:37 +0000 (20:13 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 18 Apr 2018 21:14:39 +0000 (14:14 -0700)
So future passes do not try to delete again.

Fixes: http://tracker.ceph.com/issues/23766
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDCache.cc

index e8529969ea59e95e822b7e64289f3c5e15651691..6803eeadee2ff23714bf4ac173f0880091f8cb2a 100644 (file)
@@ -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;