]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_bucket.cc: reduce scope of 'max' in rgw_remove_bucket()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 15 May 2013 12:21:34 +0000 (14:21 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 16 May 2013 12:20:09 +0000 (14:20 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_bucket.cc

index 2f05264778eddd17597409859f3ccdcd697b4bbf..23881d18ebfb13dbd4bde9d747efcedbf31838a9 100644 (file)
@@ -275,7 +275,6 @@ int rgw_remove_bucket(RGWRados *store, rgw_bucket& bucket, bool delete_children)
     return ret;
 
   obj.bucket = bucket;
-  int max = 1000;
 
   ret = rgw_get_obj(store, NULL, store->zone.domain_root,\
            bucket.name, bl, NULL);
@@ -289,6 +288,7 @@ int rgw_remove_bucket(RGWRados *store, rgw_bucket& bucket, bool delete_children)
   }
 
   if (delete_children) {
+    int max = 1000;
     ret = store->list_objects(bucket, max, prefix, delim, marker,\
             objs, common_prefixes,\
             false, ns, (bool *)false, NULL);