From cf3fff6326299deca77c1387df31d24aea36e2e1 Mon Sep 17 00:00:00 2001
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Fri, 27 Jan 2012 18:24:58 +0200
Subject: [PATCH] Initialize the new bgwriterLatch field properly.

Peter Geoghegan
---
 src/backend/storage/lmgr/proc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c
index dcf1928fb9f..4c2b6d48024 100644
--- a/src/backend/storage/lmgr/proc.c
+++ b/src/backend/storage/lmgr/proc.c
@@ -186,6 +186,7 @@ InitProcGlobal(void)
 	ProcGlobal->startupProc = NULL;
 	ProcGlobal->startupProcPid = 0;
 	ProcGlobal->startupBufferPinWaitBufId = -1;
+	ProcGlobal->bgwriterLatch = NULL;
 
 	/*
 	 * Create and initialize all the PGPROC structures we'll need (except for
-- 
GitLab