Skip to content

Commit a1a30bb

Browse files
committed
cyrudbbench: add twom support
1 parent c5636b2 commit a1a30bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bench/cyrdbbench.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,12 @@ static size_t do_write(int txnmode, int insmode)
368368
return bytes;
369369
}
370370

371-
static int parse_options(int argc, char **argv, const struct option *options)
371+
static int parse_options(int argc, char **argv, const struct option *options __attribute__((unused)))
372372
{
373373
int option;
374374
int option_index;
375375

376-
while ((option = getopt_long(argc, argv, "d:b:t:h?",
376+
while ((option = getopt_long(argc, argv, "d:b:n:t:h?",
377377
long_options, &option_index)) != -1) {
378378
switch (option) {
379379
case 'b':
@@ -481,11 +481,12 @@ int main(int argc, char *argv[])
481481
}
482482

483483
if (strncmp(BACKEND, "twoskip", strlen("twoskip")) == 0 ||
484+
strncmp(BACKEND, "twom", strlen("twom")) == 0 ||
484485
strncmp(BACKEND, "zeroskip", strlen("zeroskip")) == 0) {
485486
fprintf(stderr, "Running benchmarks for `%s` backend\n", BACKEND);
486487
} else {
487488
fprintf(stderr, "%s is not a valid CyrusDB backend. ", BACKEND);
488-
fprintf(stderr, "Choose between `twoskip` or `zeroskip`.\n");
489+
fprintf(stderr, "Choose between `twom`, `twoskip`, or `zeroskip`.\n");
489490
ret = EXIT_FAILURE;
490491
goto done;
491492
}

0 commit comments

Comments
 (0)