return -EIO;
}
- if (entry.exists && entry.key.instance.empty()) {
+ if (entry.exists && entry.flags == 0) {
rgw_bucket_category_stats& stats = calc_header->stats[entry.meta.category];
stats.num_entries++;
stats.total_size += entry.meta.accounted_size;
accounted_stats->total_size_rounded += cls_rgw_get_rounded_size(entry.meta.accounted_size);
accounted_stats->actual_size += entry.meta.size;
if (type == BIIndexType::Plain) {
- return entry.exists && entry.key.instance.empty();
+ return entry.exists && entry.flags == 0;
} else if (type == BIIndexType::Instance) {
return entry.exists;
}