Skip to content

Commit 943eb47

Browse files
committed
pgbench: Remove now-dead CState->ecnt
The last use of ecnt was in 12788ae. It was getting incremented after a backend error without any purpose since then, so let's get rid of it. Author: Kota Miyake Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/786c3d9fbe067763d899e78c296f9f0f@oss.nttdata.com
1 parent 25936fd commit 943eb47

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
int64 cnt; /* client transaction count, for -t */
430-
int ecnt; /* 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy