diff options
author | Erik Johnston <erik@matrix.org> | 2021-10-27 14:45:40 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-10-27 14:45:40 +0100 |
commit | 179dc8ae9e15c38e282a2077fc5941b685fc6177 (patch) | |
tree | f5ad574dc229cd1d77e4ac06e221e13305a92004 /synapse/storage/databases | |
parent | Implement an `on_new_event` callback (#11126) (diff) | |
parent | Update release date (diff) | |
download | synapse-179dc8ae9e15c38e282a2077fc5941b685fc6177.tar.xz |
Merge remote-tracking branch 'origin/release-v1.46' into develop
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r-- | synapse/storage/databases/main/events_bg_updates.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/events_bg_updates.py b/synapse/storage/databases/main/events_bg_updates.py index f92d824876..ae3a8a63e4 100644 --- a/synapse/storage/databases/main/events_bg_updates.py +++ b/synapse/storage/databases/main/events_bg_updates.py @@ -1108,7 +1108,7 @@ class EventsBackgroundUpdatesStore(SQLBaseStore): """ SELECT event_id, json FROM event_json LEFT JOIN event_relations USING (event_id) - WHERE event_id > ? AND relates_to_id IS NULL + WHERE event_id > ? AND event_relations.event_id IS NULL ORDER BY event_id LIMIT ? """, (last_event_id, batch_size), |