From f2702a83d3028bd85701285fcd0b291bbfc30827 Mon Sep 17 00:00:00 2001 From: luo rixin Date: Tue, 10 Sep 2019 21:48:59 +0800 Subject: [PATCH] test/kv_store_bench.cc:fix teuthology_tests() return value set teuthology_tests() the right return value while max_ops_in_flight > 1 Signed-off-by: luo rixin --- src/test/kv_store_bench.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/kv_store_bench.cc b/src/test/kv_store_bench.cc index ff9b36872dd..d3ca358b1fb 100644 --- a/src/test/kv_store_bench.cc +++ b/src/test/kv_store_bench.cc @@ -535,7 +535,7 @@ void KvStoreBench::print_time_data() { int KvStoreBench::teuthology_tests() { int err = 0; if (max_ops_in_flight > 1) { - test_teuthology_aio(&KvStoreBench::rand_distr, probs); + err = test_teuthology_aio(&KvStoreBench::rand_distr, probs); } else { err = test_teuthology_sync(&KvStoreBench::rand_distr, probs); } -- 2.39.5