diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-07-17 00:36:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-07-17 00:59:03 +0200 |
commit | 4a92baf3fa97c73f04438b5814db58783f920b32 (patch) | |
tree | f5e102e67986e5de420fea219ab7fa0237e17503 /src/journal/sd-journal.c | |
parent | 71fa6f006f92831c0c02e844b4c35e4b7197c6d6 (diff) |
journal: size journal data hash table based on maximum file size metrics
The default of 2047 hash table entries turned out to result in way too
many collisions for bigger files, hence scale the hash table size by the
estimated maximum file size.
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r-- | src/journal/sd-journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 77469e9ebd..497f79cb52 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -1116,7 +1116,7 @@ static int add_file(sd_journal *j, const char *prefix, const char *filename) { return 0; } - r = journal_file_open(path, O_RDONLY, 0, NULL, &f); + r = journal_file_open(path, O_RDONLY, 0, NULL, NULL, &f); free(path); if (r < 0) { |