diff options
author | harleyliao <357857613@qq.com> | 2021-11-16 19:59:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 13:59:03 +0200 |
commit | 992a610fe819c0bea381c5c717a218019362b40e (patch) | |
tree | 567cadb5f4a26595522919ec31cbd91eefcfa9c8 /src | |
parent | 985430b4fca5ac55b121a98ac0407909c6767530 (diff) | |
download | redis-992a610fe819c0bea381c5c717a218019362b40e.tar.gz |
set aof rewrite status err, when fork fail (#5606)
when aof rewrite is failed by fork(), It'll be indicated by aof_last_bgrewrite_status
INFO field, same as when the fork child fails later on.
Diffstat (limited to 'src')
-rw-r--r-- | src/aof.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1755,6 +1755,7 @@ int rewriteAppendOnlyFileBackground(void) { } else { /* Parent */ if (childpid == -1) { + server.aof_lastbgrewrite_status = C_ERR; serverLog(LL_WARNING, "Can't rewrite append only file in background: fork: %s", strerror(errno)); |