]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
TestErasureCodeShec_thread.cc: reduce scope of var
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 5 Mar 2015 05:23:16 +0000 (06:23 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 11 Mar 2015 12:58:42 +0000 (13:58 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/erasure-code/TestErasureCodeShec_thread.cc

index eaefa760a8e4cb56ba5d12097aab2e8517dfc246..4f59f0001d9d1da457657d8099dbf96a29b2b5c8 100644 (file)
@@ -102,7 +102,6 @@ void* thread1(void* pParam)
   TestParam* param = static_cast<TestParam*>(pParam);
 
   time_t start, end;
-  int r;
 
   ErasureCodePluginRegistry &instance = ErasureCodePluginRegistry::instance();
 
@@ -136,6 +135,7 @@ void* thread1(void* pParam)
 
   while (kTestSec >= (end - start)) {
     //init
+    int r;
     ErasureCodeShec* shec = new ErasureCodeShecReedSolomonVandermonde(
                                    tcache,
                                    ErasureCodeShec::MULTIPLE);