From 5da2154e20f2ce6026ff1b0a05df3a68f9bf821d Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 14 Mar 2017 18:52:00 +0800 Subject: [PATCH] osd/PG: let proc_replica_info() do sanity check As proc_replica_info() will do the check internally. Signed-off-by: xie xingguo --- src/osd/PG.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 1a0c66d6d033..e77fb070a4fe 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -6052,14 +6052,8 @@ boost::statechart::result PG::RecoveryState::Primary::react(const MNotifyRec& no { PG *pg = context< RecoveryMachine >().pg; ldout(pg->cct, 7) << "handle_pg_notify from osd." << notevt.from << dendl; - if (pg->peer_info.count(notevt.from) && - pg->peer_info[notevt.from].last_update == notevt.notify.info.last_update) { - ldout(pg->cct, 10) << *pg << " got dup osd." << notevt.from << " info " - << notevt.notify.info << ", identical to ours" << dendl; - } else { - pg->proc_replica_info( - notevt.from, notevt.notify.info, notevt.notify.epoch_sent); - } + pg->proc_replica_info( + notevt.from, notevt.notify.info, notevt.notify.epoch_sent); return discard_event(); } -- 2.47.3