removed outdated comment in server.cpp
Former-commit-id: 98f08034a13341059b9b1690989e7ef0207ac920
This commit is contained in:
parent
1c6219643b
commit
f48be238b1
@ -4635,10 +4635,6 @@ int prepareForShutdown(int flags) {
|
|||||||
overwrite the synchronous saving did by SHUTDOWN. */
|
overwrite the synchronous saving did by SHUTDOWN. */
|
||||||
if (g_pserver->child_type == CHILD_TYPE_RDB) {
|
if (g_pserver->child_type == CHILD_TYPE_RDB) {
|
||||||
serverLog(LL_WARNING,"There is a child saving an .rdb. Killing it!");
|
serverLog(LL_WARNING,"There is a child saving an .rdb. Killing it!");
|
||||||
/* Note that, in killRDBChild, we call rdbRemoveTempFile that will
|
|
||||||
* do close fd(in order to unlink file actully) in background thread.
|
|
||||||
* The temp rdb file fd may won't be closed when redis exits quickly,
|
|
||||||
* but OS will close this fd when process exits. */
|
|
||||||
killRDBChild();
|
killRDBChild();
|
||||||
/* Note that, in killRDBChild normally has backgroundSaveDoneHandler
|
/* Note that, in killRDBChild normally has backgroundSaveDoneHandler
|
||||||
* doing it's cleanup, but in this case this code will not be reached,
|
* doing it's cleanup, but in this case this code will not be reached,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user