Fix latency calculation when there are \sleep commands in the script.
authorHeikki Linnakangas
Mon, 19 Sep 2016 19:55:43 +0000 (22:55 +0300)
committerHeikki Linnakangas
Mon, 19 Sep 2016 19:59:44 +0000 (22:59 +0300)
commit476945c451d675cc31cd89bce202b775cef45a8e
treeb34b4fedbf03688205da2a3521f8a91bb6114e59
parentca93b816f823d3be3088095832c44232738b6553
Fix latency calculation when there are \sleep commands in the script.

We can't use txn_scheduled to hold the sleep-until time for \sleep, because
that interferes with calculation of the latency of the transaction as whole.

Backpatch to 9.4, where this bug was introduced.

Fabien COELHO

Discussion: 1608231622170.7102@lancre>
contrib/pgbench/pgbench.c