From fd5fb993e3a5775ce16755a21f1d7e408f5cbb8a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 9 Nov 2011 15:47:35 -0800 Subject: [PATCH] osd: remove useless proc_replica_log() side-effect Signed-off-by: Sage Weil --- src/osd/PG.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index bebf3b6ae7b3f..7cfdfcd0630ee 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -225,13 +225,6 @@ void PG::proc_replica_log(ObjectStore::Transaction& t, Info &oinfo, Log &olog, M { dout(10) << "proc_replica_log for osd." << from << ": " << oinfo << " " << olog << " " << omissing << dendl; - // This was a side effect in _process_pg_info. At this point I don't - // think it's necessary, since we're in the GetMissing state, - // but we'll keep it here for now - osd->unreg_last_pg_scrub(info.pgid, info.history.last_scrub_stamp); - info.history.merge(oinfo.history); - osd->reg_last_pg_scrub(info.pgid, info.history.last_scrub_stamp); - /* basically what we're doing here is rewinding the remote log, dropping divergent entries, until we find something that matches -- 2.39.5