pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't export basebackup.c's sendTablespace().
Date: Wed, 17 Jun 2020 15:04:31 +0000
Message-ID: <E1jlZc7-0003V3-LG@gemulon.postgresql.org> (raw)

Don't export basebackup.c's sendTablespace().

Commit 72d422a5227ef6f76f412486a395aba9f53bf3f0 made xlog.c call
sendTablespace() with the 'sizeonly' argument set to true, which
required basebackup.c to export sendTablespace(). However, that's
kind of ugly, so instead defer the call to sendTablespace() until
basebackup.c regains control. That way, it can still be a static
function.

Patch by me, reviewed by Amit Kapila and Kyotaro Horiguchi.

Discussion: http://postgr.es/m/CA+TgmoYq+59SJ2zBbP891ngWPA9fymOqntqYcweSDYXS2a620A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1fa092913d260056b1aaf627ebc9cd9655c3a27c

Modified Files
--------------
src/backend/access/transam/xlog.c      | 14 ++------------
src/backend/access/transam/xlogfuncs.c |  4 ++--
src/backend/replication/basebackup.c   | 21 ++++++++++++++-------
src/include/access/xlog.h              |  2 +-
src/include/replication/basebackup.h   |  6 ------
5 files changed, 19 insertions(+), 28 deletions(-)



Message-ID: <E1jlZc7-0003V3-LG@gemulon.postgresql.org>
Permalink:  ../E1jlZc7-0003V3-LG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jlZc7-0003V3-LG@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: rhaas@postgresql.org
  Subject: Re: pgsql: Don't export basebackup.c's sendTablespace().
  In-Reply-To: <E1jlZc7-0003V3-LG@gemulon.postgresql.org>
  References: <E1jlZc7-0003V3-LG@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