mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
Reset transaction after a failure
This commit is contained in:
parent
16048be236
commit
0116db79c6
11 changed files with 40 additions and 17 deletions
|
@ -56,7 +56,7 @@ func (p *InviteStreamProvider) IncrementalSync(
|
|||
)
|
||||
if err != nil {
|
||||
req.Log.WithError(err).Error("p.DB.InviteEventsInRange failed")
|
||||
_ = snapshot.Rollback()
|
||||
_ = snapshot.Reset()
|
||||
return from
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue