Copy results

This commit is contained in:
Brendan Abolivier 2019-11-07 16:47:45 +00:00
parent cd31201267
commit c9b27d0044
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD

View File

@ -525,9 +525,11 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
(last_event_id, batch_size),
)
results = list(txn)
nbrows = 0
last_row_event_id = ""
for (event_id, event_json_raw) in txn:
for (event_id, event_json_raw) in results:
event_json = json.loads(event_json_raw)
self._simple_insert_many_txn(