diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-03-20 20:37:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-03-20 23:31:11 +0100 |
commit | ffe535e43e81876d0520c37660df8015ff5a02bf (patch) | |
tree | 315f451e291f304dde43b6a6438a0226cb25d782 /src/journal | |
parent | 3ceae1bc14d2da3fc1fe4753d6657759012256dc (diff) | |
download | systemd-ffe535e43e81876d0520c37660df8015ff5a02bf.tar.gz |
journal-file: drop unused tail_entry_monotonic_valid field.
As pointed out by Matthijs van Duin:
https://lists.freedesktop.org/archives/systemd-devel/2018-March/040499.html
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journal-file.c | 5 | ||||
-rw-r--r-- | src/journal/journal-file.h | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 5643c0578d..3b4e69fed1 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -470,9 +470,6 @@ static int journal_file_refresh_header(JournalFile *f) { if (r < 0) return r; - if (sd_id128_equal(boot_id, f->header->boot_id)) - f->tail_entry_monotonic_valid = true; - f->header->boot_id = boot_id; r = journal_file_set_online(f); @@ -1797,8 +1794,6 @@ static int journal_file_link_entry(JournalFile *f, Object *o, uint64_t offset) { f->header->tail_entry_realtime = o->entry.realtime; f->header->tail_entry_monotonic = o->entry.monotonic; - f->tail_entry_monotonic_valid = true; - /* Link up the items */ n = journal_file_entry_n_items(o); for (i = 0; i < n; i++) { diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index 67abf8da49..435af53f76 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -90,8 +90,6 @@ typedef struct JournalFile { bool close_fd:1; bool archive:1; - bool tail_entry_monotonic_valid:1; - direction_t last_direction; LocationType location_type; uint64_t last_n_entries; |