diff options
Diffstat (limited to 'src/rgw/rgw_rados.cc')
-rw-r--r-- | src/rgw/rgw_rados.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index cb396bfadbc..552d8703c4e 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -633,8 +633,10 @@ int RGWRados::create_bucket(string& owner, rgw_bucket& bucket, info.bucket = bucket; info.owner = owner; ret = store_bucket_info(info, &attrs, exclusive); - if (ret == -EEXIST) + if (ret == -EEXIST) { + io_ctx.remove(dir_oid); return ret; + } } return ret; |