Skip to content

Commit da077ca

Browse files
Make sure to select from selected step
Not clear whether this will actually make a difference, but it seems not impossible we were selecting from the "parent" collector_progress previously, which would be wrong. The intent is that the expected time is updated after a commit is fully processed, not before; this ensures that we don't jump around as much on the various print outs of this statistic.
1 parent 76432f7 commit da077ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/src/pool/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl PostgresConnection {
429429
coalesce(end_time, statement_timestamp()) - start_time)::int4,
430430
extract(
431431
epoch from interval '0 seconds'::interval +
432-
(select end_time - start_time
432+
(select cp.end_time - cp.start_time
433433
from collector_progress as cp
434434
where
435435
cp.aid != $1

0 commit comments

Comments
 (0)