diff options
author | Erik Johnston <erik@matrix.org> | 2021-03-29 11:02:10 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-03-29 11:02:10 +0100 |
commit | 915163f72f1ce48a4b8c1f18bc4854312336cb4d (patch) | |
tree | 931b77f2cb2054f63d863a6281db52dbbe6f893c | |
parent | Fix (diff) | |
download | synapse-915163f72f1ce48a4b8c1f18bc4854312336cb4d.tar.xz |
Ignore _JoinedHostsCache as it includes DataStore
-rw-r--r-- | synapse/util/caches/lrucache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/lrucache.py b/synapse/util/caches/lrucache.py index 176011faad..2bdadfa40c 100644 --- a/synapse/util/caches/lrucache.py +++ b/synapse/util/caches/lrucache.py @@ -67,7 +67,7 @@ class _Node: self.value = value self.callbacks = callbacks - if asizeof: + if asizeof and not value.__class__.endswith("_JoinedHostsCache"): self.memory = asizeof.asizeof(key) + asizeof.asizeof(value) else: self.memory = 0 |