diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-08-14 22:02:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-16 17:10:56 +0200 |
commit | 16e9f408fa9a9626059bdd6c89dc175e06b9e976 (patch) | |
tree | 89a6730a2f044626c9ca67d278dd6ac6a844aec3 /src/journal/test-journal-stream.c | |
parent | 405053fafa88022c68e7adf04c91a56c1cde7dd8 (diff) |
journal: implement generic sharable mmap caching logic
instead of having one simple per-file cache implement an more
comprehensive one that works for multiple files and can actually
maintain multiple maps per file and per object type.
Diffstat (limited to 'src/journal/test-journal-stream.c')
-rw-r--r-- | src/journal/test-journal-stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/test-journal-stream.c b/src/journal/test-journal-stream.c index 0925995fca..707dcc178b 100644 --- a/src/journal/test-journal-stream.c +++ b/src/journal/test-journal-stream.c @@ -79,9 +79,9 @@ int main(int argc, char *argv[]) { assert_se(mkdtemp(t)); assert_se(chdir(t) >= 0); - assert_se(journal_file_open("one.journal", O_RDWR|O_CREAT, 0666, true, false, NULL, NULL, &one) == 0); - assert_se(journal_file_open("two.journal", O_RDWR|O_CREAT, 0666, true, false, NULL, NULL, &two) == 0); - assert_se(journal_file_open("three.journal", O_RDWR|O_CREAT, 0666, true, false, NULL, NULL, &three) == 0); + assert_se(journal_file_open("one.journal", O_RDWR|O_CREAT, 0666, true, false, NULL, NULL, NULL, &one) == 0); + assert_se(journal_file_open("two.journal", O_RDWR|O_CREAT, 0666, true, false, NULL, NULL, NULL, &two) == 0); + assert_se(journal_file_open("three.journal", O_RDWR|O_CREAT, 0666, true, false, NULL, NULL, NULL, &three) == 0); for (i = 0; i < N_ENTRIES; i++) { char *p, *q; |