From 026575b78cf37b271bfc6e258d6d4e8778346db7 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 11 Mar 2013 15:56:28 +0100 Subject: [PATCH] rgw/rgw_admin.cc: reduce scope of 'int ret' Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 7a1fe73ae6e77..2eabeb40bb1a0 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1551,12 +1551,12 @@ next: if (opt_cmd == OPT_USER_RM) { RGWUserBuckets buckets; - int ret; if (rgw_read_user_buckets(store, user_id, buckets, false) >= 0) { map& m = buckets.get_buckets(); if (!m.empty() && purge_data) { + int ret; for (std::map::iterator it = m.begin(); it != m.end(); it++) { ret = remove_bucket(store, ((*it).second).bucket, true); -- 2.39.5