mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
Initial code for "standby clone"
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
*
|
*
|
||||||
* [ MASTER | PRIMARY ] REGISTER
|
* [ MASTER | PRIMARY ] REGISTER
|
||||||
*
|
*
|
||||||
|
* STANDBY CLONE (wip)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@@ -350,6 +351,9 @@ main(int argc, char **argv)
|
|||||||
case MASTER_REGISTER:
|
case MASTER_REGISTER:
|
||||||
do_master_register();
|
do_master_register();
|
||||||
break;
|
break;
|
||||||
|
case STANDBY_CLONE:
|
||||||
|
do_standby_clone();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* An action will have been determined by this point */
|
/* An action will have been determined by this point */
|
||||||
break;
|
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
|
// this should be the only place where superuser rights required
|
||||||
static
|
static
|
||||||
bool create_repmgr_extension(PGconn *conn)
|
bool create_repmgr_extension(PGconn *conn)
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ typedef struct
|
|||||||
|
|
||||||
static void do_help(void);
|
static void do_help(void);
|
||||||
static void do_master_register(void);
|
static void do_master_register(void);
|
||||||
|
static void do_standby_clone(void);
|
||||||
|
|
||||||
static void exit_with_errors(void);
|
static void exit_with_errors(void);
|
||||||
static void print_error_list(ItemList *error_list, int log_level);
|
static void print_error_list(ItemList *error_list, int log_level);
|
||||||
|
|||||||
Reference in New Issue
Block a user