@@ -54,18 +54,18 @@ typedef struct
54
54
bool includewal ;
55
55
uint32 maxrate ;
56
56
bool sendtblspcmapfile ;
57
- manifest_option manifest ;
57
+ backup_manifest_option manifest ;
58
58
pg_checksum_type manifest_checksum_type ;
59
59
} basebackup_options ;
60
60
61
61
static int64 sendDir (const char * path , int basepathlen , bool sizeonly ,
62
62
List * tablespaces , bool sendtblspclinks ,
63
- manifest_info * manifest , const char * spcoid );
63
+ backup_manifest_info * manifest , const char * spcoid );
64
64
static bool sendFile (const char * readfilename , const char * tarfilename ,
65
65
struct stat * statbuf , bool missing_ok , Oid dboid ,
66
- manifest_info * manifest , const char * spcoid );
66
+ backup_manifest_info * manifest , const char * spcoid );
67
67
static void sendFileWithContent (const char * filename , const char * content ,
68
- manifest_info * manifest );
68
+ backup_manifest_info * manifest );
69
69
static int64 _tarWriteHeader (const char * filename , const char * linktarget ,
70
70
struct stat * statbuf , bool sizeonly );
71
71
static int64 _tarWriteDir (const char * pathbuf , int basepathlen , struct stat * statbuf ,
@@ -268,7 +268,7 @@ perform_base_backup(basebackup_options *opt)
268
268
TimeLineID endtli ;
269
269
StringInfo labelfile ;
270
270
StringInfo tblspc_map_file = NULL ;
271
- manifest_info manifest ;
271
+ backup_manifest_info manifest ;
272
272
int datadirpathlen ;
273
273
List * tablespaces = NIL ;
274
274
@@ -298,7 +298,8 @@ perform_base_backup(basebackup_options *opt)
298
298
299
299
labelfile = makeStringInfo ();
300
300
tblspc_map_file = makeStringInfo ();
301
- InitializeManifest (& manifest , opt -> manifest , opt -> manifest_checksum_type );
301
+ InitializeBackupManifest (& manifest , opt -> manifest ,
302
+ opt -> manifest_checksum_type );
302
303
303
304
total_checksum_failures = 0 ;
304
305
@@ -710,7 +711,7 @@ perform_base_backup(basebackup_options *opt)
710
711
pq_putemptymessage ('c' );
711
712
}
712
713
713
- AddWALInfoToManifest (& manifest , startptr , starttli , endptr , endtli );
714
+ AddWALInfoToBackupManifest (& manifest , startptr , starttli , endptr , endtli );
714
715
715
716
SendBackupManifest (& manifest );
716
717
@@ -1085,7 +1086,7 @@ SendXlogRecPtrResult(XLogRecPtr ptr, TimeLineID tli)
1085
1086
*/
1086
1087
static void
1087
1088
sendFileWithContent (const char * filename , const char * content ,
1088
- manifest_info * manifest )
1089
+ backup_manifest_info * manifest )
1089
1090
{
1090
1091
struct stat statbuf ;
1091
1092
int pad ,
@@ -1129,9 +1130,8 @@ sendFileWithContent(const char *filename, const char *content,
1129
1130
}
1130
1131
1131
1132
pg_checksum_update (& checksum_ctx , (uint8 * ) content , len );
1132
- AddFileToManifest (manifest , NULL , filename , len ,
1133
- (pg_time_t ) statbuf .st_mtime ,
1134
- & checksum_ctx );
1133
+ AddFileToBackupManifest (manifest , NULL , filename , len ,
1134
+ (pg_time_t ) statbuf .st_mtime , & checksum_ctx );
1135
1135
}
1136
1136
1137
1137
/*
@@ -1143,7 +1143,7 @@ sendFileWithContent(const char *filename, const char *content,
1143
1143
*/
1144
1144
int64
1145
1145
sendTablespace (char * path , char * spcoid , bool sizeonly ,
1146
- manifest_info * manifest )
1146
+ backup_manifest_info * manifest )
1147
1147
{
1148
1148
int64 size ;
1149
1149
char pathbuf [MAXPGPATH ];
@@ -1196,7 +1196,8 @@ sendTablespace(char *path, char *spcoid, bool sizeonly,
1196
1196
*/
1197
1197
static int64
1198
1198
sendDir (const char * path , int basepathlen , bool sizeonly , List * tablespaces ,
1199
- bool sendtblspclinks , manifest_info * manifest , const char * spcoid )
1199
+ bool sendtblspclinks , backup_manifest_info * manifest ,
1200
+ const char * spcoid )
1200
1201
{
1201
1202
DIR * dir ;
1202
1203
struct dirent * de ;
@@ -1558,7 +1559,7 @@ is_checksummed_file(const char *fullpath, const char *filename)
1558
1559
static bool
1559
1560
sendFile (const char * readfilename , const char * tarfilename ,
1560
1561
struct stat * statbuf , bool missing_ok , Oid dboid ,
1561
- manifest_info * manifest , const char * spcoid )
1562
+ backup_manifest_info * manifest , const char * spcoid )
1562
1563
{
1563
1564
FILE * fp ;
1564
1565
BlockNumber blkno = 0 ;
@@ -1810,8 +1811,8 @@ sendFile(const char *readfilename, const char *tarfilename,
1810
1811
1811
1812
total_checksum_failures += checksum_failures ;
1812
1813
1813
- AddFileToManifest (manifest , spcoid , tarfilename , statbuf -> st_size ,
1814
- (pg_time_t ) statbuf -> st_mtime , & checksum_ctx );
1814
+ AddFileToBackupManifest (manifest , spcoid , tarfilename , statbuf -> st_size ,
1815
+ (pg_time_t ) statbuf -> st_mtime , & checksum_ctx );
1815
1816
1816
1817
return true;
1817
1818
}
0 commit comments