{
result.clear();
- for (; *index < cct->_conf->rgw_gc_max_objs && result.size() < max; (*index)++, marker.clear()) {
+ for (; *index < max_objs && result.size() < max; (*index)++, marker.clear()) {
std::list<cls_rgw_gc_obj_info> entries;
int ret = cls_rgw_gc_list(store->gc_pool_ctx, obj_names[*index], marker, max - result.size(), expired_only, entries, truncated);
if (ret == -ENOENT)
result.push_back(*iter);
}
- if (*index == cct->_conf->rgw_gc_max_objs - 1) {
+ if (*index == max_objs - 1) {
/* we cut short here, truncated will hold the correct value */
return 0;
}
int RGWGC::process()
{
- int max_objs = cct->_conf->rgw_gc_max_objs;
int max_secs = cct->_conf->rgw_gc_processor_max_time;
unsigned start;