From 40b1c2b231b62471d4f3cfba3ba2c3d596c9e170 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Tue, 14 Apr 2015 13:29:54 +0800 Subject: [PATCH] osd: Remove the duplicated func MissingLoc::get_all_missing. It is the same as MissingLoc::get_needs_recovery. Signed-off-by: Jianpeng Ma (cherry picked from commit bdd6205408cf20e039496728052a36c1a7d758c6) --- src/osd/PG.h | 4 ---- src/osd/ReplicatedPG.cc | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/osd/PG.h b/src/osd/PG.h index e06b910255362..935e7444514f1 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -361,10 +361,6 @@ public: return ret; } - const map &get_all_missing() const { - return needs_recovery_map; - } - void clear() { needs_recovery_map.clear(); missing_loc.clear(); diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 3c6511f66bb2a..75deab2a2c1b2 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -8565,9 +8565,9 @@ void ReplicatedPG::mark_all_unfound_lost(int what) info.last_update.epoch = get_osdmap()->get_epoch(); const pg_missing_t &missing = pg_log.get_missing(); map::const_iterator m = - missing_loc.get_all_missing().begin(); + missing_loc.get_needs_recovery().begin(); map::const_iterator mend = - missing_loc.get_all_missing().end(); + missing_loc.get_needs_recovery().end(); while (m != mend) { const hobject_t &oid(m->first); if (!missing_loc.is_unfound(oid)) { -- 2.39.5