[pgpool-committers: 2356] pgpool: Fix for 0000122: pgpool-II 3.4.0 - if_up_cmd and if_down_cmd $_
Muhammad Usama
m.usama at gmail.com
Wed Dec 17 18:20:27 JST 2014
Fix for 0000122: pgpool-II 3.4.0 - if_up_cmd and if_down_cmd $_IP_$ substitution
is too optimistic.
exec_ifconfig() function while breaking the command string into tokens was
assuming that "$_IP_$" keyword will always have a white space at the end and
when "$_IP_$" has some prefix, it gets broken down into two tokens "$_IP_$"
instead of one.
To fix this the command string in exec_ifconfig() is passed to newly added
string_replace() function to substitute all occurrences of "$_IP_$"
with delegate_IP before tokenizing.
Branch
------
V3_2_STABLE
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=c194dcc60ff5ede455d042b2e07f1763894a4c84
Modified Files
--------------
watchdog/wd_if.c | 58 +++++++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 47 insertions(+), 11 deletions(-)
More information about the pgpool-committers
mailing list