]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: fix fsck() won't catch stray shard sometimes
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 24 Sep 2016 01:50:01 +0000 (09:50 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 24 Sep 2016 01:50:01 +0000 (09:50 +0800)
which is introduced by https://github.com/ceph/ceph/pull/11210/commits/dcfbc72fcbb48f4ced0c1a2d46a77f43bff38c9f

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 44eee3b1cf1d83ab64dbe84895f894e19fb9f41b..ed894cf27e4171e5c2d7ca3c49a86174799d5ee5 100644 (file)
@@ -3945,6 +3945,7 @@ int BlueStore::fsck()
         if (expecting_shards.empty()) {
           derr << __func__ << pretty_binary_string(it->key())
                << " is unexpected" << dendl;
+          ++errors;
           continue;
         }
        while (expecting_shards.front() > it->key()) {