summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2018-09-12 09:15:55 +0000
committerPavan Deolasee2018-09-12 09:26:31 +0000
commit1ee34778f0a1f8d536acfca45f5142b365540146 (patch)
treee9a0a520270f597577e83d0fdc5538d9ba5899f5
parentca1d3ba89a76e59c06a4edc7fd81a71ac40de1ed (diff)
Initialise a variable correctly.
This was leading to unexpected/unexplained crashes in the cluster monitor process. Per reprot by Hengbing
-rw-r--r--src/backend/postmaster/clustermon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/clustermon.c b/src/backend/postmaster/clustermon.c
index 4c73e853af..e07ec949b9 100644
--- a/src/backend/postmaster/clustermon.c
+++ b/src/backend/postmaster/clustermon.c
@@ -196,7 +196,7 @@ ClusterMonitorInit(void)
while (!got_SIGTERM)
{
struct timeval nap;
- int rc;
+ int rc = 0;
/*
* While booting up, aggressively try to report Xmin and fetch global