]> granicus.if.org Git - postgresql/commit
Fix incorrect initialization of ProcGlobal->startupBufferPinWaitBufId.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Aug 2011 17:24:00 +0000 (13:24 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Aug 2011 17:24:00 +0000 (13:24 -0400)
commit0dd6a09e3d127e728b9f43cfaf19e5351f60a096
tree73e01e7b41b2eacf6a9d0537c703429f615501d5
parentbc6616aaedbe4bcd2441334a3bf8f43fe9635bf1
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.
src/backend/storage/buffer/bufmgr.c
src/backend/storage/lmgr/proc.c
src/include/storage/proc.h