pgsql: Fix race condition in multixact code: it's possible to try to

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql: Fix race condition in multixact code: it's possible to try to
Дата
Msg-id 20051028172730.10940DB186@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix race condition in multixact code: it's possible to try to read a
multixact's starting offset before the offset has been stored into the
SLRU file.  A simple fix would be to hold the MultiXactGenLock until the
offset has been stored, but that looks like a big concurrency hit.  Instead
rely on knowledge that unset offsets will be zero, and loop when we see
a zero.  This requires a little extra hacking to ensure that zero is never
a valid value for the offset.  Problem reported by Matteo Beccati, fix
ideas from Martijn van Oosterhout, Alvaro Herrera, and Tom Lane.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        multixact.c (r1.9 -> r1.10)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/multixact.c.diff?r1=1.9&r2=1.10)

В списке pgsql-committers по дате отправления:

Предыдущее
От: teodor@svr1.postgresql.org (Teodor Sigaev)
Дата:
Сообщение: pgsql: 1 Fix problem with lost precision in rank with OR-ed lexemes 2
Следующее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Clean up AIX build to avoid 'duplicate symbol' warnings, by