mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Make it explicit with a comment why we kill the old AOF rewrite.
See #3858.
This commit is contained in:
parent
f782006782
commit
c14ba46e3a
@ -260,6 +260,9 @@ int startAppendOnly(void) {
|
|||||||
server.aof_rewrite_scheduled = 1;
|
server.aof_rewrite_scheduled = 1;
|
||||||
serverLog(LL_WARNING,"AOF was enabled but there is already a child process saving an RDB file on disk. An AOF background was scheduled to start when possible.");
|
serverLog(LL_WARNING,"AOF was enabled but there is already a child process saving an RDB file on disk. An AOF background was scheduled to start when possible.");
|
||||||
} else {
|
} else {
|
||||||
|
/* If there is a pending AOF rewrite, we need to switch it off and
|
||||||
|
* start a new one: the old one cannot be reused becuase it is not
|
||||||
|
* accumulating the AOF buffer. */
|
||||||
if (server.aof_child_pid != -1) {
|
if (server.aof_child_pid != -1) {
|
||||||
serverLog(LL_WARNING,"AOF was enabled but there is already an AOF rewriting in background. Stopping background AOF and starting a rewrite now.");
|
serverLog(LL_WARNING,"AOF was enabled but there is already an AOF rewriting in background. Stopping background AOF and starting a rewrite now.");
|
||||||
killAppendOnlyChild();
|
killAppendOnlyChild();
|
||||||
|
Loading…
Reference in New Issue
Block a user