sd-journal: drop redundant re-read of entry array object

This effectively reverts d9b61db922.

In the do-while loop, we do not read any other entry array object, hence
the current object is always in the mmap cache and not necessary to re-read it.
This commit is contained in:
Yu Watanabe
2023-09-25 10:44:50 +09:00
parent cb88da8254
commit eb6ba87344

View File

@@ -2840,10 +2840,6 @@ static int generic_array_get(
* disk properly, let's see if the next one might work for us instead. */
log_debug_errno(r, "Entry item %" PRIu64 " is bad, skipping over it.", i);
r = journal_file_move_to_object(f, OBJECT_ENTRY_ARRAY, a, &o);
if (r < 0)
return r;
} while (bump_array_index(&i, direction, k) > 0);
r = bump_entry_array(f, o, a, first, direction, &a);