]> granicus.if.org Git - postgresql/commit
Mark FastPathStrongRelationLocks volatile.
authorRobert Haas <rhaas@postgresql.org>
Mon, 31 Mar 2014 18:32:12 +0000 (14:32 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 31 Mar 2014 18:38:01 +0000 (14:38 -0400)
commite452019d8e29eb52dd755ba307b96a42f89da550
tree0eebaef71189fce0b46ddccb8b897c9b3521bc3c
parentac2063ade566deb03e72e3da52cf472e125708b7
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.
src/backend/storage/lmgr/lock.c