]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rados.cc: reduce scope of variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 23 Apr 2014 15:50:51 +0000 (17:50 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 30 Apr 2014 20:51:44 +0000 (22:51 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/tools/rados/rados.cc

index 5b9297addf2b6ddce79beb3a9089b72e61eec55b..0fa6d4e9f8bbbfb492d0d1a1c276256686856cc4 100644 (file)
@@ -1125,12 +1125,12 @@ static int do_cache_evict(IoCtx& io_ctx, string oid)
 
 static int do_cache_flush_evict_all(IoCtx& io_ctx, bool blocking)
 {
-  int r;
   int errors = 0;
   try {
     librados::ObjectIterator i = io_ctx.objects_begin();
     librados::ObjectIterator i_end = io_ctx.objects_end();
     for (; i != i_end; ++i) {
+      int r;
       cout << i->first << "\t" << i->second << std::endl;
       if (i->second.size()) {
        io_ctx.locator_set_key(i->second);