From: Jane Zhu Date: Wed, 1 Nov 2023 16:32:52 +0000 (-0400) Subject: rgw: fix the ret cond check CreateBucket::Execute() X-Git-Tag: v19.0.0~51^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4553f035124b53ebd77d3d01911fe523d7df881;p=ceph.git rgw: fix the ret cond check CreateBucket::Execute() Signed-off-by: Juan Zhu --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 1f017af5d80d..5d56deaf220b 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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;