mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-22 02:05:24 +00: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