sd-journal: add comments that journal_file_move_to() may break previous read data
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Oct 2022 07:19:27 +0000 (16:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Oct 2022 10:32:59 +0000 (19:32 +0900)
commitdf04b9ed86a8b45c25cfff0fd800adb66407309a
tree992fe4cfc064f2df62c264b0b03405d18d1a7f45
parenta1640191b4ca583ca62a4bd3b91edec3532bd41f
sd-journal: add comments that journal_file_move_to() may break previous read data

We have already made similar mistakes several times, e.g.
b8478c14c7367c3ec5d47d2680a3390b0dedecb1, and
b596d06c385e104fc330288b791a56661f0c2d17. Let's document the function
invalidates previously read objects.
src/libsystemd/sd-journal/journal-file.c