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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Oct 2021 15:01:50 +0000 (17:01 +0200)
commit99ae9b83b42abbe54c059ae964b737b64ae17df9
treefa361269153fe39155d4f4aa5902cc70f71b53d8
parentdc331f4c9268d17a66f4393cfd0dba14c7022d41
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.

(cherry picked from commit adbd80f51088058d55e703abe0ac11476cfe0ba4)
src/libsystemd/sd-journal/sd-journal.c