diff options
author | Erik Johnston <erik@matrix.org> | 2018-09-21 16:25:42 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-09-26 12:32:29 +0100 |
commit | 3baf6e1667f0c257f288a28bd542a93c2445fd30 (patch) | |
tree | bf80d69f8e99f5a7c15fc75cfadf34c24df28d05 /synapse/util/logutils.py | |
parent | Merge pull request #3911 from matrix-org/jcgruenhage/docker-support-python3 (diff) | |
download | synapse-3baf6e1667f0c257f288a28bd542a93c2445fd30.tar.xz |
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)
Diffstat (limited to 'synapse/util/logutils.py')
0 files changed, 0 insertions, 0 deletions