0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-02 12:48:57 +01:00
synapse/tests/replication/slave/storage
Erik Johnston 3d33eef6fc
Store state groups separately from events (#2784)
* Split state group persist into seperate storage func

* Add per database engine code for state group id gen

* Move store_state_group to StateReadStore

This allows other workers to use it, and so resolve state.

* Hook up store_state_group

* Fix tests

* Rename _store_mult_state_groups_txn

* Rename StateGroupReadStore

* Remove redundant _have_persisted_state_group_txn

* Update comments

* Comment compute_event_context

* Set start val for state_group_id_seq

... otherwise we try to recreate old state groups

* Update comments

* Don't store state for outliers

* Update comment

* Update docstring as state groups are ints
2018-02-06 14:31:24 +00:00
..
__init__.py Add a slaved events store class 2016-04-06 14:18:35 +01:00
_base.py Matthew's fixes to the unit tests 2018-01-22 16:46:16 +00:00
test_account_data.py Add a slaved datastore for account data 2016-05-13 15:34:06 +01:00
test_events.py Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
test_receipts.py Add a slaved receipts store 2016-04-19 17:14:08 +01:00