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)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
commit837c219e2dfcf92703ead411aac86aeadc6083ab
tree6b52ccc36c4cd346557a913be58a786bebc952d1
parent0195db6e919e80bdd6b4b706ebc24d5e935f5422
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.

(cherry picked from commit b63c18db03d0c120ba9eaa2aa9d0d43d80eea02b)
src/journal/journald.c