Skip to content

Commit

Permalink
Fixup the tables for the events stream ID gen
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed May 20, 2024
1 parent 1e4d9df commit a84615e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions synapse/storage/databases/main/events_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ def __init__(
notifier=hs.get_replication_notifier(),
stream_name="events",
instance_name=hs.get_instance_name(),
tables=[("events", "instance_name", "stream_ordering")],
tables=[
("events", "instance_name", "stream_ordering"),
("current_state_delta_stream", "instance_name", "stream_id"),
("ex_outlier_stream", "instance_name", "event_stream_ordering"),
],
sequence_name="events_stream_seq",
writers=hs.config.worker.writers.events,
)
Expand All @@ -214,7 +218,10 @@ def __init__(
notifier=hs.get_replication_notifier(),
stream_name="backfill",
instance_name=hs.get_instance_name(),
tables=[("events", "instance_name", "stream_ordering")],
tables=[
("events", "instance_name", "stream_ordering"),
("ex_outlier_stream", "instance_name", "event_stream_ordering"),
],
sequence_name="events_backfill_stream_seq",
positive=False,
writers=hs.config.worker.writers.events,
Expand All @@ -230,6 +237,11 @@ def __init__(
"events",
"stream_ordering",
is_writer=hs.get_instance_name() in hs.config.worker.writers.events,
extra_tables=[
("ex_outlier_stream", "event_stream_ordering"),
("current_state_delta_stream", "stream_id"),
("ex_outlier_stream", "event_stream_ordering"),
],
)
self._backfill_id_gen = StreamIdGenerator(
db_conn,
Expand Down

0 comments on commit a84615e

Please sign in to comment.