X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7d8c555e92954b02d40c15702476fd48e55c4f94..d200342ac2730c27cd456a79cc9e8725eaf0c5c2:/src/config.c diff --git a/src/config.c b/src/config.c index f6c6ad68..98fdb15d 100644 --- a/src/config.c +++ b/src/config.c @@ -293,6 +293,9 @@ void loadServerConfig(char *filename) { 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; }