]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journald-server.h
journald: automatically rotate journal files when the clock jumps backwards
authorLennart Poettering <lennart@poettering.net>
Wed, 12 Oct 2016 16:49:51 +0000 (18:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Oct 2016 18:25:20 +0000 (20:25 +0200)
commit7c07001711ee1f0aa7a3db7b63b354a4800cadcc
treec36d6aea286ba2b155f78a10635e0e62ffb62fa2
parent0f972d66d439789afacbbcfba9a786965dd9e4b3
journald: automatically rotate journal files when the clock jumps backwards

As soon as we notice that the clock jumps backwards, rotate journal files. This
is beneficial, as this makes sure that the entries in journal files remain
strictly ordered internally, and thus the bisection algorithm applied on it is
not confused.

This should help avoiding borked wallclock-based bisection on journal files as
witnessed in #4278.
src/journal/journald-server.c
src/journal/journald-server.h