From 60edb00bb44cd0bd68a15591621f253d3213092b Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 26 Jun 2017 09:15:39 +0900 Subject: [PATCH] Add dummy BDR monitoring handler --- repmgrd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repmgrd.c b/repmgrd.c index d9575491..5cfcbaea 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -85,6 +85,8 @@ static void check_and_create_pid_file(const char *pid_file); static void start_monitoring(void); static void monitor_streaming_primary(void); static void monitor_streaming_standby(void); +static void monitor_bdr(void); + #ifndef WIN32 static void setup_event_handlers(void); @@ -462,6 +464,9 @@ start_monitoring(void) case WITNESS: /* not handled */ return; + case BDR: + monitor_bdr(); + return; case UNKNOWN: /* should never happen */ break;