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: Simplify some logic in CreateReplicationSlot()
Date: Tue, 21 Nov 2023 04:55:14 +0000
Message-ID: <E1r5In4-006T4x-Gv@gemulon.postgresql.org> (raw)

Simplify some logic in CreateReplicationSlot()

This refactoring reduces the code in charge of creating replication
slots from two "if" block to a single one, making it slightly cleaner.

This change is possible since 1d04a59be31b, that has removed the
intermediate code that existed between the two "if" blocks in charge of
initializing the output message buffer.

Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+PtnJzqKT41Zt8pChRzba=QgCqjtfYvcf84NMj3VFJoKfw@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/replication/walsender.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)



Message-ID: <E1r5In4-006T4x-Gv@gemulon.postgresql.org>
Permalink:  ../E1r5In4-006T4x-Gv@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1r5In4-006T4x-Gv@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: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Simplify some logic in CreateReplicationSlot()
  In-Reply-To: <E1r5In4-006T4x-Gv@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