summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-13 16:59:41 +0100
committerErik Johnston <erik@matrix.org>2015-05-13 16:59:41 +0100
commit4071f2965320950c7f1bbdd39105f8c34ca95034 (patch)
tree2fc19964d13772cd142dcd86d8898fe8805a90c1 /synapse/storage/state.py
parentTypo (diff)
downloadsynapse-4071f2965320950c7f1bbdd39105f8c34ca95034.tar.xz
Fetch events from events_id in their own transactions
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r--synapse/storage/state.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py

index a80a947436..483b316e9f 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py
@@ -85,13 +85,13 @@ class StateStore(SQLBaseStore): @defer.inlineCallbacks def c(vals): - vals[:] = yield self.runInteraction( - "_get_state_groups_ev", - self._fetch_events_txn, vals - ) + vals[:] = yield self._fetch_events(vals, get_prev_content=False) yield defer.gatherResults( - [c(vals) for vals in states.values()], + [ + c(vals) + for vals in states.values() + ], consumeErrors=True, )