[pgpool-committers: 6626] pgpool: Fix long standing bug in backend flag configuration processing

Tatsuo Ishii ishii at sraoss.co.jp
Mon Mar 16 11:26:29 JST 2020


Fix long standing bug in backend flag configuration processing module.

Recent commit revealed bugs in backend flag (backend_flag0 etc.)
configuration processing module. This leads to massive build farm
failure.

1) The default value for backend flag is ALWAYS_MASTER. This should be
"" (empty string).

2) The final value of the backend flag is the last default for the
flag. This is plain wrong (see BackendFlagsAssignFunc()). The result
value should be OR'ed value of each default value since backend_flag
is a bit data.

Probably we should back port the fix to the other stable branches but
I would like to confirm that the fix does not add bugs or side
effects before doing that.

Discussion:
https://www.pgpool.net/pipermail/pgpool-hackers/2020-March/003553.html

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=c728b5669191a9a551a715461a6a0798bff42a09

Modified Files
--------------
src/config/pool_config_variables.c | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)



More information about the pgpool-committers mailing list