Add lasterrno setting for dir_existsfile() - Mailing list pgsql-hackers

From Wei Sun
Subject Add lasterrno setting for dir_existsfile()
Date
Msg-id tencent_1276C08F98579CC19D8A4488C848A8411806@qq.com
Whole thread Raw
Responses Re: Add lasterrno setting for dir_existsfile()
List pgsql-hackers
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
Attachment

pgsql-hackers by date:

Previous
From: Zhihong Yu
Date:
Subject: Re: null iv parameter passed to combo_init()
Next
From: Noah Misch
Date:
Subject: Re: null iv parameter passed to combo_init()