From 0d0ffc675c5eb5679f9e26a5d4982bfa9d8527a6 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 9 Jun 2020 14:29:02 +0900 Subject: [PATCH] standby clone: add a strategic Assert --- repmgr-action-standby.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index 9974e626..e0abcc02 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -6877,6 +6877,9 @@ run_file_backup(t_node_info *local_node_record) PQExpBufferData tablespace_map; bool tablespace_map_rewrite = false; + /* For the foreseeable future, no other modes are supported */ + Assert(mode == barman); + if (mode == barman) { /*