Merge pull request #969 from serphen/unstable

Fix error "repl-backlog-size must be 1 or greater"
This commit is contained in:
Salvatore Sanfilippo 2013-02-25 09:38:15 -08:00
commit b26bb768bc

View File

@ -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;