Add configure option --with-bdr-only

Builds repmgr with only BDR functionality; other code is disabled
at critical points.
This commit is contained in:
Ian Barwick
2017-07-16 17:13:45 +09:00
parent a6f8d59f77
commit ec00202a31
7 changed files with 54 additions and 25 deletions

View File

@@ -362,12 +362,18 @@ start_monitoring(void)
{
switch (local_node_info.type)
{
#ifndef BDR_ONLY
case PRIMARY:
monitor_streaming_primary();
break;
case STANDBY:
monitor_streaming_standby();
break;
#else
case PRIMARY:
case STANDBY:
return;
#endif
case BDR:
monitor_bdr();
return;