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: v17.2.8~101^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6e07b7eeb4ed23aff31a4bc40ca8b54bf691b7b2;p=ceph.git rgw: fix the ret cond check CreateBucket::Execute() Signed-off-by: Juan Zhu (cherry picked from commit a4553f035124b53ebd77d3d01911fe523d7df881) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 9791ccc50bf..27da62f2195 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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;