Fix bug in counting state snapshot

This commit is contained in:
Neil Alexander 2021-04-19 13:38:42 +01:00
parent 7dd9228245
commit 2c1b6da746
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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)