Fix comments referencing v1.46.0 from PR #10969. (#11212)

#10969 was merged after 1.46.0rc1 was cut and will be included
in v1.47.0rc1 instead.
code_spécifique_watcha
Dirk Klimpel 3 years ago committed by GitHub
parent ad4eab9862
commit bfd7a9b65c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/11212.bugfix
  2. 2
      synapse/storage/databases/main/deviceinbox.py
  3. 2
      synapse/storage/schema/main/delta/64/02remove_deleted_devices_from_device_inbox.sql

@ -0,0 +1 @@
Fix a long-standing bug where messages in the `device_inbox` table for deleted devices would persist indefinitely. Contributed by @dklimpel and @JohannesKleine.

@ -594,7 +594,7 @@ class DeviceInboxBackgroundUpdateStore(SQLBaseStore):
) -> int:
"""A background update that deletes all device_inboxes for deleted devices.
This should only need to be run once (when users upgrade to v1.46.0)
This should only need to be run once (when users upgrade to v1.47.0)
Args:
progress: JsonDict used to store progress of this background update

@ -15,7 +15,7 @@
-- Remove messages from the device_inbox table which were orphaned
-- when a device was deleted using Synapse earlier than 1.46.0.
-- when a device was deleted using Synapse earlier than 1.47.0.
-- This runs as background task, but may take a bit to finish.
INSERT INTO background_updates (ordering, update_name, progress_json) VALUES

Loading…
Cancel
Save