1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-29 16:21:20 +03:00

Remove initialization from PendingBackendStats

9a8dd2c5a6d has added an initialization to PendingBackendStats, which
has been causing compilation warnings in the buildfarm.  This code does
not strictly require it as PendingBackendStats is always initialized
with memset(0), so let's remove it.

Per report from multiple buildfarm members, like ayu and batfish, via
Tom Lane.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/1870853.1741749264@sss.pgh.pa.us
This commit is contained in:
Michael Paquier 2025-03-12 20:37:43 +09:00
parent 72a3d0462b
commit f554a95379

View File

@ -36,7 +36,7 @@
* reported within critical sections so we use static memory in order to avoid
* memory allocation.
*/
static PgStat_BackendPending PendingBackendStats = {0};
static PgStat_BackendPending PendingBackendStats;
/*
* WAL usage counters saved from pgWalUsage at the previous call to