From 2c1b6da7465d8b62e9c2af8ec06e61b941368618 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 19 Apr 2021 13:38:42 +0100 Subject: [PATCH] Fix bug in counting state snapshot --- .../postgres/deltas/20210416150927_state_blocks_refactor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roomserver/storage/postgres/deltas/20210416150927_state_blocks_refactor.go b/roomserver/storage/postgres/deltas/20210416150927_state_blocks_refactor.go index ad7dd0d6..6a0abdd2 100644 --- a/roomserver/storage/postgres/deltas/20210416150927_state_blocks_refactor.go +++ b/roomserver/storage/postgres/deltas/20210416150927_state_blocks_refactor.go @@ -64,7 +64,7 @@ func UpStateBlocksRefactor(tx *sql.Tx) error { var snapshotcount int err = tx.QueryRow(` - SELECT COUNT(DISTINCT state_snapshot_nid) FROM roomserver_state_snapshots; + SELECT COUNT(DISTINCT state_snapshot_nid) FROM _roomserver_state_snapshots; `).Scan(&snapshotcount) if err != nil { return fmt.Errorf("tx.QueryRow.Scan (count snapshots): %w", err)