mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Restore repeatable read for NewDatabaseSnapshot
This commit is contained in:
parent
e91e25d6dc
commit
878d1249d9
|
|
@ -56,8 +56,6 @@ type Database struct {
|
|||
}
|
||||
|
||||
func (d *Database) NewDatabaseSnapshot(ctx context.Context) (*DatabaseTransaction, error) {
|
||||
return d.NewDatabaseTransaction(ctx) // TODO: revert
|
||||
/*
|
||||
txn, err := d.DB.BeginTx(ctx, &sql.TxOptions{
|
||||
// Set the isolation level so that we see a snapshot of the database.
|
||||
// In PostgreSQL repeatable read transactions will see a snapshot taken
|
||||
|
|
@ -74,7 +72,6 @@ func (d *Database) NewDatabaseSnapshot(ctx context.Context) (*DatabaseTransactio
|
|||
Database: d,
|
||||
txn: txn,
|
||||
}, nil
|
||||
*/
|
||||
}
|
||||
|
||||
func (d *Database) NewDatabaseTransaction(ctx context.Context) (*DatabaseTransaction, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue