From 64ec85bb10507771dad1c9325d26caa77f54bc40 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 11 Sep 2017 11:00:13 +0900 Subject: [PATCH] Clarify _do_node_archive_config() usage --- repmgr-action-node.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/repmgr-action-node.c b/repmgr-action-node.c index e682e4e6..baae97c8 100644 --- a/repmgr-action-node.c +++ b/repmgr-action-node.c @@ -1764,11 +1764,13 @@ do_node_rejoin(void) termPQExpBuffer(&follow_output); } + /* - * Intended mainly for "internal" use by `node switchover`, which - * calls this on the target server to archive any configuration files - * in the data directory, which may be overwritten by an operation - * like pg_rewind + * Intended mainly for "internal" use by `node rejoin` on the local node when + * called by "standby switchover" from the remote node. + * + * This archives any configuration files in the data directory, which may be + * overwritten by pg_rewind. * * Requires configuration file, optionally --config_archive_dir */