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>
(cherry picked from commit
8966edd2fba7ace36bb3eebfbb556a1ece550fa8)
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;
}