From 682f1076aa1ae82f92e2ced6d2ee17ec8a0c0bac Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 15 May 2013 14:21:34 +0200 Subject: [PATCH] rgw/rgw_bucket.cc: reduce scope of 'max' in rgw_remove_bucket() Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_bucket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 2f05264778ed..23881d18ebfb 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -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); -- 2.47.3