]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald: don't check for -EREMCHG on open, given that open doesn't generate it
authorLennart Poettering <lennart@poettering.net>
Thu, 26 Jan 2023 16:32:52 +0000 (17:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 Jan 2023 08:41:36 +0000 (09:41 +0100)
We generate EREMCHG when writing entries, but not during open, hence
don't bother with checking for it.

src/journal/managed-journal-file.c

index 6e313f2a05466363ea262ca14cea9e8de72288a7..810167772ad924ec629788947bc0d620613b0d6b 100644 (file)
@@ -524,8 +524,7 @@ int managed_journal_file_open_reliably(
                     -ESHUTDOWN,         /* Already archived */
                     -EIO,               /* IO error, including SIGBUS on mmap */
                     -EIDRM,             /* File has been deleted */
-                    -ETXTBSY,           /* File is from the future */
-                    -EREMCHG))          /* Clock rolled back */
+                    -ETXTBSY))          /* File is from the future */
                 return r;
 
         if ((open_flags & O_ACCMODE) == O_RDONLY)