dont't replace pghba when cross region build

Offering: openGaussDev

More detail:

Match-id-b36b3f7f882a819dab886714343a54188ca203ad
This commit is contained in:
openGaussDev
2022-03-05 17:54:59 +08:00
committed by yanghao
parent 5ee5433c5b
commit 2ea04d8152
2 changed files with 11 additions and 3 deletions

View File

@ -191,7 +191,9 @@ typedef enum {
extern bool data_catchup;
extern bool wal_catchup;
extern BuildMode build_mode;
extern bool is_cross_region_build; /* for stream disaster recovery cluster */
#define IS_CROSS_CLUSTER_BUILD (build_mode == CROSS_CLUSTER_FULL_BUILD || \
build_mode == CROSS_CLUSTER_INC_BUILD || \
build_mode == CROSS_CLUSTER_STANDBY_FULL_BUILD)
build_mode == CROSS_CLUSTER_STANDBY_FULL_BUILD || \
is_cross_region_build)
#endif /* _REPLICA_INTERNAL_H */