]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
BlueStore: fix shared_ptr leak during fsck
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 6 Jan 2016 08:40:19 +0000 (16:40 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Jan 2016 06:30:03 +0000 (14:30 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 97dbdf7831fde6b5112e8d599a4a08c17bf61615..34682acd35e4f9307f47a10836b1943a5e4ced2c 100644 (file)
@@ -1904,8 +1904,10 @@ int BlueStore::fsck()
   if (bluefs) {
     used_blocks.insert(bluefs_extents);
     r = bluefs->fsck();
-    if (r < 0)
+    if (r < 0) {
+      coll_map.clear();
       goto out_alloc;
+    }
     if (r > 0)
       errors += r;
   }