]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix invalid stray shared blob detection in fsck.
authorIgor Fedotov <ifedotov@suse.com>
Fri, 27 Sep 2019 10:51:54 +0000 (13:51 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 18 Nov 2019 09:14:25 +0000 (12:14 +0300)
This is a regression, caused by https://github.com/ceph/ceph/pull/30264

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 3f79b1976885880a188ed0a7f5e7d40dd554dc15)

src/os/bluestore/BlueStore.cc

index 643675f9984ae7bac11d4c466446066b9b072741..cf5c034ae44de4a8e26d6a212484945ec0da448f 100644 (file)
@@ -7327,7 +7327,7 @@ void BlueStore::_fsck_check_objects(FSCKDepth depth,
   auto used_omap_head = ctx.used_omap_head;
   auto used_pgmeta_omap_head = ctx.used_pgmeta_omap_head;
   auto sb_info_lock = ctx.sb_info_lock;
-  auto sb_info = ctx.sb_info;
+  auto& sb_info = ctx.sb_info;
   auto repairer = ctx.repairer;
 
   uint64_t_btree_t used_nids;