Commit 3d588b37 authored by Arnaud Granal's avatar Arnaud Granal
Browse files

Fix error "repl-backlog-size must be 1 or greater"

The parameter repl-backlog-size is not parsed correctly in the configuration file. argv[0] is parsed instead of argv[1].
parent 18f53708
......@@ -240,7 +240,7 @@ void loadServerConfigFromString(char *config) {
err = "argument must be 'yes' or 'no'"; goto loaderr;
}
} else if (!strcasecmp(argv[0],"repl-backlog-size") && argc == 2) {
long long size = strtoll(argv[0],NULL,10);
long long size = strtoll(argv[1],NULL,10);
if (size <= 0) {
err = "repl-backlog-size must be 1 or greater.";
goto loaderr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment