Fetch events from events_id in their own transactions

This commit is contained in:
Erik Johnston 2015-05-13 16:59:41 +01:00
parent a988361aea
commit 4071f29653
3 changed files with 168 additions and 18 deletions

View file

@ -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,
)