pgsql: Properly initialize write, flush and replay locations in walsend

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Properly initialize write, flush and replay locations in walsend
Дата
Msg-id E1a8967-0003MD-DO@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Properly initialize write, flush and replay locations in walsender slots

These would leak random xlog positions if a walsender used for backup would
a walsender slot previously used by a replication walsender.

In passing also fix a couple of cases where the xlog pointer is directly
compared to zero instead of using XLogRecPtrIsInvalid, noted by
Michael Paquier.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/61c7bee2196d284a19692d83b33eac7588693292

Modified Files
--------------
src/backend/replication/walsender.c |    9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Properly initialize write, flush and replay locations in walsend
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix bug leading to restoring unlogged relations from empty files