]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
obj_bencher: remove excess 'object_size = op_size'
authorDmitry Yatsushkevich <dyatsushkevich@mirantis.com>
Mon, 30 Mar 2015 22:23:13 +0000 (15:23 -0700)
committerDmitry Yatsushkevich <dmitry.yatsushkevich@gmail.com>
Tue, 5 May 2015 21:50:01 +0000 (14:50 -0700)
Remove excess branch 'else {object_size = op_size;}' from
'if(operation != OP_WRITE){...}else{object_size = op_size;}' because
'object_size' variable already initialized with 'op_size'

Signed-off-by: Dmitry Yatsushkevich <dyatsushkevich@mirantis.com>
src/common/obj_bencher.cc

index 9d132e59c0e95f10c1786f44f317c45a03f77bb5..4b6a790f2ef198e8e3f2baae86262c81dcccb86c 100644 (file)
@@ -191,8 +191,6 @@ int ObjBencher::aio_bench(
         cerr << "Must write data before running a read benchmark!" << std::endl;
       return r;
     }
-  } else {
-    object_size = op_size;
   }
 
   char* contentsChars = new char[object_size];