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

Commit943eb47

Browse files
committed
pgbench: Remove now-dead CState->ecnt
The last use of ecnt was in12788ae. It was getting incremented after abackend error without any purpose since then, so let's get rid of it.Author: Kota MiyakeReviewed-by: Álvaro HerreraDiscussion:https://postgr.es/m/786c3d9fbe067763d899e78c296f9f0f@oss.nttdata.com
1 parent25936fd commit943eb47

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ typedef struct
427427

428428
/* per client collected stats */
429429
int64cnt;/* client transaction count, for -t */
430-
intecnt;/* error count */
431430
}CState;
432431

433432
/*
@@ -2716,7 +2715,6 @@ sendCommand(CState *st, Command *command)
27162715
if (r==0)
27172716
{
27182717
pg_log_debug("client %d could not send %s",st->id,command->argv[0]);
2719-
st->ecnt++;
27202718
return false;
27212719
}
27222720
else
@@ -2828,14 +2826,12 @@ readCommandResponse(CState *st, MetaCommand meta, char *varprefix)
28282826
if (qrynum==0)
28292827
{
28302828
pg_log_error("client %d command %d: no results",st->id,st->command);
2831-
st->ecnt++;
28322829
return false;
28332830
}
28342831

28352832
return true;
28362833

28372834
error:
2838-
st->ecnt++;
28392835
PQclear(res);
28402836
PQclear(next_res);
28412837
do

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp