Commit Graph

115 Commits (00f51493f5726210bf649889ed3c03b56fddbe1d)

Author SHA1 Message Date
Erik Johnston d5ae1f1291 Ensure we don't mutate state cache entries 8 years ago
Erik Johnston 051a9ea921 Linearize state resolution to help caches 8 years ago
Erik Johnston 9e25443db8 Move to storing state_groups_state as deltas 8 years ago
Erik Johnston ed7a703d4c Handle the fact that workers can't generate state groups 8 years ago
Erik Johnston f51888530d Always specify state_group so that its in the cache 8 years ago
Erik Johnston c10cb581c6 Correctly handle the difference between prev and current state 8 years ago
Erik Johnston 1bb8ec296d Generate state group ids in state layer 8 years ago
Erik Johnston bed10f9880 Use state handler instead of get_users_in_room/get_joined_hosts 8 years ago
Erik Johnston 0e1900d819 Pull out full state less 8 years ago
Erik Johnston a3dc1e9cbe Replace context.current_state with context.current_state_ids 8 years ago
Erik Johnston 17f4f14df7 Pull out event ids rather than full events for state 8 years ago
Erik Johnston 9e1b43bcbf Comment 8 years ago
Erik Johnston ebdafd8114 Check sender signed event 8 years ago
Erik Johnston 5bbc321588 Always use state cache entry if it exists 9 years ago
Erik Johnston 4cf4320593 Add some logging to state resolve_events 9 years ago
Erik Johnston c906f30661 Do checks for memberships before creating events 9 years ago
Mark Haines 2a37467fa1 Use google style doc strings. 9 years ago
Mark Haines dc4c1579d4 Remove outlier parameter from compute_event_context 9 years ago
Erik Johnston 9e2e994395 Reduce cache size 9 years ago
Erik Johnston d531ebcb57 Key StateHandler._state_cache off of state groups 9 years ago
Erik Johnston 99f929f36b Make StateHandler._state_cache only store event_ids. 9 years ago
Erik Johnston d787e41b20 Measure StateHandler._resolve_events 9 years ago
Daniel Wagner-Hall d83d004ccd Fix flake8 warnings for new flake8 9 years ago
Matthew Hodgson 6c28ac260c copyrights 9 years ago
Richard van der Hoff 5dea4d37d1 Update some comments 9 years ago
Richard van der Hoff 78f6010207 Fix an issue with ignoring power_level changes on divergent graphs 9 years ago
Mark Haines 82b8d4b86a synapse/state.py:_get_state_key_from_event was unused 9 years ago
Erik Johnston b105996fc1 Remove run_on_reactor 9 years ago
Erik Johnston 4678055173 Refactor do_invite_join 9 years ago
Erik Johnston 2df8dd9b37 Move all the caches into their own package, synapse.util.caches 9 years ago
Erik Johnston 07507643cb Use dictionary cache to do group -> state fetching 9 years ago
Erik Johnston 55bf90b9e4 Don't needlessly compute prev_state 10 years ago
Erik Johnston 53f0bf85d7 Comment 10 years ago
Erik Johnston 1c3d844e73 Don't needlessly compute context 10 years ago
Erik Johnston 23c639ff32 Split a storage function in two so that we don't have to do extra work. 10 years ago
Erik Johnston b2e6ee5b43 Remove concept of context.auth_events, instead use context.current_state 10 years ago
Erik Johnston ea8590cf66 Make context.auth_events grap auth events from current state. Otherwise auth is wrong. 10 years ago
Erik Johnston 2674aeb96a Factor out ExpiringCache from StateHandler 10 years ago
Erik Johnston 8c652a2b5f When we see a difference in current state, actually use state conflict resolution algorithm 10 years ago
Erik Johnston f8abbae99f Remove unnecessary logging 10 years ago
Erik Johnston 2b042ad67f Oops, we do want to defer.return regardless of whether we are caching or not 10 years ago
Erik Johnston d19e2ed02f Move construction of object within if block 10 years ago
Erik Johnston d94f682a4c During room intial sync, only calculate current state once. 10 years ago
Erik Johnston 5bf318e9a6 Bug fixes. 10 years ago
Erik Johnston b4886264a3 Bugfix cache layer 10 years ago
Erik Johnston c4e3029d55 Add cache layer to state group resolution 10 years ago
Erik Johnston 650e32d455 Change context.auth_events to what the auth_events would be bases on context.current_state, rather than based on the auth_events from the event. 10 years ago
Erik Johnston f275ba49bb Fix state resolution to remember join_rules is a type of auth event. 10 years ago
Erik Johnston 7a1e881665 Remove debug logging 10 years ago
Erik Johnston 3d7026e709 Add a slightly more helpful comment 10 years ago