From dca6219e04505e9fa10b32e71059ce2abfae1dad Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 16 Jul 2012 22:24:02 +0200 Subject: journal: automatically rotate journal files if the data hash table is full > 75% Previously, when the main data hash table grows too full the performance simply started to decrease drastically. Instead, now simply rotate to a new journal file as the hash table gets to full, so that we can start with a new fresh empty hash table. --- src/journal/journal-def.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/journal/journal-def.h') diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h index b30ae79683..ac89e61d93 100644 --- a/src/journal/journal-def.h +++ b/src/journal/journal-def.h @@ -172,12 +172,15 @@ _packed_ struct Header { le64_t tail_object_offset; le64_t n_objects; le64_t n_entries; - le64_t seqnum; - le64_t first_seqnum; + le64_t tail_seqnum; + le64_t head_seqnum; le64_t entry_array_offset; le64_t head_entry_realtime; le64_t tail_entry_realtime; le64_t tail_entry_monotonic; + /* Added in 187 */ + le64_t n_data; + le64_t n_fields; }; #endif -- cgit v1.2.3-54-g00ecf