Revert "Fix issues with Windows' stat() for files pending on deletion"
authorMichael Paquier <michael@paquier.xyz>
Mon, 12 Jul 2021 05:46:08 +0000 (14:46 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 12 Jul 2021 05:46:08 +0000 (14:46 +0900)
commit2c9b46c090e76c62f24563b9be2c34e6b92e9329
tree3381e6ab834dc7cb4eba384fff52d3aa061aba95
parent54fb8c7ddf152629021cab3ac3596354217b7d81
Revert "Fix issues with Windows' stat() for files pending on deletion"

This reverts commit 54fb8c7, as per the issues reported by fairywren
when it comes to MinGW because of the lack of microsoft_native_stat()
there.  Using just stat() for MSVC is not sufficient to take care of the
concurrency problems with files pending on deletion.  It may be possible
to paint some __MINGW64__ in the code to switch to a different
implementation of stat() in this build context, but I am not sure either
if relying on the implementation of stat() in MinGW to take care of the
problems we are trying to fix is enough or not.  So this needs more
study.

Discussion: https://postgr.es/m/YOvOlfRrIO0yGtgw@paquier.xyz
Backpatch-through: 14
src/port/open.c
src/port/win32stat.c