Fix incorrect routing of SET transaction_read_only = 0.
Fix incorrect routing of SET transaction_read_only = 0 to standby node, which caused query errors.
Also replace incorrect bool ret = POOL_BOTH with the proper enum type.
Reported-by: liujinyang-highgo
Reviewed-by: Bo Peng <pengbo(at)sraoss(dot)co(dot)jp>
Discussion: https://github.com/pgpool/pgpool2/issues/155
Backpatch-through: v4.3
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=3862188187f1b61d732189dc473daea30498c669
Modified Files
--------------
src/context/pool_query_context.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)