journal: don't try to reuse already calculated hash between files with keyed hash...
authorLennart Poettering <lennart@poettering.net>
Tue, 8 Jun 2021 21:17:53 +0000 (23:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Jun 2021 07:34:55 +0000 (09:34 +0200)
commit2e1a8a5dab8b5519c079c9bed54fc682aa4095b0
treea54d5f2243e6d147e6c71cf4b564957b3eec7bde
parent8d5a1082b09ebc6ed9d4e940b6e5bfdd346d05b2
journal: don't try to reuse already calculated hash between files with keyed hash feature

When suppressing duplicate fields between files we so far tried to reuse
the already known hash value of the data fields between files. This was
fine as long as we used the same hash function everywhere. However,
since addition of the keyed hash feature for journal files this doesn't
work anymore, since the hashes will be different for different files.

Fixes: #19172
src/libsystemd/sd-journal/sd-journal.c