From cfc3e6429fc5324164da71a3ddb6bbf83871b32d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 19 Feb 2019 09:33:27 -0600 Subject: [PATCH] osd/PG: fix comments in merge_from Some of these were stale. Signed-off-by: Sage Weil --- src/osd/PG.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index b2e1b89dec5f5..124e6b9faf318 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -2779,13 +2779,10 @@ void PG::merge_from(map& sources, RecoveryCtx *rctx, // remapped in concert with each other... info.history = sources.begin()->second->info.history; - // we use the pg_num_dec_last_epoch_clean we got from the caller, which is - // the epoch that was clean according to the target pg whe it requested - // the mon decrement pg_num. + // we use the pg_num_dec_last_epoch_{started,clean} we got from + // the caller, which are the epochs that were reported by the PGs were + // found to be ready for merge. info.history.last_epoch_clean = dec_last_epoch_clean; - - // use last_epoch_clean value for last_epoch_started, though--we must be - // conservative here to avoid breaking peering, calc_acting, etc. info.history.last_epoch_started = dec_last_epoch_started; info.last_epoch_started = dec_last_epoch_started; dout(10) << __func__ -- 2.39.5