mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Initial code for "standby clone"
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user