diff --git a/src/streaming_replication/pool_worker_child.c b/src/streaming_replication/pool_worker_child.c index 093c8cc..0c909e6 100644 --- a/src/streaming_replication/pool_worker_child.c +++ b/src/streaming_replication/pool_worker_child.c @@ -210,6 +210,12 @@ static void check_replication_time_lag(void) return; } + if (REAL_PRIMARY_NODE_ID < 0) + { + /* No need to check if there's no primary */ + return; + } + /* Count healthy nodes */ for (i=0;i