pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify coding in slru.c
Date: Mon, 04 Mar 2024 16:38:29 +0000
Message-ID: <E1rhBKf-0023m0-5S@gemulon.postgresql.org> (raw)

Simplify coding in slru.c

New code in 53c2a97a9266 uses direct array access to
shared->bank_locks[bankno].lock which can be made a little bit more
legible by using the SimpleLruGetBankLock helper function.
Nothing terribly serious, but let's add some clarity.

Discussion: https://postgr.es/m/202403041517.3a35jw53os65@alvherre.pgsql

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/slru.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)



view thread (2+ messages)

Message-ID: <E1rhBKf-0023m0-5S@gemulon.postgresql.org>
Permalink:  ../E1rhBKf-0023m0-5S@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rhBKf-0023m0-5S@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Simplify coding in slru.c
  In-Reply-To: <E1rhBKf-0023m0-5S@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