mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 13:52:46 +00:00
Track partition offsets and only log unsafe for non-selects
This commit is contained in:
parent
bfecc8e0e9
commit
7bf2a27319
2 changed files with 15 additions and 2 deletions
|
@ -258,3 +258,16 @@ func (d *SyncServerDatasource) PutFilter(ctx context.Context, localpart string,
|
|||
func (d *SyncServerDatasource) RedactEvent(ctx context.Context, redactedEventID string, redactedBecause *gomatrixserverlib.HeaderedEvent) error {
|
||||
return d.Database.RedactEvent(d.dbctx, redactedEventID, redactedBecause)
|
||||
}
|
||||
|
||||
func (d *SyncServerDatasource) PartitionOffsets(
|
||||
ctx context.Context, topic string,
|
||||
) ([]sqlutil.PartitionOffset, error) {
|
||||
return d.PartitionOffsetStatements.PartitionOffsets(d.dbctx, topic)
|
||||
}
|
||||
|
||||
// SetPartitionOffset implements PartitionStorer
|
||||
func (d *SyncServerDatasource) SetPartitionOffset(
|
||||
ctx context.Context, topic string, partition int32, offset int64,
|
||||
) error {
|
||||
return d.PartitionOffsetStatements.SetPartitionOffset(d.dbctx, topic, partition, offset)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue