]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald: do not close all files stored in Server.deferred_closes
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 30 Sep 2023 06:05:23 +0000 (15:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 Oct 2023 01:52:45 +0000 (10:52 +0900)
Just before the call of managed_journal_file_open(), we already called
server_vacuum_deferred_closes(), so there is a room to store the file.

src/journal/journald-server.c

index b6f494b4ce372a5af991a9d7c6e6eacd6fa4ee46..8b60369b4960249634366f0357b0e6ecf1685cf9 100644 (file)
@@ -655,7 +655,7 @@ static int server_archive_offline_user_journals(Server *s) {
                                 s->compress.threshold_bytes,
                                 &s->system_storage.metrics,
                                 s->mmap,
-                                s->deferred_closes,
+                                /* deferred_closes= */ NULL,
                                 /* template= */ NULL,
                                 &f);
                 if (r < 0) {