]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: skip full decompression when caller only checks field existence
authornoxiouz <atiurin@proton.me>
Tue, 7 Apr 2026 15:29:56 +0000 (16:29 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 8 Apr 2026 14:33:20 +0000 (16:33 +0200)
commita5c811591ff25fef3f3fd2b6ae09eaa6eeb7e5bd
tree0f55651126cae3500e4044b61c028c24996d24d7
parent329233dcbf769a98eeaa6f1416b6f446d9263f13
sd-journal: skip full decompression when caller only checks field existence

When both ret_data and ret_size are NULL after decompress_startswith()
has confirmed the field matches, skip the decompress_blob() call.
This avoids decompressing potentially large payloads (e.g. inline
coredumps) just to discard the result.

Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
src/libsystemd/sd-journal/journal-file.c