Skip to content

Commit 9b7eb6f

Browse files
committed
Remove useless pointer update in StatsShmemInit()
This pointer was not used after its last update. This variable assignment was most likely a vestige artifact of the earlier versions of the patch set that have led to 5891c7a. This pointer update is useless, so let's remove it. It removes one call to pgstat_dsa_init_size(), making the code slightly easier to grasp. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/aKLsu2sdpnyeuSSc@ip-10-97-1-34.eu-west-3.compute.internal
1 parent bf9ee29 commit 9b7eb6f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/utils/activity/pgstat_shmem.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ StatsShmemInit(void)
180180
* provides a small efficiency win.
181181
*/
182182
ctl->raw_dsa_area = p;
183-
p += MAXALIGN(pgstat_dsa_init_size());
184183
dsa = dsa_create_in_place(ctl->raw_dsa_area,
185184
pgstat_dsa_init_size(),
186185
LWTRANCHE_PGSTATS_DSA, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy