Fix heartbeat_device treatment.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 9 Jun 2025 03:49:36 +0000 (12:49 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 9 Jun 2025 03:49:36 +0000 (12:49 +0900)
commit581173f5d4677bb624b9dd0faace202e9e1815b9
tree78474c34b397a7a3b477ef770eb5a6f7834473b8
parente30bb2ead3ced75639c3272ceeaa8d880b94b2a0
Fix heartbeat_device treatment.

While processing pgpool.conf, heartbeat_device was mistakenly treated
and the first device was ignored. For example:

heartbeat_device0 = 'eth0'

the configuration process disregarded 'eth0' and acted as if no device
was set. Another example:

heartbeat_device0 = 'eth0;eth1'

"eth0" was simply ignored.

Reviewed-by: Bo Peng <pengbo@sraoss.co.jp>
Backpatch-through: v4.2
src/config/pool_config_variables.c