@@ -368,12 +368,12 @@ static size_t do_write(int txnmode, int insmode)
368
368
return bytes ;
369
369
}
370
370
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 )) )
372
372
{
373
373
int option ;
374
374
int option_index ;
375
375
376
- while ((option = getopt_long (argc , argv , "d:b:t:h?" ,
376
+ while ((option = getopt_long (argc , argv , "d:b:n: t:h?" ,
377
377
long_options , & option_index )) != -1 ) {
378
378
switch (option ) {
379
379
case 'b' :
@@ -481,11 +481,12 @@ int main(int argc, char *argv[])
481
481
}
482
482
483
483
if (strncmp (BACKEND , "twoskip" , strlen ("twoskip" )) == 0 ||
484
+ strncmp (BACKEND , "twom" , strlen ("twom" )) == 0 ||
484
485
strncmp (BACKEND , "zeroskip" , strlen ("zeroskip" )) == 0 ) {
485
486
fprintf (stderr , "Running benchmarks for `%s` backend\n" , BACKEND );
486
487
} else {
487
488
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" );
489
490
ret = EXIT_FAILURE ;
490
491
goto done ;
491
492
}
0 commit comments