mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-29 08:18:27 +00:00
Try to fix offsets
This commit is contained in:
parent
e665490e58
commit
3bae18d9cc
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,10 @@ func UpStateBlocksRefactor(tx *sql.Tx) error {
|
||||||
var snapshotrows *sql.Rows
|
var snapshotrows *sql.Rows
|
||||||
|
|
||||||
for batchoffset := 0; batchoffset < snapshotcount; batchoffset += batchsize {
|
for batchoffset := 0; batchoffset < snapshotcount; batchoffset += batchsize {
|
||||||
|
if batchoffset > snapshotcount {
|
||||||
|
batchoffset -= batchoffset - snapshotcount
|
||||||
|
}
|
||||||
|
|
||||||
snapshotrows, err = tx.Query(`
|
snapshotrows, err = tx.Query(`
|
||||||
SELECT
|
SELECT
|
||||||
state_snapshot_nid,
|
state_snapshot_nid,
|
||||||
|
|
Loading…
Reference in a new issue