diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-04-27 13:36:47 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-04-27 13:36:47 +0100 |
commit | c7c03bf3030fb0844acca12c3f0b7dfbaaf0479a (patch) | |
tree | bf6d999f0d8f00b3c80d3f8a793f4e438b407e30 /synapse/storage/pusher.py | |
parent | Actually start the pusher daemon (diff) | |
parent | Check that somethign has happend before running the selects (diff) | |
download | synapse-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/pusher.py')
-rw-r--r-- | synapse/storage/pusher.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/pusher.py b/synapse/storage/pusher.py index e5755c0aea..11feb3eb11 100644 --- a/synapse/storage/pusher.py +++ b/synapse/storage/pusher.py @@ -106,6 +106,9 @@ class PusherStore(SQLBaseStore): return self._pushers_id_gen.get_current_token() def get_all_updated_pushers(self, last_id, current_id, limit): + if last_id == current_id: + return defer.succeed(([], [])) + def get_all_updated_pushers_txn(txn): sql = ( "SELECT id, user_name, access_token, profile_tag, kind," |