sd-journal: Ignore data threshold if set to zero in sd_journal_enumerate_fields()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 15 Sep 2021 12:05:46 +0000 (13:05 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Sep 2021 15:12:25 +0000 (00:12 +0900)
commitadbd80f51088058d55e703abe0ac11476cfe0ba4
tree1b5fc8ae3fb51d0d5efd1a75a9229d9ce48a3294
parent08987f911594164a4873c7c359d7a47d90596977
sd-journal: Ignore data threshold if set to zero in sd_journal_enumerate_fields()

According to the documentation, Setting the data threshold to zero disables the
data threshold alltogether. Let's make sure we actually implement this behaviour
in sd_journal_enumerate_fields() by only applying the data threshold if it exceeds
zero.
src/libsystemd/sd-journal/sd-journal.c