diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-08-18 01:46:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-18 01:46:20 +0200 |
commit | 84168d8068bb67dcd5468ab3b376535d81643aef (patch) | |
tree | 134286a4aedea80c2775faf54ea708dff29db330 /src/journal/sd-journal.c | |
parent | fb9a24b6b1ed5b1f42e6e350ccdb7e11800a83bd (diff) |
mmap: resize arrays dynamically
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r-- | src/journal/sd-journal.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 41526b35bf..725c979c87 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -1439,10 +1439,7 @@ static sd_journal *journal_new(int flags, const char *path) { return NULL; } - /* One context for each type, plus the zeroth catchall - * context. One fd for each file plus one for each type, which - * is need when verifying things */ - j->mmap = mmap_cache_new(_OBJECT_TYPE_MAX, JOURNAL_FILES_MAX + _OBJECT_TYPE_MAX); + j->mmap = mmap_cache_new(); if (!j->mmap) { hashmap_free(j->files); hashmap_free(j->directories_by_path); |