]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald: rename vacuum_offline_user_journals()
authorFranck Bui <fbui@suse.com>
Tue, 15 Mar 2022 14:00:34 +0000 (15:00 +0100)
committerFranck Bui <fbui@suse.com>
Mon, 16 Jan 2023 14:04:29 +0000 (15:04 +0100)
The name was misleading because the function actually archives offline
journals, ie it doesn't try to remove them to make some room.

No functional change.

src/journal/journald-server.c

index c1fc5a8da9206a4fe9e72c1fa2e5cbdc0170fd46..92205cca0e959458cf67349feed3cc03fd6268bd 100644 (file)
@@ -543,7 +543,7 @@ static void server_vacuum_deferred_closes(Server *s) {
         }
 }
 
-static int vacuum_offline_user_journals(Server *s) {
+static int server_archive_offline_user_journals(Server *s) {
         _cleanup_closedir_ DIR *d = NULL;
         int r;
 
@@ -680,7 +680,7 @@ void server_rotate(Server *s) {
         /* Finally, also rotate all user journals we currently do not have open. (But do so only if we
          * actually have access to /var, i.e. are not in the log-to-runtime-journal mode). */
         if (!s->runtime_journal)
-                (void) vacuum_offline_user_journals(s);
+                (void) server_archive_offline_user_journals(s);
 
         server_process_deferred_closes(s);
 }