mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 05:21:33 +00:00
FIX: core dump in redis-benchmark when the -r
is the last arg
This commit is contained in:
@ -1294,7 +1294,7 @@ int parseOptions(int argc, const char **argv) {
|
||||
if (*p < '0' || *p > '9') goto invalid;
|
||||
}
|
||||
config.randomkeys = 1;
|
||||
config.randomkeys_keyspacelen = atoi(argv[++i]);
|
||||
config.randomkeys_keyspacelen = atoi(next);
|
||||
if (config.randomkeys_keyspacelen < 0)
|
||||
config.randomkeys_keyspacelen = 0;
|
||||
} else if (!strcmp(argv[i],"-q")) {
|
||||
|
Reference in New Issue
Block a user