diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2021-10-29 19:43:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 13:43:51 -0400 |
commit | bfd7a9b65c5e092c6a7ccdd46e59a278b1cbbd57 (patch) | |
tree | 1b9a21ddba51bd49fa265fe6d2fef6fa40e66d87 | |
parent | Add a module API method to retrieve state from a room (#11204) (diff) | |
download | synapse-bfd7a9b65c5e092c6a7ccdd46e59a278b1cbbd57.tar.xz |
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.
-rw-r--r-- | changelog.d/11212.bugfix | 1 | ||||
-rw-r--r-- | synapse/storage/databases/main/deviceinbox.py | 2 | ||||
-rw-r--r-- | synapse/storage/schema/main/delta/64/02remove_deleted_devices_from_device_inbox.sql | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/changelog.d/11212.bugfix b/changelog.d/11212.bugfix new file mode 100644 index 0000000000..ba6efab25b --- /dev/null +++ b/changelog.d/11212.bugfix @@ -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. \ No newline at end of file diff --git a/synapse/storage/databases/main/deviceinbox.py b/synapse/storage/databases/main/deviceinbox.py index b0ccab0c9b..d03b5e5a7d 100644 --- a/synapse/storage/databases/main/deviceinbox.py +++ b/synapse/storage/databases/main/deviceinbox.py @@ -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 diff --git a/synapse/storage/schema/main/delta/64/02remove_deleted_devices_from_device_inbox.sql b/synapse/storage/schema/main/delta/64/02remove_deleted_devices_from_device_inbox.sql index efe702f621..fca7290741 100644 --- a/synapse/storage/schema/main/delta/64/02remove_deleted_devices_from_device_inbox.sql +++ b/synapse/storage/schema/main/delta/64/02remove_deleted_devices_from_device_inbox.sql @@ -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 |