From: Jianpeng Ma Date: Wed, 23 Sep 2015 05:40:35 +0000 (+0800) Subject: osd/PGBackend: Don't change error type from DEEP_ERROR to SHALLOW_ERROR. X-Git-Tag: v10.0.3~139^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4a7f0075fe73fc122bb04f37e6467a780b10c2b8;p=ceph.git osd/PGBackend: Don't change error type from DEEP_ERROR to SHALLOW_ERROR. Signed-off-by: Jianpeng Ma --- diff --git a/src/osd/PGBackend.cc b/src/osd/PGBackend.cc index b53166da2cfb..8d6a098382e6 100644 --- a/src/osd/PGBackend.cc +++ b/src/osd/PGBackend.cc @@ -409,7 +409,8 @@ enum scrub_error_type PGBackend::be_compare_scrub_objects( if (auth.size != candidate.size) { if (error != CLEAN) errorstream << ", "; - error = SHALLOW_ERROR; + if (error != DEEP_ERROR) + error = SHALLOW_ERROR; bool known = auth.size == be_get_ondisk_size(auth_oi.size); errorstream << "size " << candidate.size << " != " @@ -422,12 +423,14 @@ enum scrub_error_type PGBackend::be_compare_scrub_objects( if (!candidate.attrs.count(i->first)) { if (error != CLEAN) errorstream << ", "; - error = SHALLOW_ERROR; + if (error != DEEP_ERROR) + error = SHALLOW_ERROR; errorstream << "missing attr " << i->first; } else if (candidate.attrs.find(i->first)->second.cmp(i->second)) { if (error != CLEAN) errorstream << ", "; - error = SHALLOW_ERROR; + if (error != DEEP_ERROR) + error = SHALLOW_ERROR; errorstream << "attr value mismatch " << i->first; } } @@ -437,7 +440,8 @@ enum scrub_error_type PGBackend::be_compare_scrub_objects( if (!auth.attrs.count(i->first)) { if (error != CLEAN) errorstream << ", "; - error = SHALLOW_ERROR; + if (error != DEEP_ERROR) + error = SHALLOW_ERROR; errorstream << "extra attr " << i->first; } }