diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-10-14 17:58:13 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-10-23 17:38:02 +0200 |
commit | 4743015db6ad394bd43efadb0651e3906b4efc25 (patch) | |
tree | f4be083cf773debc1728cb2f4f93506ab1bfd9ef /src/journal/journal-file.h | |
parent | 9f03ee51a2207954ef18be79ca3e11cd14ca56fd (diff) |
journal: make JournalFile::chain_cache an OrderedHashmap
The order of entries may matter here. Oldest entries are evicted first
when the cache is full.
(Though I don't see anything to rejuvenate entries on cache hits.)
Diffstat (limited to 'src/journal/journal-file.h')
-rw-r--r-- | src/journal/journal-file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index fa5b943e46..211e121d5c 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -76,7 +76,7 @@ typedef struct JournalFile { JournalMetrics metrics; MMapCache *mmap; - Hashmap *chain_cache; + OrderedHashmap *chain_cache; #if defined(HAVE_XZ) || defined(HAVE_LZ4) void *compress_buffer; |