diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-10-25 05:14:51 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-10-25 05:14:51 +0100 |
commit | 8e0dfb6b8e7a0933c14ded7348e7b778a603aa37 (patch) | |
tree | dc277c14a8f76ebe851aad252baa1c6d09dc1259 /src/journal/journal-file.h | |
parent | Merge pull request #1665 from evverx/unit-printf-fixes (diff) | |
parent | journal: irrelevant coding style fixes (diff) | |
download | systemd-8e0dfb6b8e7a0933c14ded7348e7b778a603aa37.tar.xz systemd-8e0dfb6b8e7a0933c14ded7348e7b778a603aa37.zip |
Merge pull request #1663 from poettering/journal-compress-fix
journal: fix error handling when compressing journal objects
Diffstat (limited to 'src/journal/journal-file.h')
-rw-r--r-- | src/journal/journal-file.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index f2c07356c8..898d12d992 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -235,3 +235,8 @@ bool journal_file_rotate_suggested(JournalFile *f, usec_t max_file_usec); int journal_file_map_data_hash_table(JournalFile *f); int journal_file_map_field_hash_table(JournalFile *f); + +static inline bool JOURNAL_FILE_COMPRESS(JournalFile *f) { + assert(f); + return f->compress_xz || f->compress_lz4; +} |