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

Commitb740be2

Browse files
committed
Log send() failures when sending to statistics process (but only in
assert-enabled builds). This is a temporary measure to see if we canlearn anything about those intermittent stats test failures in thebuildfarm.
1 parente038e89 commitb740be2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*Copyright (c) 2001-2005, PostgreSQL Global Development Group
1515
*
16-
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.106 2005/08/15 16:25:17 tgl Exp $
16+
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.107 2005/08/30 02:47:37 tgl Exp $
1717
* ----------
1818
*/
1919
#include"postgres.h"
@@ -1446,8 +1446,13 @@ pgstat_send(void *msg, int len)
14461446

14471447
((PgStat_MsgHdr*)msg)->m_size=len;
14481448

1449+
#ifdefUSE_ASSERT_CHECKING
1450+
if (send(pgStatSock,msg,len,0)<0)
1451+
elog(LOG,"could not send to statistics collector: %m");
1452+
#else
14491453
send(pgStatSock,msg,len,0);
14501454
/* We deliberately ignore any error from send() */
1455+
#endif
14511456
}
14521457

14531458

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp