mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-16 06:02:24 +03:00
Modify sync transaction behaviour (#2758)
This now uses a transaction per stream, so that errors in one stream don't propagate to another, and we therefore no longer need to do hacks to reopen a new transaction after aborting a failed one.
This commit is contained in:
parent
d4710217f8
commit
d32f60249d
11 changed files with 155 additions and 91 deletions
|
@ -67,7 +67,6 @@ func (p *PresenceStreamProvider) IncrementalSync(
|
|||
presences, err := snapshot.PresenceAfter(ctx, from, gomatrixserverlib.EventFilter{Limit: 1000})
|
||||
if err != nil {
|
||||
req.Log.WithError(err).Error("p.DB.PresenceAfter failed")
|
||||
_ = snapshot.Reset()
|
||||
return from
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue