From: xie xingguo Date: Fri, 15 Apr 2016 13:09:35 +0000 (+0800) Subject: osd: use pif directly X-Git-Tag: v11.0.0~782^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0ab8468695d559d83201bb75ab557522f0668b3a;p=ceph.git osd: use pif directly We don't have to call past_intervals.begin() again as we currently have pif point to it already. Signed-off-by: xie xingguo --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 4ab0c032cca3..4d915f3cad47 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -702,7 +702,7 @@ bool PG::_calc_past_interval_range(epoch_t *start, epoch_t *end, epoch_t oldest_ << info.history.last_epoch_clean << dendl; return false; } - *end = past_intervals.begin()->first; + *end = pif->first; } *start = MAX(MAX(info.history.epoch_created,