pgsql: Move memory barrier in UnlockBufHdr to before releasing the lock - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Move memory barrier in UnlockBufHdr to before releasing the lock
Date
Msg-id E1b7Vqa-0002q4-Lg@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Move memory barrier in UnlockBufHdr to before releasing the lock.

This bug appears to have been introduced late in the development of
48354581a4 ("Allow Pin/UnpinBuffer to operate in a lockfree
manner.").

Found while debugging a bug which turned out to be independent of the
commit mentioned above.

Backpatch: -

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/87a3023c60f4bab551441492652ef19371847fd3

Modified Files
--------------
src/include/storage/buf_internals.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Fix PageAddItem BRIN bug
Next
From: Noah Misch
Date:
Subject: pgsql: Mirror struct Aggref field order in _copyAggref().