run_file_backup(): fix comments

Explicitly document use-case for this function, and fix a comment
which probably got munged by pg_indent.
This commit is contained in:
Ian Barwick
2020-06-08 12:45:38 +09:00
parent af144d39cb
commit a2f73a5086

View File

@@ -6704,6 +6704,11 @@ run_basebackup(t_node_info *node_record)
}
/*
* Perform a filesystem backup using rsync.
*
* From repmgr 4 this is only used for Barman backups.
*/
static int
run_file_backup(t_node_info *local_node_record)
{
@@ -6734,10 +6739,11 @@ run_file_backup(t_node_info *local_node_record)
/*
* Read the list of backup files into a local file. In the process:
*
* - determine the backup ID; - check, and remove, the prefix; -
* detect tablespaces; - filter files in one list per tablespace;
* - determine the backup ID
* - check, and remove, the prefix
* - detect tablespaces
* - filter files in one list per tablespace
*/
{
FILE *fi; /* input stream */
FILE *fd; /* output for data.txt */