From 79a21f164f5db084781bb38eeb79ce488e65cfff 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 7f6f25a64d..e61ba16c76 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -9457,7 +9457,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