rdb_child_pid isn't the correct value
This commit is contained in:
parent
932fc207ea
commit
6c26f91bcd
@ -3694,7 +3694,7 @@ void killRDBChild(bool fSynchronous) {
|
|||||||
serverAssert(GlobalLocksAcquired());
|
serverAssert(GlobalLocksAcquired());
|
||||||
|
|
||||||
if (cserver.fForkBgSave) {
|
if (cserver.fForkBgSave) {
|
||||||
kill(g_pserver->rdb_child_pid,SIGUSR1);
|
kill(g_pserver->child_pid,SIGUSR1);
|
||||||
} else {
|
} else {
|
||||||
g_pserver->rdbThreadVars.fRdbThreadCancel = true;
|
g_pserver->rdbThreadVars.fRdbThreadCancel = true;
|
||||||
if (g_pserver->rdb_child_type == RDB_CHILD_TYPE_SOCKET) {
|
if (g_pserver->rdb_child_type == RDB_CHILD_TYPE_SOCKET) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user