journal: do not rotate journal when MaxRetentionSec= is set
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Aug 2024 05:56:11 +0000 (14:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Aug 2024 06:33:32 +0000 (15:33 +0900)
commitb63c18db03d0c120ba9eaa2aa9d0d43d80eea02b
tree37973b7195eff493d5c7e8f4577058a20253211d
parent2d00f4c306b4a5c3edef44e17c9efcf10cfb5d9b
journal: do not rotate journal when MaxRetentionSec= is set

The setting is about vacuuming archived journal files. It is not
necessary to rotate the current journal. Note, journal file rotation is
controlled by MaxFileSec=.

Fixes #31315.
src/journal/journald.c