Don't export basebackup.c's sendTablespace().
authorRobert Haas <rhaas@postgresql.org>
Wed, 17 Jun 2020 14:57:34 +0000 (10:57 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 17 Jun 2020 14:57:34 +0000 (10:57 -0400)
commit1fa092913d260056b1aaf627ebc9cd9655c3a27c
treec50a870b2bf4480c591143e9df77de87426f2eda
parenta513f1dfbf2c29a51b0f7cbd5913ce2d2ee452c5
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
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogfuncs.c
src/backend/replication/basebackup.c
src/include/access/xlog.h
src/include/replication/basebackup.h