diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-06-13 14:06:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 14:06:27 -0400 |
commit | 53b77b203ac12f20a6534393464588d5d49435f5 (patch) | |
tree | 111900451238c7a7e0f05d863fbd349633c9f32d /synapse/storage/background_updates.py | |
parent | Merge branch 'rav/simplify_event_auth_interface' into develop (diff) | |
download | synapse-53b77b203ac12f20a6534393464588d5d49435f5.tar.xz |
Replace noop background updates with DELETE. (#12954)
Removes the `register_noop_background_update` and deletes the background updates directly in a delta file.
Diffstat (limited to 'synapse/storage/background_updates.py')
-rw-r--r-- | synapse/storage/background_updates.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/synapse/storage/background_updates.py b/synapse/storage/background_updates.py index b1e5208c76..555b4e77d2 100644 --- a/synapse/storage/background_updates.py +++ b/synapse/storage/background_updates.py @@ -507,25 +507,6 @@ class BackgroundUpdater: update_handler ) - def register_noop_background_update(self, update_name: str) -> None: - """Register a noop handler for a background update. - - This is useful when we previously did a background update, but no - longer wish to do the update. In this case the background update should - be removed from the schema delta files, but there may still be some - users who have the background update queued, so this method should - also be called to clear the update. - - Args: - update_name: Name of update - """ - - async def noop_update(progress: JsonDict, batch_size: int) -> int: - await self._end_background_update(update_name) - return 1 - - self.register_background_update_handler(update_name, noop_update) - def register_background_index_update( self, update_name: str, |