chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmap: resize arrays dynamically
[elogind.git]
/
src
/
journal
/
sd-journal.c
diff --git
a/src/journal/sd-journal.c
b/src/journal/sd-journal.c
index 41526b35bf8e485411095c7ba03ff9c962162f02..725c979c8799347555b831ab695aa86e2a43ea1d 100644
(file)
--- 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;
}
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);
if (!j->mmap) {
hashmap_free(j->files);
hashmap_free(j->directories_by_path);