diff options
author | Eric Eastwood <eric.eastwood@beta.gouv.fr> | 2024-09-19 03:32:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 09:32:16 +0100 |
commit | faf5b40520345d5e772ddfc71cb3f814a6509a17 (patch) | |
tree | b0f6c5ab686eed841b6ade831c146498c9552578 /scripts-dev/schema_versions.py | |
parent | Sliding sync: Ignore invites from ignored users (#17729) (diff) | |
download | synapse-faf5b40520345d5e772ddfc71cb3f814a6509a17.tar.xz |
Sliding Sync: Fix `_bulk_get_max_event_pos(...)` being inefficient (#17728)
Fix `_bulk_get_max_event_pos(...)` being inefficient. It kept adding all of the `batch_results` to the `results` over and over every time we checked a single room in the batch. I think we still ended up with the right answer before because we accumulate `recheck_rooms` and actually recheck them to overwrite the bad data we wrote to the `results` before. Introduced in https://github.com/element-hq/synapse/pull/17606/files#diff-cbd54e4b5a2a1646299d659a2d5884d6cb14e608efd2e1658e72b465bb66e31bR1481
Diffstat (limited to 'scripts-dev/schema_versions.py')
0 files changed, 0 insertions, 0 deletions