Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f10d21

Browse files
committed
Move more tcp keepalive macros to be consistent.
1 parent45d9d90 commit3f10d21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/libpq/pqcomm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
3131
* Portions Copyright (c) 1994, Regents of the University of California
3232
*
33-
*$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.206 2010/03/1315:35:46 momjian Exp $
33+
*$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.207 2010/03/1316:40:38 momjian Exp $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -1346,10 +1346,10 @@ pq_getkeepalivesidle(Port *port)
13461346
int
13471347
pq_setkeepalivesidle(intidle,Port*port)
13481348
{
1349+
#ifdefTCP_KEEPIDLE
13491350
if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family))
13501351
returnSTATUS_OK;
13511352

1352-
#ifdefTCP_KEEPIDLE
13531353
if (idle==port->keepalives_idle)
13541354
returnSTATUS_OK;
13551355

@@ -1490,10 +1490,10 @@ pq_getkeepalivescount(Port *port)
14901490
int
14911491
pq_setkeepalivescount(intcount,Port*port)
14921492
{
1493+
#ifdefTCP_KEEPCNT
14931494
if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family))
14941495
returnSTATUS_OK;
14951496

1496-
#ifdefTCP_KEEPCNT
14971497
if (count==port->keepalives_count)
14981498
returnSTATUS_OK;
14991499

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp