rgw_obj_index_key prev_marker;
string skip_after_delim;
- uint16_t attempt = 0;
- while (true) {
+ for (uint16_t attempt = 1; /* empty */; ++attempt) {
ldout(cct, 20) << "RGWRados::Bucket::List::" << __func__ <<
- " beginning attempt=" << ++attempt << dendl;
-
- // this loop is generally expected only to have a single
- // iteration; the standard exit is at the bottom of the loop, but
- // there's an error condition emergency exit as well
+ " starting attempt " << attempt << dendl;
if (attempt > 1 && !(prev_marker < cur_marker)) {
// we've failed to make forward progress
// few, results, return with what we have
break;
}
-
- ldout(cct, 1) << "RGWRados::Bucket::List::" << __func__ <<
- " INFO ordered bucket listing requires read #" << (1 + attempt) <<
- dendl;
- } // read attempt loop
+ } // for (uint16_t attempt...
done:
if (is_truncated)