pgsql: Fix crash bug in RestoreSnapshot.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Fix crash bug in RestoreSnapshot.
Дата
Msg-id E1bIy7S-0000H4-Aw@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix crash bug in RestoreSnapshot.

If serialized_snapshot->subxcnt > 0 and serialized_snapshot->xcnt == 0,
the old coding would do the wrong thing and crash.  This can happen
on standby servers.

Report by Andreas Seltenreich.  Patch by Thomas Munro, reviewed by
Amit Kapila and tested by Andreas Seltenreich.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4f9f495889d3d410195c9891b58228727b340189

Modified Files
--------------
src/backend/utils/time/snapmgr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix crash bug in RestoreSnapshot.