Skip to content

Commit

Permalink
journald: fixed assertion failure when system journal rotation fails …
Browse files Browse the repository at this point in the history
…(#9893)

(cherry picked from commit fd790d6)

Resolves: #1763619
  • Loading branch information
rmetrich authored and systemd-rhel-bot committed Oct 22, 2019
1 parent 55d9d6d commit 33aa231
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/journal/journald-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,8 @@ int server_flush_to_var(Server *s, bool require_flag_file) {
r = 0;

finish:
journal_file_post_change(s->system_journal);
if (s->system_journal)
journal_file_post_change(s->system_journal);

s->runtime_journal = journal_file_close(s->runtime_journal);

Expand Down

0 comments on commit 33aa231

Please sign in to comment.