From 915163f72f1ce48a4b8c1f18bc4854312336cb4d Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 29 Mar 2021 11:02:10 +0100 Subject: Ignore _JoinedHostsCache as it includes DataStore --- synapse/util/caches/lrucache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1