]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/compress.c
journal: fix definition of _OBJECT_COMPRESSED_MAX
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Jun 2020 22:26:34 +0000 (00:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Jun 2020 13:00:37 +0000 (15:00 +0200)
commite9ece6a0e39b5af0055729d6d9feb90cf5d65289
tree1476a445f6b7fa64937a4424a6e3ad64b5177211
parentd1d8f0f369ce386878e79d56b2795397902bc221
journal: fix definition of _OBJECT_COMPRESSED_MAX

The object flags field is a bitmask, hence don't sloppily define
_OBJECT_COMPRESSED_MAX as one mor than the previous flag. That worked OK
as long as we only had two flags, but will fall apart as soon as we have
three. Let's fix this.

(It's kinda sloppy how the string table is built here, as it will be
quite sparse as soon as we have more enum entries, but let's keep it for
now.)
src/journal/compress.c
src/journal/journal-def.h