pgsql: Fix incorrect initialization of ProcGlobal->startupBufferPinWait

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix incorrect initialization of ProcGlobal->startupBufferPinWait
Дата
Msg-id E1QoIhb-0007V0-Ti@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix incorrect initialization of ProcGlobal->startupBufferPinWaitBufId.

It was initialized in the wrong place and to the wrong value.  With bad
luck this could result in incorrect query-cancellation failures in hot
standby sessions, should a HS backend be holding pin on buffer number 1
while trying to acquire a lock.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0dd6a09e3d127e728b9f43cfaf19e5351f60a096

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c |    3 ++-
src/backend/storage/lmgr/proc.c     |   10 ++++------
src/include/storage/proc.h          |    2 +-
3 files changed, 7 insertions(+), 8 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Avoid integer overflow when LIMIT + OFFSET >= 2^63.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix incorrect initialization of ProcGlobal->startupBufferPinWait