errno clobbering in reorderbuffer

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема errno clobbering in reorderbuffer
Дата
Msg-id 20160818220602.GA981393@alvherre.pgsql
обсуждение исходный текст
Ответы Re: errno clobbering in reorderbuffer  (Andres Freund <andres@anarazel.de>)
Re: errno clobbering in reorderbuffer  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: errno clobbering in reorderbuffer  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
While researching a customer issue with BDR I noticed that one ereport()
call happens after clobbering errno, leading to the wrong strerror being
reported.  This patch fixes it by saving before calling
CloseTransientFile and restoring afterwards.

I also threw in a missing errcode I noticed while looking for similar
problems in the same file.

This is to backpatch to 9.4.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Claudio Freire
Дата:
Сообщение: Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_basebackup wish list