mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:56:02 -04:00
Add replication streams for ex outliers and current state resets
This commit is contained in:
parent
61407986b4
commit
1fbb094c6f
3 changed files with 113 additions and 2 deletions
|
@ -204,7 +204,11 @@ class ReplicationResource(Resource):
|
|||
request_events = current_token.events
|
||||
if request_backfill is None:
|
||||
request_backfill = current_token.backfill
|
||||
events_rows, backfill_rows = yield self.store.get_all_new_events(
|
||||
(
|
||||
events_rows, backfill_rows,
|
||||
forward_ex_outliers, backward_ex_outliers,
|
||||
state_resets
|
||||
) = yield self.store.get_all_new_events(
|
||||
request_backfill, request_events,
|
||||
current_token.backfill, current_token.events,
|
||||
limit
|
||||
|
@ -215,6 +219,17 @@ class ReplicationResource(Resource):
|
|||
writer.write_header_and_rows("backfill", backfill_rows, (
|
||||
"position", "internal", "json", "state_group"
|
||||
))
|
||||
writer.write_header_and_rows(
|
||||
"forward_ex_outliers", forward_ex_outliers,
|
||||
("position", "event_id", "state_group")
|
||||
)
|
||||
writer.write_header_and_rows(
|
||||
"backward_ex_outliers", backward_ex_outliers,
|
||||
("position", "event_id", "state_group")
|
||||
)
|
||||
writer.write_header_and_rows(
|
||||
"state_resets", state_resets, ("position",)
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def presence(self, writer, current_token):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue