pgsql: Mark FastPathStrongRelationLocks volatile.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Mark FastPathStrongRelationLocks volatile.
Date: 2014-03-31 18:42:08
Message-ID: E1WUh9s-0008Ie-Vf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e980ec7c80713e645e08b74e126badb1ca5cecfa

Modified Files
--------------
src/backend/storage/lmgr/lock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-04-01 06:30:56 pgsql: Fix typo in comment.
Previous Message Robert Haas 2014-03-31 18:19:38 pgsql: test_decoding: Update .gitignore