Bucket head OPs should have quota in the output. However, we were only
fetching quota on OPs that also had an object. The object itself is not
necessary for quota (although a bucket is). Change it so that we get
quota on bucket OPs as well.
Fixes https://tracker.ceph.com/issues/54488
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
return 0;
}
- /* only interested in object related ops */
- if (rgw::sal::Bucket::empty(s->bucket.get())
- || rgw::sal::Object::empty(s->object.get())) {
+ /* Need a bucket to get quota */
+ if (rgw::sal::Bucket::empty(s->bucket.get())) {
return 0;
}