mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Copy results
This commit is contained in:
parent
cd31201267
commit
c9b27d0044
@ -525,9 +525,11 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
|
|||||||
(last_event_id, batch_size),
|
(last_event_id, batch_size),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
results = list(txn)
|
||||||
|
|
||||||
nbrows = 0
|
nbrows = 0
|
||||||
last_row_event_id = ""
|
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)
|
event_json = json.loads(event_json_raw)
|
||||||
|
|
||||||
self._simple_insert_many_txn(
|
self._simple_insert_many_txn(
|
||||||
|
Loading…
Reference in New Issue
Block a user