]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_admin.cc: reduce scope of 'ret'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 15 May 2013 12:20:58 +0000 (14:20 +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_admin.cc

index fff32ca435db97e25a80525238971e16cf8bc8f3..c505cc207640979cdf575ce697429e62f92189ef 100644 (file)
@@ -1151,7 +1151,6 @@ next:
   }
 
   if (opt_cmd == OPT_GC_LIST) {
-    int ret;
     int index = 0;
     string marker;
     bool truncated;
@@ -1159,7 +1158,7 @@ next:
 
     do {
       list<cls_rgw_gc_obj_info> result;
-      ret = store->list_gc_objs(&index, marker, 1000, result, &truncated);
+      int ret = store->list_gc_objs(&index, marker, 1000, result, &truncated);
       if (ret < 0) {
        cerr << "ERROR: failed to list objs: " << cpp_strerror(-ret) << std::endl;
        return 1;