]> granicus.if.org Git - postgresql/commit
Fix the initialization of atomic variables introduced by the
authorAmit Kapila <akapila@postgresql.org>
Tue, 13 Nov 2018 05:22:40 +0000 (10:52 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 13 Nov 2018 05:22:40 +0000 (10:52 +0530)
commita53bc135fb07d600869917661d65f45506165c00
tree16943c33b755bb803f7dd70474173e8ef64e4c70
parent257ef3cd4fec7ca1213f31b660486b492b1c7031
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
src/backend/storage/lmgr/proc.c