Initial code for "standby clone"

This commit is contained in:
Ian Barwick
2017-04-25 09:18:14 +09:00
parent 885bc122df
commit 451cd16788
2 changed files with 11 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
*
* [ MASTER | PRIMARY ] REGISTER
*
* STANDBY CLONE (wip)
*/
#include <unistd.h>
@@ -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)

View File

@@ -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);