diff options
author | Alex Gartrell <agartrell@fb.com> | 2018-02-26 21:56:35 -0800 |
---|---|---|
committer | Alex Gartrell <agartrell@fb.com> | 2018-03-20 11:48:52 -0700 |
commit | 57850536d501376feb46fe908418937376efe85f (patch) | |
tree | 69a87d5dd5209cec0ad7cf77fcb2d0c4425e0056 /src/journal/sd-journal.c | |
parent | 3ceae1bc14d2da3fc1fe4753d6657759012256dc (diff) | |
download | systemd-57850536d501376feb46fe908418937376efe85f.tar.gz |
journal: provide compress_threshold_bytes parameter
Previously the compression threshold was hardcoded to 512, which meant that
smaller values wouldn't be compressed. This left some storage savings on the
table, so instead, we make that number tunable.
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 11dbd83f2d..79ffd9cb3f 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -1337,7 +1337,7 @@ static int add_any_file( goto finish; } - r = journal_file_open(fd, path, O_RDONLY, 0, false, false, NULL, j->mmap, NULL, NULL, &f); + r = journal_file_open(fd, path, O_RDONLY, 0, false, 0, false, NULL, j->mmap, NULL, NULL, &f); if (r < 0) { log_debug_errno(r, "Failed to open journal file %s: %m", path); goto finish; |