]> granicus.if.org Git - postgresql/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)
commitbf2f20c086a04e7705a4e856d6cc9ebda3eb0017
tree0ddc725aded911d98e2d63f1c5b017238eebc2f1
parente4a04e5a4e1516acee2411a5a594d70f07fd5341
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