]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/filestore: tidy up on error exit during mount() process 9734/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 16 Jun 2016 02:24:00 +0000 (10:24 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 16 Jun 2016 02:24:00 +0000 (10:24 +0800)
There are error exits we don't delete backend and object_map
manually, and this is the proper place to do such cleanup jobs.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/filestore/FileStore.cc

index 39f48061e08a6144ff4974528cffb8da6c606175..ed18240197659c746f17a58248d5d51c6ca10e03 100644 (file)
@@ -1801,6 +1801,9 @@ close_fsid_fd:
   fsid_fd = -1;
 done:
   assert(!m_filestore_fail_eio || ret != -EIO);
+  delete backend;
+  backend = NULL;
+  object_map.reset();
   return ret;
 }