mirror of
https://github.com/matrix-org/dendrite
synced 2024-11-10 07:04:24 +00:00
bugfix: order the state blocks so recreating state snapshots works correctly (#1908)
* Logging
* Revert "Logging"
This reverts commit 23ce334182
.
* bugfix: order the state blocks so recreating state snapshots works correctly
This commit is contained in:
parent
816e1a402b
commit
3e50bac944
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ const insertStateDataSQL = "" +
|
|||
|
||||
const bulkSelectStateBlockEntriesSQL = "" +
|
||||
"SELECT state_block_nid, event_nids" +
|
||||
" FROM roomserver_state_block WHERE state_block_nid = ANY($1)"
|
||||
" FROM roomserver_state_block WHERE state_block_nid = ANY($1) ORDER BY state_block_nid ASC"
|
||||
|
||||
type stateBlockStatements struct {
|
||||
insertStateDataStmt *sql.Stmt
|
||||
|
|
|
@ -57,7 +57,7 @@ const insertStateDataSQL = `
|
|||
|
||||
const bulkSelectStateBlockEntriesSQL = "" +
|
||||
"SELECT state_block_nid, event_nids" +
|
||||
" FROM roomserver_state_block WHERE state_block_nid IN ($1)"
|
||||
" FROM roomserver_state_block WHERE state_block_nid IN ($1) ORDER BY state_block_nid ASC"
|
||||
|
||||
type stateBlockStatements struct {
|
||||
db *sql.DB
|
||||
|
|
Loading…
Reference in a new issue