]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "mds: just delete MDSIOContextBase during shutdown"
authorYan, Zheng <zyan@redhat.com>
Mon, 23 Mar 2020 09:03:56 +0000 (17:03 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 23 Mar 2020 09:20:43 +0000 (17:20 +0800)
This reverts commit 79f5052a1ddb61043de4e1cbec19ede2a6b4f53b.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDSContext.cc

index fdf62b6f1acddd9cb0b18a3c2bf4a3a866b2753b..34b15a4f08bf96ccdc38318d783c688a6f15dee1 100644 (file)
@@ -98,8 +98,11 @@ void MDSIOContextBase::complete(int r) {
   if (mds->is_daemon_stopping()) {
     dout(4) << "MDSIOContextBase::complete: dropping for stopping "
             << typeid(*this).name() << dendl;
-    delete this;
-  } else if (r == -EBLACKLISTED) {
+    MDSContext::complete(r);
+    return;
+  }
+
+  if (r == -EBLACKLISTED) {
     derr << "MDSIOContextBase: blacklisted!  Restarting..." << dendl;
     mds->respawn();
   } else {