From 144199a7bb134a474ab805cd3ce8252867e6daab Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sat, 24 Sep 2016 09:50:01 +0800 Subject: [PATCH] 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 --- src/os/bluestore/BlueStore.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 44eee3b1cf1..ed894cf27e4 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()) { -- 2.47.3