]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: drop redundant re-reading of entry array object
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Sep 2023 21:05:21 +0000 (06:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 4 Nov 2023 01:54:43 +0000 (10:54 +0900)
commitf6548f053d29542d5f640d0d5bf2dca68e808c24
tree76beb6cc71db690ba63e17df5f22519fffb824be
parent12c25609972a64f6525381d5a2db1122a5c993ef
sd-journal: drop redundant re-reading of entry array object

This effectively reverts e562f131585fe6ae32b1f035ba48c1548d695259.

In the loop of the generic_array_bisect(), the offset of the entry array
object is unchanged, the object is read at the beginning of the loop, and
we do not read any other entry array object. Hence, it is not necessary to
re-read the object every time we use the object.
src/libsystemd/sd-journal/journal-file.c