Commit 48b61739 authored by Michael Olbrich's avatar Michael Olbrich Committed by Lennart Poettering

journal: don't try to compress without XZ

otherwise the header contains the HEADER_INCOMPATIBLE_COMPRESSED
flag even though the data is not compressed and reading the journal
fails.
parent b3d28469
......@@ -2021,7 +2021,9 @@ int journal_file_open(
f->flags = flags;
f->prot = prot_from_flags(flags);
f->writable = (flags & O_ACCMODE) != O_RDONLY;
#ifdef HAVE_XZ
f->compress = compress;
#endif
f->seal = seal;
if (mmap_cache)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment