Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3cf68d

Browse files
committed
Fix latent bug in checking for failure of hashtable creation.
1 parent1a88682 commitc3cf68d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
*Copyright (c) 2001, PostgreSQL Global Development Group
1818
*
19-
*$Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.15 2001/11/26 22:31:08 tgl Exp $
19+
*$Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.16 2001/12/03 19:02:58 tgl Exp $
2020
* ----------
2121
*/
2222
#include"postgres.h"
@@ -2091,7 +2091,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb,
20912091
hash_ctl.hcxt=use_mcxt;
20922092
*dbhash=hash_create("Databases hash",PGSTAT_DB_HASH_SIZE,&hash_ctl,
20932093
HASH_ELEM |HASH_FUNCTION |mcxt_flags);
2094-
if (pgStatDBHash==NULL)
2094+
if (*dbhash==NULL)
20952095
{
20962096
if (pgStatRunningInCollector)
20972097
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp