journalctl: show duplicate entries if they are from the same file (#14898)
authorGeorg Müller <georgmueller@gmx.net>
Thu, 20 Feb 2020 18:19:41 +0000 (19:19 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Mar 2020 19:25:01 +0000 (20:25 +0100)
commit2867dfbf70a5d761f662fe4b7c81a67e19df008b
tree114af26d58062446bd7784ec096740b52103b19e
parentaf339a3122be302446ec79b76123fd4661a120f9
journalctl: show duplicate entries if they are from the same file (#14898)

When having a service which intentionally outputs multiple equal lines,
all these messages might be inserted with the same timestamp.

journalctl has a mechanism to avoid duplicate lines, which might be in
different journal files.

This patch allows duplicate lines, if they are from the same file.

(cherry picked from commit b6849042d610da90d5821a03967d648d424f7864)
src/journal/sd-journal.c