]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-journal/sd-journal.c
journal: Pass data objects to journal_file_move_to_entry_..._for_data() functions
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Jan 2022 11:10:26 +0000 (11:10 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Jan 2022 20:16:00 +0000 (20:16 +0000)
commitec50313d4e329de276240883d86d05168a4cf09f
tree78b2ad5c7ef95c47efb9e380ff7dee69b6b77bce
parent57e97246cd391f9715e3e56c9bbd798dbc333e39
journal: Pass data objects to journal_file_move_to_entry_..._for_data() functions

This reduces the number of calls to journal_file_move_to_object() which are heavy.
All call sites have easy access to the data object so this change doesn't end up
complicating things.
src/journal/test-journal.c
src/libsystemd/sd-journal/journal-file.c
src/libsystemd/sd-journal/journal-file.h
src/libsystemd/sd-journal/sd-journal.c