summaryrefslogtreecommitdiff
path: root/src/include/storage/proc.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-08-02 13:24:06 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-08-02 13:24:06 -0400
commit0f904c95a4000caa717868d9bfaf5a423eefdb0b (patch)
tree96de5a526adace0462393665b47d71a05d843b23 /src/include/storage/proc.h
parentf00fbad6bd43141faae05cd13a518fd28ae94673 (diff)
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.
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r--src/include/storage/proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index f77c4d3fc29..fe35db13dc3 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -145,7 +145,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;