From 25126872175bc6f3f077d7984f1c1d057bd3c91f Mon Sep 17 00:00:00 2001 From: Udi Date: Wed, 14 Dec 2022 07:40:39 +0200 Subject: [PATCH] db_bench: Support '--groups' in addition to '-groups' (#283) --- tools/db_bench_tool.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index fe8f526aaf..c1a813420a 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -9520,7 +9520,8 @@ int db_bench_tool(int argc, char** argv) { // Check for multiple-groups mode int result = 0; - if (argc > 1 && std::string(argv[1]) == "-groups") { + if (argc > 1 && ((std::string(argv[1]) == "-groups") || + (std::string(argv[1]) == "--groups"))) { auto arg_idx = 2; std::vector first_group_argv_vec; // Process all groups, as long as all of them run successfully