Skip to content

Commit

Permalink
journalctl: skipping the repeating entries at the conjunction of .jou…
Browse files Browse the repository at this point in the history
…rnal files
  • Loading branch information
Yangyang Shen committed Jan 19, 2021
1 parent 29d65a4 commit ec5a860
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libsystemd/sd-journal/sd-journal.c
Expand Up @@ -450,7 +450,8 @@ _pure_ static int compare_with_location(const JournalFile *f, const Location *l,
f->current_xor_hash == l->xor_hash &&
l->seqnum_set &&
sd_id128_equal(f->header->seqnum_id, l->seqnum_id) &&
f->current_seqnum == l->seqnum &&
(f->current_seqnum == l->seqnum ||
f->current_seqnum == l->seqnum + 1) &&
f != current_file)
return 0;

Expand Down

0 comments on commit ec5a860

Please sign in to comment.