diff options
author | Robert Haas <rhaas@postgresql.org> | 2020-06-17 10:57:34 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2020-06-17 10:57:34 -0400 |
commit | 1fa092913d260056b1aaf627ebc9cd9655c3a27c (patch) | |
tree | c50a870b2bf4480c591143e9df77de87426f2eda /src/backend/access/transam/xlogfuncs.c | |
parent | a513f1dfbf2c29a51b0f7cbd5913ce2d2ee452c5 (diff) | |
download | postgresql-1fa092913d260056b1aaf627ebc9cd9655c3a27c.tar.gz postgresql-1fa092913d260056b1aaf627ebc9cd9655c3a27c.zip |
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
Diffstat (limited to 'src/backend/access/transam/xlogfuncs.c')
-rw-r--r-- | src/backend/access/transam/xlogfuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlogfuncs.c b/src/backend/access/transam/xlogfuncs.c index 00e1b33ed5f..290658b22c1 100644 --- a/src/backend/access/transam/xlogfuncs.c +++ b/src/backend/access/transam/xlogfuncs.c @@ -76,7 +76,7 @@ pg_start_backup(PG_FUNCTION_ARGS) if (exclusive) { startpoint = do_pg_start_backup(backupidstr, fast, NULL, NULL, - NULL, NULL, false, true); + NULL, NULL, true); } else { @@ -94,7 +94,7 @@ pg_start_backup(PG_FUNCTION_ARGS) register_persistent_abort_backup_handler(); startpoint = do_pg_start_backup(backupidstr, fast, NULL, label_file, - NULL, tblspc_map_file, false, true); + NULL, tblspc_map_file, true); } PG_RETURN_LSN(startpoint); |