From: xie xingguo Date: Thu, 19 May 2016 12:39:39 +0000 (+0800) Subject: os/filestore: fix improperly goto during mount() X-Git-Tag: v11.0.0~410^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b0b8c2a8dce75f195afc0bfcb43c5a695da87388;p=ceph.git os/filestore: fix improperly goto during mount() Signed-off-by: xie xingguo --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index deb18af06922..39e58021c135 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -1582,7 +1582,7 @@ int FileStore::mount() ret = -errno; derr << "FileStore::mount: error opening '" << omap_fsid_buf << "': " << cpp_strerror(ret) << dendl; - goto done; + goto close_current_fd; } ret = read_fsid(omap_fsid_fd, &omap_fsid); if (ret < 0) {