fix redis-cli --memkeys-samples 0

This commit is contained in:
Ofir Luzon 2021-11-04 09:00:08 -07:00
parent f27083a4a8
commit 6c54f6b1d1
1 changed files with 1 additions and 0 deletions

View File

@ -1574,6 +1574,7 @@ static int parseOptions(int argc, char **argv) {
} else if (!strcmp(argv[i],"--memkeys-samples")) {
config.memkeys = 1;
config.memkeys_samples = atoi(argv[++i]);
if (!config.memkeys_samples) config.memkeys_samples = LLONG_MAX;
} else if (!strcmp(argv[i],"--hotkeys")) {
config.hotkeys = 1;
} else if (!strcmp(argv[i],"--eval") && !lastarg) {