Re: [HACKERS] LW_SHARED_MASK macro

2015-09-22 Thread Andres Freund
On 2015-09-21 21:36:15 +0200, Andres Freund wrote: > On 2015-09-21 22:34:46 +0300, Alexander Korotkov wrote: > > Great. BTW, are you going to commit this? > > Yes, will do so tomorrow. And done. Thanks for noticing. Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)

Re: [HACKERS] LW_SHARED_MASK macro

2015-09-21 Thread Andres Freund
On 2015-09-21 22:34:46 +0300, Alexander Korotkov wrote: > Great. BTW, are you going to commit this? Yes, will do so tomorrow. Thanks, Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hac

Re: [HACKERS] LW_SHARED_MASK macro

2015-09-21 Thread Alexander Korotkov
On Thu, Sep 17, 2015 at 5:38 PM, Andres Freund wrote: > On 2015-09-17 14:35:20 +0300, Alexander Korotkov wrote: > > while exploring lwlock.c I found following macro to be strange. > > > > #define LW_SHARED_MASK ((uint32)(1 << 23)) > > > > This is macro is used to extract number of shared locks fr

Re: [HACKERS] LW_SHARED_MASK macro

2015-09-17 Thread Andres Freund
Hi, On 2015-09-17 14:35:20 +0300, Alexander Korotkov wrote: > while exploring lwlock.c I found following macro to be strange. > > #define LW_SHARED_MASK ((uint32)(1 << 23)) > > This is macro is used to extract number of shared locks from state. > > ereport(LOG, > (errhidestmt(true), > errhidec