]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
BlueStore: fix duplicated counting of errors
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 26 Jan 2016 09:17:59 +0000 (17:17 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 2 Feb 2016 06:04:17 +0000 (14:04 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index e324198d9815f4c0c776ecd6f218490e4b249117..480b60d5ed8df8725ee7a9f24fa1c10047f18f12 100644 (file)
@@ -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