Re: [PATCH]A minor improvement to the error-report in SimpleLruWriteAll()

Поиск
Список
Период
Сортировка
От Kyotaro Horiguchi
Тема Re: [PATCH]A minor improvement to the error-report in SimpleLruWriteAll()
Дата
Msg-id 20240604.164409.1964339778483522274.horikyota.ntt@gmail.com
обсуждение исходный текст
Ответ на Re:[PATCH]A minor improvement to the error-report in SimpleLruWriteAll()  ("Long Song" <songlong88@126.com>)
Ответы Re:Re: [PATCH]A minor improvement to the error-report in SimpleLruWriteAll()
Re:Re: [PATCH]A minor improvement to the error-report in SimpleLruWriteAll()
Список pgsql-hackers
At Tue, 28 May 2024 20:15:59 +0800 (CST), "Long Song" <songlong88@126.com> wrote in 
> 
> Hi,
> Actually, I still wonder why only the error message
> of the last failure to close the file was recorded.
> For this unusual situation, it is acceptable to
> record all failure information without causing
> too much logging.
> Was it designed that way on purpose?

Note that SlruReportIOError() causes a non-local exit. To me, the
point of the loop seems to be that we want to close every single file,
apart from the failed ones. From that perspective, the patch disrupts
that intended behavior by exiting in the middle of the loop. It seems
we didn't want to bother collecting errors for every failed file in
that part.
 
regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Build with LTO / -flto on macOS
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: Minor fixes for couple some comments around MERGE RETURNING