File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,6 @@ char *Unix_socket_group;
105105/* Where the Unix socket files are (list of palloc'd strings) */
106106static List * sock_paths = NIL ;
107107
108- PQcommMethods * PqCommMethods ;
109-
110-
111108/*
112109 * Buffers for low-level I/O.
113110 *
@@ -154,8 +151,6 @@ static int Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath);
154151static int Setup_AF_UNIX (char * sock_path );
155152#endif /* HAVE_UNIX_SOCKETS */
156153
157- PQcommMethods PQcommSocketMethods ;
158-
159154static PQcommMethods PqCommSocketMethods = {
160155 socket_comm_reset ,
161156 socket_flush ,
@@ -167,6 +162,9 @@ static PQcommMethods PqCommSocketMethods = {
167162 socket_endcopyout
168163};
169164
165+ PQcommMethods * PqCommMethods = & PqCommSocketMethods ;
166+
167+
170168
171169/* --------------------------------
172170 * pq_init - initialize libpq at backend startup
@@ -175,7 +173,6 @@ static PQcommMethods PqCommSocketMethods = {
175173void
176174pq_init (void )
177175{
178- PqCommMethods = & PqCommSocketMethods ;
179176 PqSendBufferSize = PQ_SEND_BUFFER_SIZE ;
180177 PqSendBuffer = MemoryContextAlloc (TopMemoryContext , PqSendBufferSize );
181178 PqSendPointer = PqSendStart = PqRecvPointer = PqRecvLength = 0 ;
You can’t perform that action at this time.
0 commit comments