From: xie xingguo Date: Sat, 24 Sep 2016 01:50:01 +0000 (+0800) Subject: os/bluestore: fix fsck() won't catch stray shard sometimes X-Git-Tag: v11.0.1~96^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=144199a7bb134a474ab805cd3ce8252867e6daab;p=ceph.git os/bluestore: fix fsck() won't catch stray shard sometimes which is introduced by https://github.com/ceph/ceph/pull/11210/commits/dcfbc72fcbb48f4ced0c1a2d46a77f43bff38c9f Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 44eee3b1cf1d..ed894cf27e41 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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()) {