diff options
author | Tom Lane | 2001-12-03 19:02:58 +0000 |
---|---|---|
committer | Tom Lane | 2001-12-03 19:02:58 +0000 |
commit | c3cf68de6bfa923ee79a844b66aeadb015340240 (patch) | |
tree | eb72156d60eb5c60265e890dccf0cb2b9e4f2266 | |
parent | 1a88682d459d696b9d1d1cec052da1dfd5c31e49 (diff) |
Fix latent bug in checking for failure of hashtable creation.
-rw-r--r-- | src/backend/postmaster/pgstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index c01d04753a1..fc2619ee0c7 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -16,7 +16,7 @@ * * Copyright (c) 2001, PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.15 2001/11/26 22:31:08 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.16 2001/12/03 19:02:58 tgl Exp $ * ---------- */ #include "postgres.h" @@ -2091,7 +2091,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb, hash_ctl.hcxt = use_mcxt; *dbhash = hash_create("Databases hash", PGSTAT_DB_HASH_SIZE, &hash_ctl, HASH_ELEM | HASH_FUNCTION | mcxt_flags); - if (pgStatDBHash == NULL) + if (*dbhash == NULL) { if (pgStatRunningInCollector) { |