// Primary hasn't got any more objects
ceph_assert(backfill_info.empty());
- for (set<pg_shard_t>::const_iterator i = get_backfill_targets().begin();
- i != get_backfill_targets().end();
- ++i) {
- pg_shard_t bt = *i;
- map<pg_shard_t, BackfillInterval>::const_iterator piter =
- peer_backfill_info.find(bt);
+ for (const pg_shard_t& bt : get_backfill_targets()) {
+ const auto piter = peer_backfill_info.find(bt);
ceph_assert(piter != peer_backfill_info.end());
const BackfillInterval& pbi = piter->second;
// See if peer has more to process