Skip to content

Commit f08c84c

Browse files
committed
fix: failed to read replication lag: cannot assign NULL to int
1 parent 1ac2f12 commit f08c84c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

engine/internal/retrieval/status/retrieval_status.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const (
3232
ELSE
3333
coalesce(round(date_part('epoch', now() - pg_last_xact_replay_timestamp())::int8, 0), 0)
3434
END)
35+
ELSE 0
3536
END lag_sec;
3637
`
3738

@@ -43,6 +44,7 @@ const (
4344
ELSE
4445
coalesce(round(date_part('epoch', now() - pg_last_xact_replay_timestamp())::int8, 0), 0)
4546
END)
47+
ELSE 0
4648
END lag_sec;
4749
`
4850

0 commit comments

Comments
 (0)