]> granicus.if.org Git - postgresql/commit
Fix incorrect initialization of ProcGlobal->startupBufferPinWaitBufId.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Aug 2011 17:23:52 +0000 (13:23 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Aug 2011 17:23:52 +0000 (13:23 -0400)
commit2e53bd5517431637e495c7614761e5aae46b4eba
tree6bcf76fe5760fe05b91e92ca6e6681b1cc39d93e
parent89df948ec26679e09f71baf6bbb9b06f9d329712
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