Re: [HACKERS] s_lock.h busted

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] s_lock.h busted
Дата
Msg-id 21939.900963703@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] s_lock.h busted  (dg@illustra.com (David Gould))
Список pgsql-hackers
dg@illustra.com (David Gould) writes:
> Arrrrgggghhh!!!!
> These were meant to be in the conditional blocks at the end of the file so
> that if (and only if) no definition existed we would get a default. So:
> #ifndef S_UNLOCK
> #define S_UNLOCK(lock)  (*(lock) = 0)
> #endif
> #ifndef S_INIT_LOCK
> #define S_INIT_LOCK(lock)       S_UNLOCK(lock)
> #endif

Right, but those default definitions were *already there*.

The lines I was complaining about were added immediately after the
default definitions, and overrode *any* prior definition of the macros.
As far as I can see they were just a typo/thinko.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Finding primary keys in a table
Следующее
От: David Hartwig
Дата:
Сообщение: Re: [HACKERS] Current sources?