]> granicus.if.org Git - postgresql/commit
Tolerate EINVAL when calling fsync() on a directory.
authorThomas Munro <tmunro@postgresql.org>
Sun, 24 Feb 2019 10:59:26 +0000 (23:59 +1300)
committerThomas Munro <tmunro@postgresql.org>
Sun, 24 Feb 2019 11:02:15 +0000 (00:02 +1300)
commit0ec89a0f6752d55efee4377928087b1865d7ac5e
tree1bc9cd3a3d8d147678a072bf14b139e620dddb21
parent0fe3f6dd45c95f82bf6dcd98b4f9e029ce433ce0
Tolerate EINVAL when calling fsync() on a directory.

Previously, we tolerated EBADF as a way for the operating system to
indicate that it doesn't support fsync() on a directory.  Tolerate
EINVAL too, for older versions of Linux CIFS.

Bug #15636.  Back-patch all the way.

Reported-by: John Klann
Discussion: https://postgr.es/m/15636-d380890dafd78fc6@postgresql.org
src/backend/storage/file/fd.c
src/bin/initdb/initdb.c