summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-02-21 13:58:55 +0000
committerErik Johnston <erik@matrix.org>2017-02-21 14:01:33 +0000
commita24492c06f48bd76cf86931d42c940428687c311 (patch)
tree0613611651e70c36d4e82fea54c37cbb3da5421a
parentFix up notif rotation (diff)
downloadsynapse-a24492c06f48bd76cf86931d42c940428687c311.tar.xz
Don't limit count
-rw-r--r--synapse/storage/event_push_actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py

index 7537843078..52d2bd3ffb 100644 --- a/synapse/storage/event_push_actions.py +++ b/synapse/storage/event_push_actions.py
@@ -157,11 +157,11 @@ class EventPushActionsStore(SQLBaseStore): # notif=1 sql = ( "SELECT count(*)" - " FROM (SELECT * FROM event_push_actions" + " FROM event_push_actions ea" " WHERE" " user_id = ?" " AND room_id = ?" - " AND %s LIMIT 100) as ea" + " AND %s" ) % (lower_bound(token, self.database_engine, inclusive=False),) txn.execute(sql, (user_id, room_id))