if (backfill_targets.empty()) {
// Caller is GetInfo
backfill_targets = want_backfill;
- for (set<pg_shard_t>::iterator i = backfill_targets.begin();
- i != backfill_targets.end();
- ++i) {
- assert(!stray_set.count(*i));
- }
- } else {
- // Will not change if already set because up would have had to change
- assert(backfill_targets == want_backfill);
- // Verify that nothing in backfill is in stray_set
- for (set<pg_shard_t>::iterator i = want_backfill.begin();
- i != want_backfill.end();
- ++i) {
- assert(stray_set.find(*i) == stray_set.end());
- }
+ }
+ // Will not change if already set because up would have had to change
+ // Verify that nothing in backfill is in stray_set
+ for (set<pg_shard_t>::iterator i = want_backfill.begin();
+ i != want_backfill.end();
+ ++i) {
+ assert(stray_set.find(*i) == stray_set.end());
}
dout(10) << "choose_acting want " << want << " (== acting) backfill_targets "
<< want_backfill << dendl;