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 e65738c989
commit fc568a9101

View File

@@ -6855,6 +6855,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)
{
@@ -6885,10 +6890,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 */