anonymousland-synapse/synapse
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
..
api Add federation_domain_whitelist option (#2820) 2018-01-22 19:11:18 +01:00
app Factor out get_db_conn to HomeServer base class 2018-01-26 00:56:49 +00:00
appservice Extract group_id from the dict for multiple use 2017-11-16 18:18:30 +00:00
config Add federation_domain_whitelist option (#2820) 2018-01-22 19:11:18 +01:00
crypto Fix 500 when joining matrix-dev 2017-11-29 16:00:46 +00:00
events Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
federation Add federation_domain_whitelist option (#2820) 2018-01-22 19:11:18 +01:00
groups Namespace visibility options for groups 2017-11-09 15:27:18 +00:00
handlers Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
http Merge pull request #2838 from matrix-org/rav/fix_logging_on_dns_fail 2018-01-31 22:18:46 +01:00
metrics report metrics on number of cache evictions 2018-02-05 15:34:01 +00:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push Better logging when pushes fail 2018-01-29 15:49:06 +00:00
replication Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
rest Merge pull request #2791 from matrix-org/erikj/media_storage_refactor 2018-02-05 11:28:52 +00:00
static/client Updates to fallback CAS login to do new token login 2015-11-06 09:57:17 +00:00
storage Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
streams replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
util report metrics on number of cache evictions 2018-02-05 15:34:01 +00:00
__init__.py Bump version and changelog 2018-01-05 10:54:01 +00:00
event_auth.py Fix templating error with unban permission message 2018-01-07 19:52:58 -07:00
notifier.py Clear logcontext before starting fed txn queue runner 2017-11-28 15:26:14 +00:00
python_dependencies.py Make 'affinity' package optional 2017-10-02 18:03:59 +01:00
server.py Factor out resolve_state_groups to a separate handler 2018-02-01 12:40:04 +00:00
server.pyi Factor out resolve_state_groups to a separate handler 2018-02-01 12:40:04 +00:00
state.py Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
types.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
visibility.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00