Conveniently, this arose after removing all lifecycle shards from
RADOS, proving it could be done safely.
A restart is currently needed to recognize new lifecycle shards,
if rgw_gc_max_objs also changed.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
<< "entries) returned error ret==" << ret << dendl;
goto exit;
}
- entry = entries.front();
- head.marker = entry.bucket;
- head.start_date = now;
+ if (entries.size() > 0) {
+ entry = entries.front();
+ head.marker = entry.bucket;
+ head.start_date = now;
+ }
} else {
ldpp_dout(this, 0) << "RGWLC::process() head.marker !empty() at START for shard=="
<< lc_shard << " head last stored at "