From fc568a9101c6bbf9d847bc963cd166f354360ce7 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 af0440ec..e2aefaac 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -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 */