Merge pull request #49402 from BryceCao/wip-fix-usage-trim-cant-be-control-by-remove-all

rgw: fix problem that usage is trimmed when the remove-all parameter …

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2022-12-20 14:32:29 -05:00 committed by GitHub
commit d1089b99f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ void RGWOp_Usage_Delete::execute(optional_yield y) {
RESTArgs::get_epoch(s, "end", (uint64_t)-1, &end);
if (rgw::sal::User::empty(user.get()) &&
!bucket_name.empty() &&
bucket_name.empty() &&
!start &&
end == (uint64_t)-1) {
bool remove_all;