mirror of
https://github.com/postgres/postgres.git
synced 2026-04-14 05:27:20 -04:00
wups, took out one memset too many ...
This commit is contained in:
parent
3196738793
commit
3abd1390ba
1 changed files with 4 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* Copyright (c) 2001, PostgreSQL Global Development Group
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.31.2.1 2003/07/22 19:00:36 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.31.2.2 2003/07/22 19:13:25 tgl Exp $
|
||||
* ----------
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
|
@ -734,7 +734,7 @@ pgstat_ping(void)
|
|||
void
|
||||
pgstat_initstats(PgStat_Info *stats, Relation rel)
|
||||
{
|
||||
PgStat_TableEntry *useent = NULL;
|
||||
PgStat_TableEntry *useent;
|
||||
Oid rel_id = rel->rd_id;
|
||||
int mb;
|
||||
int i;
|
||||
|
|
@ -806,6 +806,7 @@ pgstat_initstats(PgStat_Info *stats, Relation rel)
|
|||
*/
|
||||
i = pgStatTabstatMessages[mb]->m_nentries++;
|
||||
useent = &pgStatTabstatMessages[mb]->m_entry[i];
|
||||
MemSet(useent, 0, sizeof(PgStat_TableEntry));
|
||||
useent->t_id = rel_id;
|
||||
stats->tabentry = (void *) useent;
|
||||
return;
|
||||
|
|
@ -849,6 +850,7 @@ pgstat_initstats(PgStat_Info *stats, Relation rel)
|
|||
mb = pgStatTabstatUsed++;
|
||||
pgStatTabstatMessages[mb]->m_nentries = 1;
|
||||
useent = &pgStatTabstatMessages[mb]->m_entry[0];
|
||||
MemSet(useent, 0, sizeof(PgStat_TableEntry));
|
||||
useent->t_id = rel_id;
|
||||
stats->tabentry = (void *) useent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue