mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 20:21:21 +00:00
Cluster: slaveof not allowed in redis.conf as well.
This commit is contained in:
@ -438,6 +438,12 @@ void loadServerConfigFromString(char *config) {
|
||||
sdsfreesplitres(argv,argc);
|
||||
}
|
||||
sdsfreesplitres(lines,totlines);
|
||||
|
||||
/* Sanity checks. */
|
||||
if (server.cluster_enabled && server.masterhost) {
|
||||
err = "slaveof directive not allowed in cluster mode";
|
||||
goto loaderr;
|
||||
}
|
||||
return;
|
||||
|
||||
loaderr:
|
||||
|
Reference in New Issue
Block a user