Report AOF failure status to systemd in shutdown (#12065)
Since we do report the RDB error in below: ``` serverLog(LL_WARNING,"Error trying to save the DB, can't exit."); if (server.supervised_mode == SUPERVISED_SYSTEMD) redisCommunicateSystemd("STATUS=Error trying to save the DB, can't exit.\n"); goto error; ``` This may be an overlook in #6052
This commit is contained in:
parent
e289798483
commit
78202f843f
@ -4331,6 +4331,8 @@ int finishShutdown(void) {
|
|||||||
serverLog(LL_WARNING, "Writing initial AOF. Exit anyway.");
|
serverLog(LL_WARNING, "Writing initial AOF. Exit anyway.");
|
||||||
} else {
|
} else {
|
||||||
serverLog(LL_WARNING, "Writing initial AOF, can't exit.");
|
serverLog(LL_WARNING, "Writing initial AOF, can't exit.");
|
||||||
|
if (server.supervised_mode == SUPERVISED_SYSTEMD)
|
||||||
|
redisCommunicateSystemd("STATUS=Writing initial AOF, can't exit.\n");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user