From 0dd6a09e3d127e728b9f43cfaf19e5351f60a096 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 2 Aug 2011 13:24:00 -0400 Subject: 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/include/storage/proc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/storage/proc.h') diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index 4819cb81108..af9c1292fc8 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -159,7 +159,7 @@ typedef struct PROC_HDR /* The proc of the Startup process, since not in ProcArray */ PGPROC *startupProc; int startupProcPid; - /* Buffer id of the buffer that Startup process waits for pin on */ + /* Buffer id of the buffer that Startup process waits for pin on, or -1 */ int startupBufferPinWaitBufId; } PROC_HDR; -- cgit v1.2.3