pgpool2.git / summary / log / commit / refs

commit    954e82ac528480ba2f8fc7d5030d91290f160f63
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Mon May 09 23:37:14 2011 +0000

    Fix cancel_request() so that it adopts the change made for 3.1
    regarding UNIX domain socket name. Before we thought backend_port = ""
    meant we should use UNIX domain socket, but now backend_port = "/"
    means UNIX domain socket.


child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/child.c b/child.c index d74c96368..b9e62bb69 100644 --- a/child.c +++ b/child.c @@ -1136,7 +1136,7 @@ void cancel_request(CancelPacket *sp) if (!VALID_BACKEND(i)) continue; - if (*(BACKEND_INFO(i).backend_hostname) == '\0') + if (*(BACKEND_INFO(i).backend_hostname) == '/') fd = connect_unix_domain_socket(i, TRUE); else fd = connect_inet_domain_socket(i, TRUE); [parent: afd18f924c0e]