]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os:fix fd leak during mount
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 4 Jan 2016 04:12:48 +0000 (12:12 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 4 Jan 2016 04:12:48 +0000 (12:12 +0800)
Fixes: #14178
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/keyvaluestore/KeyValueStore.cc

index 35eb6f4489f6f86aabe4396255d020eca5975c2e..03c663a4feb453a2b43c219d82bc3c3286ae0dc8 100644 (file)
@@ -945,7 +945,7 @@ int KeyValueStore::mount()
       derr << "KeyValueStore::mount backend type "
           << superblock.backend << " error" << dendl;
       ret = -1;
-      goto close_fsid_fd;
+      goto close_current_fd;
 
     }