summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2016-10-12 09:58:10 +0200
committerFranck Bui <fbui@suse.com>2016-10-19 09:53:07 +0200
commit3a19f2150da1baae5af65f85864ff8df403a1aea (patch)
tree7130df0c426f27e8b7394b258fd145f3ca832a82 /src/journal/journald.c
parenta0edc477bd80208596badb9bc147a0d0eb06fbf6 (diff)
journal: introduce patch_min_use() helper
Updating min_use is rather an unusual operation that is limited when we first open the journal files, therefore extracts it from determine_space_for() and create a function of its own and call this new function when needed. determine_space_for() is now dealing with storage space (cached) values only. There should be no functional changes.
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r--src/journal/journald.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c
index 13061f6469..7f47ca22dd 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -51,7 +51,7 @@ int main(int argc, char *argv[]) {
if (r < 0)
goto finish;
- server_vacuum(&server, false, false);
+ server_vacuum(&server, false);
server_flush_to_var(&server);
server_flush_dev_kmsg(&server);
@@ -82,7 +82,7 @@ int main(int argc, char *argv[]) {
if (server.oldest_file_usec + server.max_retention_usec < n) {
log_info("Retention time reached.");
server_rotate(&server);
- server_vacuum(&server, false, false);
+ server_vacuum(&server, false);
continue;
}