Add lasterrno setting for dir_existsfile()

From: Wei Sun <936739278(at)qq(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Add lasterrno setting for dir_existsfile()
Date: 2022-01-09 16:19:28
Message-ID: tencent_1276C08F98579CC19D8A4488C848A8411806@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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&nbsp;is set correctly, but in function dir_existsfile(),&nbsp;
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 Content-Type Size
add_lasterrno_setting.patch application/octet-stream 406 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2022-01-09 16:48:54 Re: null iv parameter passed to combo_init()
Previous Message Zhihong Yu 2022-01-09 12:37:32 Re: null iv parameter passed to combo_init()