From 53b77b203ac12f20a6534393464588d5d49435f5 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Mon, 13 Jun 2022 14:06:27 -0400 Subject: Replace noop background updates with DELETE. (#12954) Removes the `register_noop_background_update` and deletes the background updates directly in a delta file. --- synapse/storage/databases/main/devices.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'synapse/storage/databases/main/devices.py') diff --git a/synapse/storage/databases/main/devices.py b/synapse/storage/databases/main/devices.py index 71e7863dd8..2414a7dc38 100644 --- a/synapse/storage/databases/main/devices.py +++ b/synapse/storage/databases/main/devices.py @@ -1240,15 +1240,6 @@ class DeviceBackgroundUpdateStore(SQLBaseStore): self._remove_duplicate_outbound_pokes, ) - # a pair of background updates that were added during the 1.14 release cycle, - # but replaced with 58/06dlols_unique_idx.py - self.db_pool.updates.register_noop_background_update( - "device_lists_outbound_last_success_unique_idx", - ) - self.db_pool.updates.register_noop_background_update( - "drop_device_lists_outbound_last_success_non_unique_idx", - ) - async def _drop_device_list_streams_non_unique_indexes( self, progress: JsonDict, batch_size: int ) -> int: -- cgit 1.5.1