summary refs log tree commit diff
path: root/synapse/storage/receipts.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-04-27 13:36:47 +0100
committerMark Haines <mjark@negativecurvature.net>2016-04-27 13:36:47 +0100
commitc7c03bf3030fb0844acca12c3f0b7dfbaaf0479a (patch)
treebf6d999f0d8f00b3c80d3f8a793f4e438b407e30 /synapse/storage/receipts.py
parentActually start the pusher daemon (diff)
parentCheck that somethign has happend before running the selects (diff)
downloadsynapse-c7c03bf3030fb0844acca12c3f0b7dfbaaf0479a.tar.xz
Merge pull request #754 from matrix-org/markjh/check_for_nop
Check that something has happend before running the selects
Diffstat (limited to 'synapse/storage/receipts.py')
-rw-r--r--synapse/storage/receipts.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/receipts.py b/synapse/storage/receipts.py

index 3b8805593e..935fc503d9 100644 --- a/synapse/storage/receipts.py +++ b/synapse/storage/receipts.py
@@ -391,6 +391,9 @@ class ReceiptsStore(SQLBaseStore): ) def get_all_updated_receipts(self, last_id, current_id, limit=None): + if last_id == current_id: + return defer.succeed([]) + def get_all_updated_receipts_txn(txn): sql = ( "SELECT stream_id, room_id, receipt_type, user_id, event_id, data"