]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: bucket cannot be recreated if already exists
authorYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 17 Dec 2011 01:13:53 +0000 (17:13 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 17 Dec 2011 06:21:10 +0000 (22:21 -0800)
src/rgw/rgw_rados.cc

index 146050b56af12aa2fedd73fa50488c1b3f26062f..884aa591801311ca72ec083926a62e20eaa6176e 100644 (file)
@@ -417,7 +417,7 @@ int RGWRados::create_bucket(string& owner, rgw_bucket& bucket,
 
   bufferlist outbl;
   int ret = root_pool_ctx.operate(bucket.name, &op);
-  if (ret < 0 && ret != -EEXIST)
+  if (ret < 0)
     return ret;
 
   if (system_bucket) {