From 9a2ff34d75cc69759584fb802f903068669f6233 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 18 Mar 2015 17:42:40 -0700 Subject: [PATCH] PG::find_best_info: reject infos with old last_epoch_started See doc/dev/osd_internals/last_epoch_started.rst Reviewed-by: Sage Weil Signed-off-by: Samuel Just --- src/osd/PG.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index e99fb790af824..49d8f69f56435 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -925,6 +925,9 @@ map::const_iterator PG::find_best_info( // Only consider peers with last_update >= min_last_update_acceptable if (p->second.last_update < min_last_update_acceptable) continue; + // disqualify anyone with a too old last_epoch_started + if (p->second.last_epoch_started < max_last_epoch_started_found) + continue; // Disquality anyone who is incomplete (not fully backfilled) if (p->second.is_incomplete()) continue; -- 2.39.5