MatrixSynapse/synapse/storage/data_stores/main
Richard van der Hoff daa1ac89a0
Fix device list update stream ids going backward (#7158)
Occasionally we could get a federation device list update transaction which
looked like:

```
[
    {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D2', 'prev_id': [], 'stream_id': 12, 'deleted': True}},
    {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D1', 'prev_id': [12], 'stream_id': 11, 'deleted': True}},
    {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D3', 'prev_id': [11], 'stream_id': 13, 'deleted': True}}
]
```

Having `stream_ids` which are lower than `prev_ids` looks odd. It might work
(I'm not actually sure), but in any case it doesn't seem like a reasonable
thing to expect other implementations to support.
2020-04-03 10:40:22 +01:00
..
schema
__init__.py
account_data.py
appservice.py
cache.py Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
client_ips.py
deviceinbox.py Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
devices.py Fix device list update stream ids going backward (#7158) 2020-04-03 10:40:22 +01:00
directory.py Transfer alias mappings when joining an upgraded room (#6946) 2020-03-30 17:53:25 +01:00
e2e_room_keys.py Ensure is_verified on /_matrix/client/r0/room_keys/keys is a boolean (#7150) 2020-03-27 13:30:22 +00:00
end_to_end_keys.py
event_federation.py
event_push_actions.py
events.py Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
events_bg_updates.py
events_worker.py Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
filtering.py
group_server.py
keys.py
media_repository.py Fix use of async/await in media code (#7184) 2020-03-31 09:33:02 -04:00
monthly_active_users.py
openid.py
presence.py
profile.py
push_rule.py Fill in the 'default' field for user-defined push rules (#6639) 2020-03-31 15:08:56 +01:00
pusher.py
receipts.py
registration.py
rejections.py
relations.py
room.py Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
roommember.py
search.py
signatures.py
state.py
state_deltas.py
stats.py
stream.py
tags.py
transactions.py
user_directory.py
user_erasure_store.py