diff options
author | Ali Maredia <amaredia@redhat.com> | 2023-09-20 06:12:15 +0200 |
---|---|---|
committer | Casey Bodley <cbodley@redhat.com> | 2023-11-23 23:40:30 +0100 |
commit | 0540cc65ef984aab63707bd7d59ecef5a9bdf17b (patch) | |
tree | 031f9ab79a05d23d52bcc43a15dfd332f08de2e0 /src/rgw/rgw_op.cc | |
parent | rgw/swift: convert underscores to hyphens in swift user metadata names (diff) | |
download | ceph-0540cc65ef984aab63707bd7d59ecef5a9bdf17b.tar.xz ceph-0540cc65ef984aab63707bd7d59ecef5a9bdf17b.zip |
rgw: modify ret cond in middle of CreateBucket::Execute()
Return prevents swift metadata from being removed
if bucket already exists.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Diffstat (limited to 'src/rgw/rgw_op.cc')
-rw-r--r-- | src/rgw/rgw_op.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 3accf03e496..1f017af5d80 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) + if (op_ret < 0 && op_ret != EEXIST && op_ret != ERR_BUCKET_EXISTS) return; const bool existed = s->bucket_exists; |