mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 07:28:55 +03:00
Correctly intern keys in state cache
This commit is contained in:
parent
d24197bead
commit
587d8ac60f
1 changed files with 4 additions and 1 deletions
|
@ -653,7 +653,10 @@ class StateStore(SQLBaseStore):
|
||||||
else:
|
else:
|
||||||
state_dict = results[group]
|
state_dict = results[group]
|
||||||
|
|
||||||
state_dict.update(group_state_dict)
|
state_dict.update({
|
||||||
|
(intern_string(k[0]), intern_string(k[1])): v
|
||||||
|
for k, v in group_state_dict.items()
|
||||||
|
})
|
||||||
|
|
||||||
self._state_group_cache.update(
|
self._state_group_cache.update(
|
||||||
cache_seq_num,
|
cache_seq_num,
|
||||||
|
|
Loading…
Reference in a new issue