diff options
author | Mathieu Velten <matmaul@gmail.com> | 2025-01-06 16:32:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 15:32:18 +0000 |
commit | b3ba501c526bf15240bb8cc635858d05cd702c2c (patch) | |
tree | 5233f71b9a02ca7d47340e01396e8b00230c8628 /synapse/util/stringutils.py | |
parent | Refactor get_profile: do not return missing fields. (#18063) (diff) | |
download | synapse-b3ba501c526bf15240bb8cc635858d05cd702c2c.tar.xz |
Properly purge state groups tables when purging a room (#18024)
Currently purging a complex room can lead to a lot of orphaned rows left behind in the state groups tables. It seems it is because we are loosing track of state groups sometimes. This change uses the `room_id` indexed column of `state_groups` table to decide what to delete instead of doing an indirection through `event_to_state_groups`. Related to https://github.com/element-hq/synapse/issues/3364. ### Pull Request Checklist * [x] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). * [x] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters)) --------- Co-authored-by: Erik Johnston <erikj@jki.re>
Diffstat (limited to 'synapse/util/stringutils.py')
0 files changed, 0 insertions, 0 deletions