Add lasterrno setting for dir_existsfile()
Wei Sun <936739278@qq.com>
From: Wei Sun <936739278@qq.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-01-09T16:19:28Z
Lists: pgsql-hackers
Attachments
- add_lasterrno_setting.patch (application/octet-stream) patch
Hi, Some time ago,the following patch clean up error handling in pg_basebackup's walmethods.c. https://github.com/postgres/postgres/commit/248c3a9 This patch keep the error state in the DirectoryMethodData struct, in most functions, the lasterrno is set correctly, but in function dir_existsfile(), the lasterrno is not set when the file fails to open. If this is a correction omission, I think this patch can fix this. Cheers