pgsql: Move memory barrier in UnlockBufHdr to before releasing the lock

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Move memory barrier in UnlockBufHdr to before releasing the lock
Дата
Msg-id E1b7Vqa-0002q4-Lg@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix PageAddItem BRIN bug
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Mirror struct Aggref field order in _copyAggref().