]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix problem that usage is trimmed when the remove-all parameter of rgw admin... 49402/head
authorcao.leilc <cao.leilc@inspur.com>
Tue, 13 Dec 2022 06:34:14 +0000 (14:34 +0800)
committercao.leilc <cao.leilc@inspur.com>
Tue, 13 Dec 2022 06:34:14 +0000 (14:34 +0800)
Fixes: https://tracker.ceph.com/issues/54254
Signed-off-by: caolei <cao.leilc@inspur.com>
src/rgw/rgw_rest_usage.cc

index 104dc193884de0ff36530868183a694c4e9a50b5..9207a68cdf40644d3b54235bc5801ed0f80f2ae5 100644 (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;