@@ -8037,23 +8037,26 @@ issue_xlog_fsync(int fd, XLogSegNo segno, TimeLineID tli)
8037
8037
* function. It creates the necessary starting checkpoint and constructs the
8038
8038
* backup label and tablespace map.
8039
8039
*
8040
- * The backup label and tablespace map contents are returned in *labelfile and
8040
+ * Input parameters are "backupidstr" (the backup label string) and "fast"
8041
+ * (if true, we do the checkpoint in immediate mode to make it faster).
8042
+ *
8043
+ * The backup label and tablespace map contents are appended to *labelfile and
8041
8044
* *tblspcmapfile, and the caller is responsible for including them in the
8042
- * backup archive as 'backup_label' and 'tablespace_map'. There can be many
8043
- * backups active at the same time.
8045
+ * backup archive as 'backup_label' and 'tablespace_map'.
8046
+ * tblspcmapfile is required mainly for tar format in windows as native windows
8047
+ * utilities are not able to create symlinks while extracting files from tar.
8048
+ * However for consistency and platform-independence, we do it the same way
8049
+ * everywhere.
8044
8050
*
8045
8051
* If "tablespaces" isn't NULL, it receives a list of tablespaceinfo structs
8046
8052
* describing the cluster's tablespaces.
8047
8053
*
8048
- * tblspcmapfile is required mainly for tar format in windows as native windows
8049
- * utilities are not able to create symlinks while extracting files from tar.
8050
- * However for consistency, the same is used for all platforms.
8051
- *
8052
8054
* Returns the minimum WAL location that must be present to restore from this
8053
8055
* backup, and the corresponding timeline ID in *starttli_p.
8054
8056
*
8055
8057
* Every successfully started backup must be stopped by calling
8056
- * do_pg_backup_stop() or do_pg_abort_backup().
8058
+ * do_pg_backup_stop() or do_pg_abort_backup(). There can be many
8059
+ * backups active at the same time.
8057
8060
*
8058
8061
* It is the responsibility of the caller of this function to verify the
8059
8062
* permissions of the calling user!
@@ -8244,12 +8247,8 @@ do_pg_backup_start(const char *backupidstr, bool fast, TimeLineID *starttli_p,
8244
8247
XLogFileName (xlogfilename , starttli , _logSegNo , wal_segment_size );
8245
8248
8246
8249
/*
8247
- * Construct tablespace_map file. If caller isn't interested in this,
8248
- * we make a local StringInfo.
8250
+ * Construct tablespace_map file.
8249
8251
*/
8250
- if (tblspcmapfile == NULL )
8251
- tblspcmapfile = makeStringInfo ();
8252
-
8253
8252
datadirpathlen = strlen (DataDir );
8254
8253
8255
8254
/* Collect information about all tablespaces */
@@ -8350,11 +8349,8 @@ do_pg_backup_start(const char *backupidstr, bool fast, TimeLineID *starttli_p,
8350
8349
FreeDir (tblspcdir );
8351
8350
8352
8351
/*
8353
- * Construct backup label file. If caller isn't interested in this,
8354
- * we make a local StringInfo.
8352
+ * Construct backup label file.
8355
8353
*/
8356
- if (labelfile == NULL )
8357
- labelfile = makeStringInfo ();
8358
8354
8359
8355
/* Use the log timezone here, not the session timezone */
8360
8356
stamp_time = (pg_time_t ) time (NULL );
0 commit comments