X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3ea204e1031a94dafca7f7e4eed2f79ec3bd7fd0..a3309139992de03f3e68ec648db188c1c43057a0:/src/config.c?ds=sidebyside diff --git a/src/config.c b/src/config.c index fec72a45..98fdb15d 100644 --- a/src/config.c +++ b/src/config.c @@ -289,6 +289,13 @@ void loadServerConfig(char *filename) { err = "Target command name already exists"; goto loaderr; } } + } else if (!strcasecmp(argv[0],"cluster-enabled") && argc == 2) { + if ((server.cluster_enabled = yesnotoi(argv[1])) == -1) { + err = "argument must be 'yes' or 'no'"; goto loaderr; + } + } else if (!strcasecmp(argv[0],"cluster-config-file") && argc == 2) { + zfree(server.cluster.configfile); + server.cluster.configfile = zstrdup(argv[1]); } else { err = "Bad directive or wrong number of arguments"; goto loaderr; }