From: shiqi <1454927420@qq.com> Date: Fri, 17 Mar 2017 02:08:39 +0000 (+0800) Subject: test: Invalid local variables and it is in an infinite loop X-Git-Tag: v12.0.1~47^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=469d59a761d4022238f537076c23f47052694e09;p=ceph-ci.git test: Invalid local variables and it is in an infinite loop Signed-off-by: shiqi <1454927420@qq.com> --- diff --git a/src/test/objectstore/test_bluefs.cc b/src/test/objectstore/test_bluefs.cc index f9875ea4f87..2692fe43d61 100644 --- a/src/test/objectstore/test_bluefs.cc +++ b/src/test/objectstore/test_bluefs.cc @@ -194,7 +194,7 @@ void write_single_file(BlueFS &fs, uint64_t rationed_bytes) stringstream ss; string dir = "dir.test"; string file = "testfile"; - int r=0, j=0; + int r=0; uint64_t written_bytes = 0; rationed_bytes -= ALLOC_SIZE; while (1) { @@ -211,7 +211,6 @@ void write_single_file(BlueFS &fs, uint64_t rationed_bytes) } written_bytes += g_conf->bluefs_alloc_size; fs.close_writer(h); - j++; if ((rationed_bytes - written_bytes) <= g_conf->bluefs_alloc_size) { break; }