Sentinel: allow SHUTDOWN command in Sentinel mode.

This commit is contained in:
antirez
2014-02-07 11:22:24 +01:00
parent 301a0cfc69
commit 3e4968339b
3 changed files with 10 additions and 6 deletions

View File

@ -2080,7 +2080,8 @@ int prepareForShutdown(int flags) {
}
/* Close the listening sockets. Apparently this allows faster restarts. */
closeListeningSockets(1);
redisLog(REDIS_WARNING,"Redis is now ready to exit, bye bye...");
redisLog(REDIS_WARNING,"%s is now ready to exit, bye bye...",
server.sentinel_mode ? "Sentinel" : "Redis");
return REDIS_OK;
}