diff options
author | Erik Johnston <erik@matrix.org> | 2018-09-13 16:10:56 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-09-13 16:10:56 +0100 |
commit | ed5331a6272280efd4fc98ae425711acec8c6be5 (patch) | |
tree | 6ec38005a628ea8a089410aba92e3fe35964cbbd /synapse | |
parent | pep8 (diff) | |
download | synapse-ed5331a6272280efd4fc98ae425711acec8c6be5.tar.xz |
comment
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/events.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index bc1c18023b..e7487311ce 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -1916,6 +1916,8 @@ class EventsStore(EventFederationStore, EventsWorkerStore, BackgroundUpdateStore should_delete_params = () if not delete_local_events: should_delete_expr += " AND event_id NOT LIKE ?" + + # We include the parameter twice since we use the expression twice should_delete_params += ( "%:" + self.hs.hostname, "%:" + self.hs.hostname, |