diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journal-file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 180b43a9c5..d8ce495d86 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -74,7 +74,8 @@ void journal_file_close(JournalFile *f) { assert(f); if (f->header) { - if (f->writable) + /* Mark the file offline. Don't override the archived state if it already is set */ + if (f->writable && f->header->state == STATE_ONLINE) f->header->state = STATE_OFFLINE; munmap(f->header, PAGE_ALIGN(sizeof(Header))); |