Fix the initialization of atomic variables introduced by the

Amit Kapila <akapila@postgresql.org>

Commit: d4d9f21b64d4290cc6695bcd93a8e4c5fc16badf
Author: Amit Kapila <akapila@postgresql.org>
Date: 2018-11-13T05:39:44Z
Releases: 11.2
Fix the initialization of atomic variables introduced by the
group clearing mechanism.

Commits 0e141c0fbb and baaf272ac9 introduced initialization of atomic
variables in InitProcess which means that it's not safe to look at those
for backends that aren't currently in use.  Fix that by initializing them
during postmaster startup.

Reported-by: Andres Freund
Author: Amit Kapila
Backpatch-through: 9.6
Discussion: https://postgr.es/m/20181027104138.qmbbelopvy7cw2qv@alap3.anarazel.de

Files

PathChange+/−
src/backend/storage/lmgr/proc.c modified +9 −2

Discussion