main: fix replay_code report in primary mode

After a primary --force, the error couldn't go away in case of
a defective logfile. Months later, sysadmins were needlessly alarmed
when looking at the primary.
This commit is contained in:
Thomas Schoebel-Theuer 2016-05-25 06:56:10 +02:00
parent e969219fca
commit 3c244706a5
1 changed files with 3 additions and 1 deletions

View File

@ -3769,8 +3769,10 @@ int make_log_finalize(struct mars_global *global, struct mars_dent *dent)
} else if (rot->replay_code >= 0) {
rot->replay_code = trans_brick->replay_code;
}
__show_actual(parent->d_path, "replay-code", rot->replay_code);
} else {
rot->replay_code = 0;
}
__show_actual(parent->d_path, "replay-code", rot->replay_code);
/* Stopping is also possible in case of errors
*/