]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_admin.cc: reduce scope of 'int ret'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 14:56:28 +0000 (15:56 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 14:56:28 +0000 (15:56 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_admin.cc

index 7a1fe73ae6e77f723479393a084d9c53ad1164c0..2eabeb40bb1a0f342e2fd5444546f6dea634abc7 100644 (file)
@@ -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<string, RGWBucketEnt>& m = buckets.get_buckets();
 
       if (!m.empty() && purge_data) {
+       int ret;
         for (std::map<string, RGWBucketEnt>::iterator it = m.begin(); it != m.end(); it++) {
           ret = remove_bucket(store, ((*it).second).bucket, true);