mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Make sure to clean out old activity string when recycling a backend entry.
This commit is contained in:
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2001, PostgreSQL Global Development Group
|
* Copyright (c) 2001, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.10 2001/10/05 17:28:12 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.11 2001/10/16 22:35:27 tgl Exp $
|
||||||
* ----------
|
* ----------
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
@ -1754,6 +1754,7 @@ pgstat_add_backend(PgStat_MsgHdr *msg)
|
|||||||
beentry->databaseid = msg->m_databaseid;
|
beentry->databaseid = msg->m_databaseid;
|
||||||
beentry->procpid = msg->m_procpid;
|
beentry->procpid = msg->m_procpid;
|
||||||
beentry->userid = msg->m_userid;
|
beentry->userid = msg->m_userid;
|
||||||
|
MemSet(beentry->activity, 0, PGSTAT_ACTIVITY_SIZE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lookup or create the database entry for this backends DB.
|
* Lookup or create the database entry for this backends DB.
|
||||||
|
Reference in New Issue
Block a user