Return err and not nil

This commit is contained in:
Till Faelligen 2024-05-21 16:17:06 +02:00
parent ce15a2800c
commit 4b70d7d55f
No known key found for this signature in database
GPG Key ID: ACCDC9606D472758

View File

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