diff options
author | Alex Gartrell <agartrell@fb.com> | 2018-02-27 06:56:35 +0100 |
---|---|---|
committer | Alex Gartrell <agartrell@fb.com> | 2018-03-20 19:48:52 +0100 |
commit | 57850536d501376feb46fe908418937376efe85f (patch) | |
tree | 69a87d5dd5209cec0ad7cf77fcb2d0c4425e0056 /src/journal/test-journal-flush.c | |
parent | basic/fs-util: skip fsync_directory_of_file() if /proc/self/fd/ is not availa... (diff) | |
download | systemd-57850536d501376feb46fe908418937376efe85f.tar.xz systemd-57850536d501376feb46fe908418937376efe85f.zip |
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/test-journal-flush.c')
-rw-r--r-- | src/journal/test-journal-flush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/test-journal-flush.c b/src/journal/test-journal-flush.c index f9b7b75ef1..e302fd61f1 100644 --- a/src/journal/test-journal-flush.c +++ b/src/journal/test-journal-flush.c @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) { assert_se(mkdtemp(dn)); fn = strappend(dn, "/test.journal"); - r = journal_file_open(-1, fn, O_CREAT|O_RDWR, 0644, false, false, NULL, NULL, NULL, NULL, &new_journal); + r = journal_file_open(-1, fn, O_CREAT|O_RDWR, 0644, false, 0, false, NULL, NULL, NULL, NULL, &new_journal); assert_se(r >= 0); r = sd_journal_open(&j, 0); |