Mark FastPathStrongRelationLocks volatile.

Robert Haas <rhaas@postgresql.org>

Commit: e452019d8e29eb52dd755ba307b96a42f89da550
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-03-31T18:38:01Z
Releases: 9.3.5
Mark FastPathStrongRelationLocks volatile.

Otherwise, the compiler might decide to move modifications to data
within this structure outside the enclosing SpinLockAcquire /
SpinLockRelease pair, leading to shared memory corruption.

This may or may not explain a recent lmgr-related buildfarm failure
on prairiedog, but it needs to be fixed either way.

Files

PathChange+/−
src/backend/storage/lmgr/lock.c modified +1 −1