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

Commitcfcdd31

Browse files
committed
Change small 'if/else' test to use Max().
1 parent513bbf4 commitcfcdd31

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*Copyright (c) 2001-2003, PostgreSQL Global Development Group
1515
*
16-
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.62 2004/03/22 23:55:29 tgl Exp $
16+
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.63 2004/03/27 17:32:42 momjian Exp $
1717
* ----------
1818
*/
1919
#include"postgres.h"
@@ -1681,10 +1681,7 @@ pgstat_mainChild(PGSTAT_FORK_ARGS)
16811681
FD_SET(readPipe,&rfds);
16821682
FD_SET(pmPipe,&rfds);
16831683

1684-
if (readPipe>pmPipe)
1685-
maxfd=readPipe;
1686-
else
1687-
maxfd=pmPipe;
1684+
maxfd=Max(readPipe,pmPipe);
16881685

16891686
/*
16901687
* Now wait for something to do.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp