]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove special cases for ETXTBSY from new fsync'ing logic.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 May 2015 19:11:36 +0000 (15:11 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 May 2015 19:11:36 +0000 (15:11 -0400)
commit35dd1b51f2ea7a41621b7ab04be605ecfd7cfaf7
tree2dcd80c2152c97c1b397a18da707d6222fc8d508
parent52fc948444dde2d10f261e66766e6842231a9d46
Remove special cases for ETXTBSY from new fsync'ing logic.

The argument that this is a sufficiently-expected case to be silently
ignored seems pretty thin.  Andres had brought it up back when we were
still considering that most fsync failures should be hard errors, and it
probably would be legit not to fail hard for ETXTBSY --- but the same is
true for EROFS and other cases, which is why we gave up on hard failures.
ETXTBSY is surely not a normal case, so logging the failure seems fine
from here.
src/backend/storage/file/fd.c
src/bin/initdb/initdb.c