mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:16:07 -04:00
Reindex state_groups_state after pruning
This commit is contained in:
parent
caa22334b3
commit
5beda10bbd
2 changed files with 37 additions and 2 deletions
|
@ -133,10 +133,12 @@ class BackgroundUpdateStore(SQLBaseStore):
|
|||
updates = yield self._simple_select_list(
|
||||
"background_updates",
|
||||
keyvalues=None,
|
||||
retcols=("update_name",),
|
||||
retcols=("update_name", "depends_on"),
|
||||
)
|
||||
in_flight = set(update["update_name"] for update in updates)
|
||||
for update in updates:
|
||||
self._background_update_queue.append(update['update_name'])
|
||||
if update["depends_on"] not in in_flight:
|
||||
self._background_update_queue.append(update['update_name'])
|
||||
|
||||
if not self._background_update_queue:
|
||||
# no work left to do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue