From: | Manfred Koizar <mkoi-pg(at)aon(dot)at> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Minor lmgr code cleanup |
Date: | 2003-09-07 16:47:55 |
Message-ID: | bpnmlvgjj4njm0v374qlrlbv5nv8qqjm7d@4ax.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
On Sun, 07 Sep 2003 10:19:07 -0400, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
wrote:
>> +#define BITS_OFF(i) ~(1 << (i))
>
>I'd put another pair of parens around that. Also, it might be worth
>moving into a header file. There is at least one place in proc.c that
>manipulates lock masks using explicit shifts, because BITS_ON/BITS_OFF
>weren't visible outside lock.c.
Done. Small patch attached, should be applied after the large patch.
Big fat all-in-one patch available on request.
>BTW, did you check that the code still compiles with LOCK_DEBUG enabled?
No, I didn't and it didn't. :-( Corrected.
>How about contrib/userlock?
Unaffected by my changes, still works AFAICT.
Servus
Manfred
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 5.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Mendola Gaetano | 2003-09-07 16:54:23 | mcxt.c |
Previous Message | Bruce Momjian | 2003-09-07 16:37:42 | Re: [PATCHES] MinGW patch |