MatrixSynapse/synapse
Erik Johnston 3baf6e1667 Fix ExpiringCache.__len__ to be accurate
It used to try and produce an estimate, which was sometimes negative.
This caused metrics to be sad, so lets always just calculate it from
scratch.

(This appears to have been a longstanding bug, but one which has been made more
of a problem by #3932 and #3933).

(This was originally done by Erik as part of #3933. I'm cherry-picking it
because really it's a fix in its own right)
2018-09-26 12:32:29 +01:00
..
api Implement 'event_format' filter param in /sync 2018-09-04 15:20:09 +01:00
app Fix some instances of ExpiringCache not expiring cache items 2018-09-21 14:19:46 +01:00
appservice Port http/ to Python 3 (#3771) 2018-09-06 00:10:47 +10:00
config Remove some superfluous logging (#3855) 2018-09-13 19:59:32 +10:00
crypto Merge pull request #3826 from matrix-org/rav/logging_for_keyring 2018-09-12 20:43:47 +10:00
events Fix handling of redacted events from federation 2018-09-13 15:44:12 +01:00
federation Fix some instances of ExpiringCache not expiring cache items 2018-09-21 14:19:46 +01:00
groups Fix some looping_call calls which were broken in #3604 2018-07-26 11:48:08 +01:00
handlers Only lazy load self-members on initial sync 2018-09-25 00:49:26 +01:00
http Merge pull request #3925 from matrix-org/erikj/fix_producers_unregistered 2018-09-25 11:52:06 +01:00
metrics Add missing logger 2018-09-20 17:05:34 +01:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push fix link for case that config.email_riot_base_url is set 2018-09-13 22:43:50 +01:00
replication Fix minor typo in exception 2018-09-13 11:51:12 -06:00
rest Merge pull request #3932 from matrix-org/erikj/auto_start_expiring_caches 2018-09-25 12:02:57 +01:00
server_notices Merge branch 'develop' of github.com:matrix-org/synapse into erikj/admin_contact 2018-08-24 17:00:37 +01:00
state Fix some instances of ExpiringCache not expiring cache items 2018-09-21 14:19:46 +01:00
static/client Use recaptcha_ajax.js directly from Google 2018-08-22 14:30:49 +01:00
storage Fix client IPs being broken on Python 3 (#3908) 2018-09-20 20:14:34 +10:00
streams Fix develop because I broke it :( (#3535) 2018-07-14 09:51:00 +10:00
util Fix ExpiringCache.__len__ to be accurate 2018-09-26 12:32:29 +01:00
__init__.py bump version 2018-09-25 02:54:34 +10:00
event_auth.py Check m.room.create for sane room_versions 2018-08-06 16:11:24 +01:00
notifier.py Fixup 2018-09-19 11:19:47 +01:00
python_dependencies.py We require attrs 16.0.0 2018-09-25 10:43:39 +01:00
secrets.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00
server.py use abc.abstractproperty 2018-08-28 17:10:43 +01:00
server.pyi Send users a server notice about consent 2018-05-22 11:54:51 +01:00
types.py Python 3: Convert some unicode/bytes uses (#3569) 2018-08-02 00:54:06 +10:00
visibility.py Merge remote-tracking branch 'origin/develop' into rav/remove_who_forgot_in_room 2018-07-23 17:15:12 +01:00