Commit 2e4fa7bb authored by antirez's avatar antirez
Browse files

Make config.c always_replicate_commands more uniform.

Better if it resembles the other similar code paths.
parent 1dd36347
...@@ -671,10 +671,10 @@ void loadServerConfigFromString(char *config) { ...@@ -671,10 +671,10 @@ void loadServerConfigFromString(char *config) {
} else if (!strcasecmp(argv[0],"lua-time-limit") && argc == 2) { } else if (!strcasecmp(argv[0],"lua-time-limit") && argc == 2) {
server.lua_time_limit = strtoll(argv[1],NULL,10); server.lua_time_limit = strtoll(argv[1],NULL,10);
} else if (!strcasecmp(argv[0],"lua-replicate-commands") && argc == 2) { } else if (!strcasecmp(argv[0],"lua-replicate-commands") && argc == 2) {
if ((server.lua_always_replicate_commands = yesnotoi(argv[1])) server.lua_always_replicate_commands = yesnotoi(argv[1]);
== -1) if (server.lua_always_replicate_commands == -1) {
{ err = "argument must be 'yes' or 'no'";
err = "argument must be 'yes' or 'no'"; goto loaderr; goto loaderr;
} }
} else if (!strcasecmp(argv[0],"slowlog-log-slower-than") && } else if (!strcasecmp(argv[0],"slowlog-log-slower-than") &&
argc == 2) argc == 2)
......
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