From 451cd167887a54174af4698cc0887b8d8216d0e9 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 25 Apr 2017 09:18:14 +0900 Subject: [PATCH] Initial code for "standby clone" --- repmgr-client.c | 10 ++++++++++ repmgr-client.h | 1 + 2 files changed, 11 insertions(+) diff --git a/repmgr-client.c b/repmgr-client.c index 5524484d..35981878 100644 --- a/repmgr-client.c +++ b/repmgr-client.c @@ -10,6 +10,7 @@ * * [ MASTER | PRIMARY ] REGISTER * + * STANDBY CLONE (wip) */ #include @@ -350,6 +351,9 @@ main(int argc, char **argv) case MASTER_REGISTER: do_master_register(); break; + case STANDBY_CLONE: + do_standby_clone(); + break; default: /* An action will have been determined by this point */ break; @@ -582,6 +586,12 @@ do_master_register(void) } +static void +do_standby_clone(void) +{ + puts("standby clone"); +} + // this should be the only place where superuser rights required static bool create_repmgr_extension(PGconn *conn) diff --git a/repmgr-client.h b/repmgr-client.h index 729a906d..0dc055b2 100644 --- a/repmgr-client.h +++ b/repmgr-client.h @@ -142,6 +142,7 @@ typedef struct static void do_help(void); static void do_master_register(void); +static void do_standby_clone(void); static void exit_with_errors(void); static void print_error_list(ItemList *error_list, int log_level);