pgsql: Fix off-by-one bug in LWLockRegisterTranche().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix off-by-one bug in LWLockRegisterTranche().
Дата
Msg-id E1WdmHy-0004PC-Gc@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix off-by-one bug in LWLockRegisterTranche().

Original coding failed to enlarge the array as required if
the requested tranche_id was equal to LWLockTranchesAllocated.

In passing, fix poor style of not casting the result of (re)palloc.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4bfc5f1396b18da3a0db73e4406badc4ce793a1e

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c |   12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Clean up temp installations after client program tests.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Record the proper typmod for an index expression column.