diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-10-12 12:36:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-10-12 20:25:20 +0200 |
commit | 989793d341e730f452175fa18cf0f7ef4529d62c (patch) | |
tree | 7c7a4b44b6d8f88cc20cd9c273cb834d7bae280d /src/libsystemd/sd-daemon/sd-daemon.c | |
parent | 1c69f0966a86e3c9ae0120e6222709414b68e186 (diff) |
journal: when iterating through entry arrays and we hit an invalid one keep going
When iterating through partially synced journal files we need to be prepared
for hitting with invalid entries (specifically: non-initialized). Instead of
generated an error and giving up, let's simply try to preceed with the next one
that is valid (and debug log about this).
This reworks the logic introduced with caeab8f626e709569cc492b75eb7e119076059e7
to iteration in both directions, and tries to look for valid entries located
after the invalid one. It also extends the behaviour to both iterating through
the global entry array and per-data object entry arrays.
Fixes: #4088
Diffstat (limited to 'src/libsystemd/sd-daemon/sd-daemon.c')
0 files changed, 0 insertions, 0 deletions