forked from MirrorHub/synapse
When pruning, delete from device_lists_outbound_last_success
This commit is contained in:
parent
1a81a1898e
commit
64ed74c01e
1 changed files with 8 additions and 0 deletions
|
@ -681,6 +681,14 @@ class DeviceStore(SQLBaseStore):
|
|||
)
|
||||
)
|
||||
|
||||
# Since we've deleted unsent deltas, we need to remove the entry
|
||||
# of last successful sent so that the prev_ids are correctly set.
|
||||
sql = """
|
||||
DELETE FROM device_lists_outbound_last_success
|
||||
WHERE destination = ? AND user_id = ?
|
||||
"""
|
||||
txn.executemany(sql, ((row[0], row[1]) for row in rows))
|
||||
|
||||
logger.info("Pruned %d device list outbound pokes", txn.rowcount)
|
||||
|
||||
return self.runInteraction(
|
||||
|
|
Loading…
Reference in a new issue