pgsql: Fix uninitialized value in segno calculation

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix uninitialized value in segno calculation
Дата
Msg-id E1jv2bE-0003WL-DL@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix uninitialized value in segno calculation

Remove previous hack in KeepLogSeg that added a case to deal with a
(badly represented) invalid segment number.  This was added for the sake
of GetWALAvailability.  But it's not needed if in that function we
initialize the segment number to be retreated to the currently being
written segment, so do that instead.

Per valgrind-running buildfarm member skink, and some sparc64 animals.

Discussion: https://postgr.es/m/1724648.1594230917@sss.pgh.pa.us

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/794e8e32bb5ae1b38a90cbae2a88895633797599

Modified Files
--------------
src/backend/access/transam/xlog.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: pgsql: Improvements to psql \dAo and \dAp commands
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Improvements to psql \dAo and \dAp commands