Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))
Дата
Msg-id CAEepm=3adR-nw+N7eY1H6Xpf3w3VEqoFtbpho2ZK=JfKCfCCPA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))
Re: Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))
Список pgsql-hackers
Hi hackers,

Several times now when reading, debugging and writing code I've wished
that LWLockHeldByMe assertions specified the expected mode, especially
where exclusive locking is required.

What do you think about something like the attached?  See also an
example of use.  I will add this to the next commitfest.

--
Thomas Munro
http://www.enterprisedb.com

Вложения

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