mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 15:46:29 +00:00
Compare commits
1 Commits
dev/gianni
...
test-UPM-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb06228760 |
2
.github/workflows/sonarqube-scan.yml
vendored
2
.github/workflows/sonarqube-scan.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
ref: '${{ github.head_ref }}'
|
ref: '${{ github.head_ref }}'
|
||||||
|
|
||||||
- name: Checkout GitHub Action Repo
|
- name: Checkout GitHub Action Repo
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3.3.0
|
||||||
with:
|
with:
|
||||||
repository: EnterpriseDB/edb-github-actions.git
|
repository: EnterpriseDB/edb-github-actions.git
|
||||||
ref: master
|
ref: master
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -19,77 +19,6 @@
|
|||||||
#ifndef _REPMGR_ACTION_STANDBY_H_
|
#ifndef _REPMGR_ACTION_STANDBY_H_
|
||||||
#define _REPMGR_ACTION_STANDBY_H_
|
#define _REPMGR_ACTION_STANDBY_H_
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
int reachable_sibling_node_count;
|
|
||||||
int reachable_sibling_nodes_with_slot_count;
|
|
||||||
int unreachable_sibling_node_count;
|
|
||||||
int min_required_wal_senders;
|
|
||||||
int min_required_free_slots;
|
|
||||||
} SiblingNodeStats;
|
|
||||||
|
|
||||||
#define T_SIBLING_NODES_STATS_INITIALIZER { \
|
|
||||||
0, \
|
|
||||||
0, \
|
|
||||||
0, \
|
|
||||||
0, \
|
|
||||||
0 \
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
RepmgrdInfo **repmgrd_info;
|
|
||||||
int repmgrd_running_count;
|
|
||||||
|
|
||||||
bool dry_run_success;
|
|
||||||
|
|
||||||
/* store list of configuration files on the demotion candidate */
|
|
||||||
KeyValueList remote_config_files;
|
|
||||||
|
|
||||||
/* used for handling repmgrd pause/unpause */
|
|
||||||
NodeInfoList all_nodes;
|
|
||||||
|
|
||||||
NodeInfoList sibling_nodes;
|
|
||||||
SiblingNodeStats sibling_nodes_stats;
|
|
||||||
|
|
||||||
t_event_info event_info;
|
|
||||||
int remote_node_id;
|
|
||||||
t_node_info remote_node_record;
|
|
||||||
t_node_info local_node_record;
|
|
||||||
char remote_conninfo[MAXCONNINFO];
|
|
||||||
bool switchover_success;
|
|
||||||
RecoveryType recovery_type;
|
|
||||||
PGconn *superuser_conn;
|
|
||||||
|
|
||||||
/* the remote server is the primary to be demoted */
|
|
||||||
char remote_host[MAXLEN];
|
|
||||||
int remote_repmgr_version;
|
|
||||||
PGconn *remote_conn;
|
|
||||||
PGconn *local_conn;
|
|
||||||
} t_standby_switchover_rec;
|
|
||||||
|
|
||||||
#define T_STANDBY_SWITCHOVER_INITIALIZER { \
|
|
||||||
NULL, \
|
|
||||||
true, \
|
|
||||||
{NULL, NULL}, \
|
|
||||||
T_NODE_INFO_LIST_INITIALIZER, \
|
|
||||||
T_NODE_INFO_LIST_INITIALIZER, \
|
|
||||||
T_SIBLING_NODES_STATS_INITIALIZER, \
|
|
||||||
T_EVENT_INFO_INITIALIZER, \
|
|
||||||
UNKNOWN_NODE_ID, \
|
|
||||||
T_NODE_INFO_INITIALIZER, \
|
|
||||||
T_NODE_INFO_INITIALIZER, \
|
|
||||||
"", \
|
|
||||||
true, \
|
|
||||||
RECTYPE_UNKNOWN, \
|
|
||||||
NULL, \
|
|
||||||
"", \
|
|
||||||
UNKNOWN_REPMGR_VERSION_NUM, \
|
|
||||||
NULL, \
|
|
||||||
NULL \
|
|
||||||
}
|
|
||||||
|
|
||||||
extern void do_standby_clone(void);
|
extern void do_standby_clone(void);
|
||||||
extern void do_standby_register(void);
|
extern void do_standby_register(void);
|
||||||
extern void do_standby_unregister(void);
|
extern void do_standby_unregister(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user