make LWLockCounter a global variable

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема make LWLockCounter a global variable
Дата
Msg-id aLDLnan9gNCS9fHx@nathan
обсуждение исходный текст
Ответы Re: make LWLockCounter a global variable
Список pgsql-hackers
In lwlock.c, uses of LWLockCounter must first calculate its address in
shared memory with something like this:

    LWLockCounter = (int *) ((char *) MainLWLockArray - sizeof(int));

This appears to have been started by commit 82e861f in order to fix
EXEC_BACKEND builds, but it could also be fixed by adding it to the
BackendParameters struct.  I find the current approach somewhat difficult
to read and understand, so I'd like to switch to the latter approach.  This
is admittedly just nitpicking...

-- 
nathan

Вложения

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