Re: Manual bitswizzling -> LOCKBIT_ON - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Manual bitswizzling -> LOCKBIT_ON
Date
Msg-id CA+TgmoY3TrkcqZ=kDVefD2wrY0=7nxLPBhB8g1_qX_GGRu8oag@mail.gmail.com
Whole thread Raw
In response to Manual bitswizzling -> LOCKBIT_ON  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-hackers
On Thu, Sep 24, 2015 at 10:24 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> While studying lmgr code, I noticed that there are a couple of places
> that use 1 << x to convert a LOCKMODE to a LOCKMASK instead of the
> macro that is used elsewhere.  Should that be changed for consistency,
> as in the attached?

Sure, why not?

Committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: PGXS "check" target forcing an install ?
Next
From: Robert Haas
Date:
Subject: Re: [PROPOSAL] VACUUM Progress Checker.