]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix the ret cond check CreateBucket::Execute() 50790/head
authorJane Zhu <jzhu116@bloomberg.net>
Wed, 1 Nov 2023 16:32:52 +0000 (12:32 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 23 Nov 2023 22:40:30 +0000 (17:40 -0500)
Signed-off-by: Juan Zhu <jzhu4@dev-10-34-20-139.pw1.bcc.bloomberg.com>
src/rgw/rgw_op.cc

index 1f017af5d80de5bc977852a26c659e0f8a55ca89..5d56deaf220bab1af75c958ba2208f12c53b311b 100644 (file)
@@ -3592,7 +3592,7 @@ void RGWCreateBucket::execute(optional_yield y)
    * recover from a partial create by retrying it. */
   ldpp_dout(this, 20) << "Bucket::create() returned ret=" << op_ret << " bucket=" << s->bucket << 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;