mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Return err and not nil
This commit is contained in:
parent
ce15a2800c
commit
4b70d7d55f
@ -171,7 +171,7 @@ func (s *Storage) PrepareSnapshot(txn *sqlx.Tx) (tableName string, err error) {
|
|||||||
`SELECT UNNEST(membership_events) AS membership_nid INTO TEMP ` + tempTableName + ` FROM syncv3_snapshots
|
`SELECT UNNEST(membership_events) AS membership_nid INTO TEMP ` + tempTableName + ` FROM syncv3_snapshots
|
||||||
JOIN syncv3_rooms ON syncv3_snapshots.snapshot_id = syncv3_rooms.current_snapshot_id`,
|
JOIN syncv3_rooms ON syncv3_snapshots.snapshot_id = syncv3_rooms.current_snapshot_id`,
|
||||||
)
|
)
|
||||||
return tempTableName, nil
|
return tempTableName, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// GlobalSnapshot snapshots the entire database for the purposes of initialising
|
// GlobalSnapshot snapshots the entire database for the purposes of initialising
|
||||||
|
Loading…
x
Reference in New Issue
Block a user