mirror of
https://github.com/fluencelabs/redis
synced 2025-06-23 05:51:34 +00:00
Cluster: added stub for verifyClusterConfigWithData().
See the top-comment for the function in this commit for details about what the function is supposed to do.
This commit is contained in:
@ -2741,6 +2741,14 @@ int main(int argc, char **argv) {
|
||||
linuxOvercommitMemoryWarning();
|
||||
#endif
|
||||
loadDataFromDisk();
|
||||
if (server.cluster_enabled) {
|
||||
if (verifyClusterConfigWithData() == REDIS_ERR) {
|
||||
redisLog(REDIS_WARNING,
|
||||
"You can't have keys in a DB different than DB 0 when in "
|
||||
"Cluster mode. Exiting.");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
if (server.ipfd > 0)
|
||||
redisLog(REDIS_NOTICE,"The server is now ready to accept connections on port %d", server.port);
|
||||
if (server.sofd > 0)
|
||||
|
Reference in New Issue
Block a user