mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 15:08:49 +03:00
8c58eb7f17
Add `event.internal_metadata.instance_name` (the worker instance that persisted the event) to go alongside the existing `event.internal_metadata.stream_ordering`.
`instance_name` is useful to properly compare and query for events with a token since you need to compare both the `stream_ordering` and `instance_name` against the vector clock/`instance_map` in the `RoomStreamToken`.
This is pre-requisite work and may be used in https://github.com/element-hq/synapse/pull/17293
Adding `event.internal_metadata.instance_name` was first mentioned in the initial Sliding Sync PR while pairing with @erikjohnston, see
|
||
---|---|---|
.. | ||
http | ||
storage | ||
tcp | ||
__init__.py | ||
_base.py | ||
test_auth.py | ||
test_client_reader_shard.py | ||
test_federation_ack.py | ||
test_federation_sender_shard.py | ||
test_module_cache_invalidation.py | ||
test_multi_media_repo.py | ||
test_pusher_shard.py | ||
test_sharded_event_persister.py | ||
test_sharded_receipts.py |