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:
antirez
2013-02-25 11:20:17 +01:00
parent 1abce14611
commit ad3bca1fdf
3 changed files with 35 additions and 0 deletions

View File

@ -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)