/rtmp/diff

text/x-diff

Filename: /rtmp/diff
Type: text/x-diff
Part: 0
Message: Re: pq_setkeepalives* functions

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: context
File+
src/backend/libpq/pqcomm.c 2 2
Index: src/backend/libpq/pqcomm.c
===================================================================
RCS file: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v
retrieving revision 1.206
diff -c -c -r1.206 pqcomm.c
*** src/backend/libpq/pqcomm.c	13 Mar 2010 15:35:46 -0000	1.206
--- src/backend/libpq/pqcomm.c	13 Mar 2010 16:38:57 -0000
***************
*** 1346,1355 ****
  int
  pq_setkeepalivesidle(int idle, Port *port)
  {
  	if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
  		return STATUS_OK;
  
- #ifdef TCP_KEEPIDLE
  	if (idle == port->keepalives_idle)
  		return STATUS_OK;
  
--- 1346,1355 ----
  int
  pq_setkeepalivesidle(int idle, Port *port)
  {
+ #ifdef TCP_KEEPIDLE
  	if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
  		return STATUS_OK;
  
  	if (idle == port->keepalives_idle)
  		return STATUS_OK;
  
***************
*** 1490,1499 ****
  int
  pq_setkeepalivescount(int count, Port *port)
  {
  	if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
  		return STATUS_OK;
  
- #ifdef TCP_KEEPCNT
  	if (count == port->keepalives_count)
  		return STATUS_OK;
  
--- 1490,1499 ----
  int
  pq_setkeepalivescount(int count, Port *port)
  {
+ #ifdef TCP_KEEPCNT
  	if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
  		return STATUS_OK;
  
  	if (count == port->keepalives_count)
  		return STATUS_OK;