From: Samuel Just Date: Thu, 19 Mar 2015 00:42:40 +0000 (-0700) Subject: PG::find_best_info: reject infos with old last_epoch_started X-Git-Tag: v0.94~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a2ff34d75cc69759584fb802f903068669f6233;p=ceph.git 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 --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index e99fb790af82..49d8f69f5643 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;