Tolerate EINVAL when calling fsync() on a directory

Enterprise / PostgreSQL - Thomas Munro [postgresql.org] - 24 February 2019 10:50 EST

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.

f16735d80d Tolerate EINVAL when calling fsync() on a directory.
src/backend/storage/file/fd.c | 2 +-
src/common/file_utils.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Upstream: git.postgresql.org


  • Share