]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Invalid local variables and it is in an infinite loop 14006/head
authorshiqi <1454927420@qq.com>
Fri, 17 Mar 2017 02:08:39 +0000 (10:08 +0800)
committershiqi <1454927420@qq.com>
Fri, 17 Mar 2017 02:08:39 +0000 (10:08 +0800)
Signed-off-by: shiqi <1454927420@qq.com>
src/test/objectstore/test_bluefs.cc

index f9875ea4f87c2760a00ba83b60648b7ebf5144b5..2692fe43d61f5159a79777678cb0f1831bc510f7 100644 (file)
@@ -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;
       }