The code moved from be_select_auth_object to be_compare_scrubmaps
74bd8708dfbfd3c8e7ba3f41d8534609dcbc1237 but the j iterator is use
differently although it has the same type. Use map.begin() as a
fallback instead.
http://tracker.ceph.com/issues/10408 Fixes: #10408
Signed-off-by: Loic Dachary <ldachary@dachary.org>
// Something is better than nothing
// TODO: something is NOT better than nothing, do something like
// unfound_lost if no valid copies can be found, or just mark unfound
- auth = j;
- dout(10) << __func__ << ": selecting osd " << j->first
+ map<pg_shard_t, ScrubMap *>::const_iterator fallback = maps.begin();
+ auth = fallback;
+ dout(10) << __func__ << ": selecting osd " << fallback->first
<< " for obj " << *k
<< ", something is better than nothing, FIXME"
<< dendl;