mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
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
This commit is contained in:
@@ -427,7 +427,6 @@ typedef struct
|
|||||||
|
|
||||||
/* per client collected stats */
|
/* per client collected stats */
|
||||||
int64 cnt; /* client transaction count, for -t */
|
int64 cnt; /* client transaction count, for -t */
|
||||||
int ecnt; /* error count */
|
|
||||||
} CState;
|
} CState;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -2716,7 +2715,6 @@ sendCommand(CState *st, Command *command)
|
|||||||
if (r == 0)
|
if (r == 0)
|
||||||
{
|
{
|
||||||
pg_log_debug("client %d could not send %s", st->id, command->argv[0]);
|
pg_log_debug("client %d could not send %s", st->id, command->argv[0]);
|
||||||
st->ecnt++;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2828,14 +2826,12 @@ readCommandResponse(CState *st, MetaCommand meta, char *varprefix)
|
|||||||
if (qrynum == 0)
|
if (qrynum == 0)
|
||||||
{
|
{
|
||||||
pg_log_error("client %d command %d: no results", st->id, st->command);
|
pg_log_error("client %d command %d: no results", st->id, st->command);
|
||||||
st->ecnt++;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
st->ecnt++;
|
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
PQclear(next_res);
|
PQclear(next_res);
|
||||||
do
|
do
|
||||||
|
Reference in New Issue
Block a user