From: David Zafman Date: Wed, 25 Jan 2017 00:30:24 +0000 (-0800) Subject: Revert "PrimaryLogPG::failed_push: update missing as well" X-Git-Tag: v12.0.0~92^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13090%2Fhead;p=ceph.git Revert "PrimaryLogPG::failed_push: update missing as well" This reverts commit dd48b972afde2dfa9ab1a6942c7961750222986d. Fixes: http://tracker.ceph.com/issues/18624 Signed-off-by: David Zafman --- diff --git a/src/osd/PG.h b/src/osd/PG.h index 6c5c98016657f..607fadad70390 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -436,12 +436,6 @@ public: ThreadPool::TPHandle* handle ///< [in] ThreadPool handle ); - /// Returns version needed - eversion_t get_version_needed(const hobject_t &hoid) const { - assert(needs_recovery_map.count(hoid)); - return needs_recovery_map.at(hoid).need; - } - /// Uses osdmap to update structures for now down sources void check_recovery_sources(const OSDMapRef& osdmap); diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index bea380ce4e3c6..cfd88d4b5684f 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -9546,12 +9546,8 @@ void PrimaryLogPG::failed_push(const list &from, const hobject_t &so requeue_ops(blocked_ops); } recovering.erase(soid); - for (auto&& i : from) { + for (auto&& i : from) missing_loc.remove_location(soid, i); - auto miter = peer_missing.find(i); - assert(miter != peer_missing.end()); - miter->second.add(soid, missing_loc.get_version_needed(soid), eversion_t()); - } dout(0) << __func__ << " " << soid << " from shard " << from << ", reps on " << missing_loc.get_locations(soid) << " unfound? " << missing_loc.is_unfound(soid) << dendl;