]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use pif directly
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 15 Apr 2016 13:09:35 +0000 (21:09 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 23 Apr 2016 01:11:25 +0000 (09:11 +0800)
We don't have to call past_intervals.begin() again as we currently
have pif point to it already.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PG.cc

index 4ab0c032cca350f889a1530c0e1744691a86e286..4d915f3cad4712c1dcbdbcd9fcee3dd5e1c3e6e2 100644 (file)
@@ -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,