From: Sage Weil Date: Tue, 9 Dec 2014 21:44:16 +0000 (-0800) Subject: osd: drop vestigal invalid_snapcolls fields from scrub X-Git-Tag: v0.92~111^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e68d77166cf86fa63a52b29ed8afbee352768d36;p=ceph.git osd: drop vestigal invalid_snapcolls fields from scrub This isn't used. Snapcolls are ancient. Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index f202b8dfc47b..eea7ffd323df 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4187,14 +4187,13 @@ void PG::scrub_compare_maps() scrubber.missing, scrubber.inconsistent, authoritative, - scrubber.inconsistent_snapcolls, scrubber.shallow_errors, scrubber.deep_errors, info.pgid, acting, ss); dout(2) << ss.str() << dendl; - if (!authoritative.empty() || !scrubber.inconsistent_snapcolls.empty()) { + if (!authoritative.empty()) { osd->clog->error(ss); } @@ -4228,19 +4227,6 @@ void PG::scrub_process_inconsistent() if (!scrubber.authoritative.empty() || !scrubber.inconsistent.empty()) { stringstream ss; - for (map >::iterator obj = - scrubber.inconsistent_snapcolls.begin(); - obj != scrubber.inconsistent_snapcolls.end(); - ++obj) { - for (set::iterator j = obj->second.begin(); - j != obj->second.end(); - ++j) { - ++scrubber.shallow_errors; - ss << info.pgid << " " << mode << " " << " object " << obj->first - << " has inconsistent snapcolls on " << *j << std::endl; - } - } - ss << info.pgid << " " << mode << " " << scrubber.missing.size() << " missing, " << scrubber.inconsistent.size() << " inconsistent objects"; diff --git a/src/osd/PG.h b/src/osd/PG.h index 1670d8661e76..21fed9c2f785 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -1059,7 +1059,6 @@ public: // Maps from objects with errors to missing/inconsistent peers map > missing; map > inconsistent; - map > inconsistent_snapcolls; // Map from object with errors to good peer map > authoritative; diff --git a/src/osd/PGBackend.cc b/src/osd/PGBackend.cc index 3c50d895e27c..4c4787cc5058 100644 --- a/src/osd/PGBackend.cc +++ b/src/osd/PGBackend.cc @@ -519,7 +519,6 @@ void PGBackend::be_compare_scrubmaps( map > &missing, map > &inconsistent, map &authoritative, - map > &invalid_snapcolls, int &shallow_errors, int &deep_errors, const spg_t& pgid, const vector &acting, diff --git a/src/osd/PGBackend.h b/src/osd/PGBackend.h index 8b6c397750c2..3b9f25323560 100644 --- a/src/osd/PGBackend.h +++ b/src/osd/PGBackend.h @@ -599,7 +599,6 @@ map > &missing, map > &inconsistent, map &authoritative, - map > &invalid_snapcolls, int &shallow_errors, int &deep_errors, const spg_t& pgid, const vector &acting,