From be5e9aa5ae0fd32144d7c8ffc455aa51d5ef6c98 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Sun, 5 Jul 2020 15:13:26 +0200 Subject: [PATCH] main: fix recovery resync --- kernel/sy_old/mars_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/sy_old/mars_main.c b/kernel/sy_old/mars_main.c index aea4a9fa..8d04235c 100644 --- a/kernel/sy_old/mars_main.c +++ b/kernel/sy_old/mars_main.c @@ -4556,6 +4556,9 @@ int make_log_finalize(struct mars_global *global, struct mars_dent *dent) rot->next_relevant_log->d_rest, rot->next_relevant_log->d_serial, 0); + rot->next_relevant_log = NULL; + rot->aio_brick = NULL; + goto done; /* Designated primary must exceptionally accept a damaged * logfile without successor for recovery under all circumstances. */