From a2f73a508626ed9ba32cb2b393722b87e531e854 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 8 Jun 2020 12:45:38 +0900 Subject: [PATCH] run_file_backup(): fix comments Explicitly document use-case for this function, and fix a comment which probably got munged by pg_indent. --- repmgr-action-standby.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index f1acf566..80d690f4 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -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 */