summary refs log tree commit diff
path: root/scripts-dev/check_auth.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-05-04Fix comment and num argsErik Johnston2-2/+2
2017-05-04Add new storage functions to slave storeErik Johnston1-0/+3
2017-05-02Add cache for get_current_hosts_in_roomErik Johnston3-5/+50
2017-04-28Remove unused importErik Johnston1-1/+0
2017-04-28We don't care about forgotten roomsErik Johnston1-12/+0
2017-04-28Speed up filtering of a single event in pushErik Johnston4-40/+37
2017-04-27Comment and remove spurious loggingErik Johnston2-1/+3
2017-04-27Fix bgupdate error if index already exists (#2167)Richard van der Hoff1-30/+53
When creating a new table index in the background, guard against it existing already. Fixes https://github.com/matrix-org/synapse/issues/2135. Also, make sure we restore the autocommit flag when we're done, otherwise we get more failures from other operations later on. Fixes https://github.com/matrix-org/synapse/issues/1890 (hopefully).
2017-04-27TypoErik Johnston1-1/+1
2017-04-27Add some extra logging for edge cases of federationErik Johnston1-2/+22
2017-04-26Fix testsErik Johnston1-3/+3
2017-04-26Fix invite state to always include all eventsErik Johnston3-7/+24
2017-04-25document how to make IPv6 work (#2088)Matthew Hodgson1-0/+19
* document how to make IPv6 work * spell out that pip will install 17.1 by default
2017-04-25Make state caches cache in asciiErik Johnston1-2/+3
2017-04-25fix upErik Johnston1-1/+2
2017-04-25Don't specify default as dictErik Johnston1-1/+1
2017-04-25CommentErik Johnston1-0/+2
2017-04-25Reduce size of joined_user cacheErik Johnston4-11/+40
The _get_joined_users_from_context cache stores a mapping from user_id to avatar_url and display_name. Instead of storing those in a dict, store them in a namedtuple as that uses much less memory. We also try converting the string to ascii to further reduce the size.
2017-04-25Reduce _get_state_group_for_event cache sizeErik Johnston1-1/+1
2017-04-25Remove DEBUG_CACHESErik Johnston1-2/+0
2017-04-25Reduce cache size by not storing deferredsErik Johnston2-22/+28
Currently the cache descriptors store deferreds rather than raw values, this is a simple way of triggering only one database hit and sharing the result if two callers attempt to get the same value. However, there are a few caches that simply store a mapping from string to string (or int). These caches can have a large number of entries, under the assumption that each entry is small. However, the size of a deferred (specifically the size of ObservableDeferred) is signigicantly larger than that of the raw value, 2kb vs 32b. This PR therefore changes the cache descriptors to store the raw values rather than the deferreds. As a side effect cached storage function now either return a deferred or the actual value, as the cached list decriptor already does. This is fine as we always end up just yield'ing on the returned value eventually, which handles that case correctly.
2017-04-24Fix code for reporting old verify keys in synapseMark Haines1-3/+2
2017-04-24Only intern ascii stringsErik Johnston1-18/+11
2017-04-24Remove unused cacheErik Johnston2-9/+1
2017-04-21clarify metric setup to use 'scrape_configs' section of yaml and use an ↵Sean Enck1-3/+2