pgsql: Be sure to release proc->backendLock after SetupLockInTable() fa

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Be sure to release proc->backendLock after SetupLockInTable() fa
Дата
Msg-id E1VmWeo-0005sO-Qo@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Be sure to release proc->backendLock after SetupLockInTable() failure.

The various places that transferred fast-path locks to the main lock table
neglected to release the PGPROC's backendLock if SetupLockInTable failed
due to being out of shared memory.  In most cases this is no big deal since
ensuing error cleanup would release all held LWLocks anyway.  But there are
some hot-standby functions that don't consider failure of
FastPathTransferRelationLocks to be a hard error, and in those cases this
oversight could lead to system lockup.  For consistency, make all of these
places look the same as FastPathTransferRelationLocks.

Noted while looking for the cause of Dan Wood's bugs --- this wasn't it,
but it's a bug anyway.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/360abc0a5be64b01050a9d7144158890236487b5

Modified Files
--------------
src/backend/storage/lmgr/lock.c |    3 +++
1 file changed, 3 insertions(+)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix assorted race conditions in the new timeout infrastructure.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Be sure to release proc->backendLock after SetupLockInTable() fa