From: xie xingguo Date: Thu, 16 Jun 2016 02:24:00 +0000 (+0800) Subject: os/filestore: tidy up on error exit during mount() process X-Git-Tag: ses5-milestone5~240^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=55bfc0ceb19d785b765fa2d62cfe70c31b68b951;p=ceph.git os/filestore: tidy up on error exit during mount() process 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 --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 39f48061e08..ed182401976 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -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; }