mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Fix bug in counting state snapshot
This commit is contained in:
parent
7dd9228245
commit
2c1b6da746
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue