Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GehaFearless committed Mar 1, 2023
1 parent ece6cc9 commit e98868c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/bench_test/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ DSN_DEFINE_int32(pegasus.benchmark, multi_count, 100, "Values count of the same
DSN_DEFINE_string(pegasus.benchmark, benchmarks, "", "method by operation type");

DSN_DEFINE_group_validator(multi_count, [](std::string &message) -> bool {
if ((FLAGS_benchmarks == "multisetrandom_pegasus" || FLAGS_benchmarks == "multigetrandom_pegasus") && FLAGS_benchmark_num % FLAGS_multi_count != 0) {
std::string operation_type = FLAGS_benchmarks;
if ((operation_type == "multisetrandom_pegasus" ||
operation_type == "multigetrandom_pegasus") &&
FLAGS_benchmark_num % FLAGS_multi_count != 0) {
message = fmt::format("num {} should be a multiple of multi_count({}).",
FLAGS_benchmark_num,
FLAGS_multi_count);
Expand Down Expand Up @@ -198,7 +201,6 @@ void benchmark::multi_set_random(thread_arg *thread)
dsn_exit(1);
}
fmt::print(stderr, "Set timeout, retry({})\n", try_count);

}

// Count this operation.
Expand Down

0 comments on commit e98868c

Please sign in to comment.