diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-08-16 20:51:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-16 21:00:47 +0200 |
commit | 2dee23ebe09965308c67a661ed0a8d2cc0ae1d5f (patch) | |
tree | a204a3ffb3f2f135d1d37280479cdf241e348f5f /src/journal/journal-file.c | |
parent | 45b51b6b71c9de2067dc42c689879bb051517ccb (diff) |
journal: count number of entry arrays in header
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r-- | src/journal/journal-file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index e0b20ccefd..81952a08ee 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -839,6 +839,9 @@ static int link_entry_into_array(JournalFile *f, o->entry_array.next_entry_array_offset = htole64(q); } + if (JOURNAL_HEADER_CONTAINS(f->header, n_entry_arrays)) + f->header->n_entry_arrays = htole64(le64toh(f->header->n_entry_arrays) + 1); + *idx = htole64(hidx + 1); return 0; |