From: xie xingguo Date: Tue, 26 Jan 2016 09:17:59 +0000 (+0800) Subject: BlueStore: fix duplicated counting of errors X-Git-Tag: v10.0.4~75^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3e61e3b0dd69e0b3a144f12cc8192f34ca6c72ed;p=ceph.git BlueStore: fix duplicated counting of errors Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index e324198d9815..480b60d5ed8d 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -2009,12 +2009,14 @@ int BlueStore::fsck() derr << " " << oid << " overlay " << v.first << " " << v.second << " extends past end of object" << dendl; ++errors; + continue; // go for next overlay } if (v.second.key > o->onode.last_overlay_key) { derr << " " << oid << " overlay " << v.first << " " << v.second << " is > last_overlay_key " << o->onode.last_overlay_key << dendl; ++errors; + continue; // go for next overlay } ++refs[v.second.key]; string key; @@ -2026,6 +2028,7 @@ int BlueStore::fsck() derr << " " << oid << " overlay " << v.first << " " << v.second << " failed to fetch: " << cpp_strerror(r) << dendl; ++errors; + continue; } if (val.length() < v.second.value_offset + v.second.length) { derr << " " << oid << " overlay " << v.first << " " << v.second