]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix the ret cond check CreateBucket::Execute()
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:44:11 +0000 (18:44 +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 2f5d7115d3a59f8844c613fa036227ab29564cfd..a8576fa0ecce3c83de374d7a446d0e720ff68965 100644 (file)
@@ -3439,7 +3439,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;