mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Don't export basebackup.c's sendTablespace().
Commit 72d422a522
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
This commit is contained in:
@@ -14,9 +14,6 @@
|
||||
|
||||
#include "nodes/replnodes.h"
|
||||
|
||||
struct backup_manifest_info; /* avoid including backup_manifest.h */
|
||||
|
||||
|
||||
/*
|
||||
* Minimum and maximum values of MAX_RATE option in BASE_BACKUP command.
|
||||
*/
|
||||
@@ -33,7 +30,4 @@ typedef struct
|
||||
|
||||
extern void SendBaseBackup(BaseBackupCmd *cmd);
|
||||
|
||||
extern int64 sendTablespace(char *path, char *oid, bool sizeonly,
|
||||
struct backup_manifest_info *manifest);
|
||||
|
||||
#endif /* _BASEBACKUP_H */
|
||||
|
Reference in New Issue
Block a user