mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
journal: clear cached journal storage space before vacuum journals
Otherwise, the cached storage space may be calculated based on the old journald.conf settings. Follow-up for922d037f34anddf5b3426f6.
This commit is contained in:
@@ -2290,6 +2290,8 @@ void manager_reopen_journals(Manager *m, const JournalConfig *old) {
|
||||
(void) manager_system_journal_open(m, /* flush_requested = */ false, /* relinquish_requested = */ false);
|
||||
|
||||
/* To make the storage related settings applied, vacuum the storage. */
|
||||
cache_space_invalidate(&m->system_storage.space);
|
||||
cache_space_invalidate(&m->runtime_storage.space);
|
||||
manager_vacuum(m, /* verbose = */ false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user