Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
Дата
Msg-id 9194.1460908908@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.  (Andres Freund <andres@anarazel.de>)
Ответы Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.  (Andres Freund <andres@anarazel.de>)
Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-committers
Andres Freund <andres@anarazel.de> writes:
> Allow Pin/UnpinBuffer to operate in a lockfree manner.

Now that I've had some occasion to look around in bufmgr.c, I am very
unhappy that there are still boatloads of comments talking about a buffer
header's spinlock, when there is in fact no spinlock anymore.  Please
expend some effort on making this less confusing for the next hacker.
Maybe make those comments talk about a "lock bit" instead?

            regards, tom lane


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

Предыдущее
От: David Steele
Дата:
Сообщение: Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <