]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: delete bucket objects from root pool on destruction.
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 15 Jul 2010 15:23:57 +0000 (08:23 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 15 Jul 2010 15:23:57 +0000 (08:23 -0700)
This allows a bucket with that name to be created later.

src/rgw/rgw_rados.cc

index 7cd44e4a0ec55e67cc55597db719be2b4c7d321d..d256b8c3c95fa87f23f26d3b6a92c23de1c87014 100644 (file)
@@ -340,7 +340,8 @@ int RGWRados::delete_bucket(std::string& id, std::string& bucket)
 
   r = rados->delete_pool(pool);
   if (r < 0) return r;
-  return 0;
+  r = delete_obj(id, root_bucket, bucket);
+  return r;
 }
 
 /**