Add lasterrno setting for dir_existsfile()

Поиск
Список
Период
Сортировка
От Wei Sun
Тема Add lasterrno setting for dir_existsfile()
Дата
Msg-id tencent_1276C08F98579CC19D8A4488C848A8411806@qq.com
обсуждение исходный текст
Ответы Re: Add lasterrno setting for dir_existsfile()  (Bruce Momjian <bruce@momjian.us>)
Список 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
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Zhihong Yu
Дата:
Сообщение: Re: null iv parameter passed to combo_init()
Следующее
От: Noah Misch
Дата:
Сообщение: Re: null iv parameter passed to combo_init()