Check that somethign has happend before running the selects

This commit is contained in:
Mark Haines 2016-04-27 11:54:13 +01:00
parent 71df327190
commit 871357d539
3 changed files with 14 additions and 2 deletions

View file

@ -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,"