]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix the ret cond check CreateBucket::Execute() 56616/head
authorJane Zhu <jzhu116@bloomberg.net>
Wed, 1 Nov 2023 16:32:52 +0000 (12:32 -0400)
committerPeter Razumovsky <prazumovsky@mirantis.com>
Mon, 1 Apr 2024 14:56:21 +0000 (18:56 +0400)
Signed-off-by: Juan Zhu <jzhu4@dev-10-34-20-139.pw1.bcc.bloomberg.com>
(cherry picked from commit a4553f035124b53ebd77d3d01911fe523d7df881)

src/rgw/rgw_op.cc

index 9791ccc50bfbbb34ea1f3202f138d8e717ac2083..27da62f2195ec9d8d68e0b56c691a1bc2e7f9bd8 100644 (file)
@@ -3305,7 +3305,7 @@ void RGWCreateBucket::execute(optional_yield y)
    * recover from a partial create by retrying it. */
   ldpp_dout(this, 20) << "rgw_create_bucket returned ret=" << op_ret << " bucket=" << s->bucket.get() << dendl;
 
-  if (op_ret < 0 && op_ret != EEXIST && op_ret != ERR_BUCKET_EXISTS)
+  if (op_ret < 0 && op_ret != -EEXIST && op_ret != -ERR_BUCKET_EXISTS)
     return;
 
   const bool existed = s->bucket_exists;