pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use macros instead of hardcoded offsets for LWLock initializatio
Date: Tue, 24 Nov 2020 03:48:18 +0000
Message-ID: <E1khPJS-0007or-BC@gemulon.postgresql.org> (raw)

Use macros instead of hardcoded offsets for LWLock initialization

This makes the code slightly easier to follow, as the initialization
relies on an offset that overlapped with an equivalent set of macros
defined, which are used in other places already.

Author: Japin Li
Discussion: https://postgr.es/m/MEYP282MB1669FB410006758402F2C3A2B6E00@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d03d7549b29236e300aceac0c22173cf19acc675

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)



Message-ID: <E1khPJS-0007or-BC@gemulon.postgresql.org>
Permalink:  ../E1khPJS-0007or-BC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1khPJS-0007or-BC@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Use macros instead of hardcoded offsets for LWLock initializatio
  In-Reply-To: <E1khPJS-0007or-BC@gemulon.postgresql.org>
  References: <E1khPJS-0007or-BC@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox