Track the max_stream_device_id in a separate table, since we delete from the inbox table

This commit is contained in:
Mark Haines 2016-09-09 11:48:23 +01:00
parent 303b6f29f0
commit 6a6cbfcf1e
4 changed files with 37 additions and 4 deletions

View file

@ -111,7 +111,7 @@ class DataStore(RoomMemberStore, RoomStore,
db_conn, "presence_stream", "stream_id"
)
self._device_inbox_id_gen = StreamIdGenerator(
db_conn, "device_inbox", "stream_id"
db_conn, "device_max_stream_id", "stream_id"
)
self._transaction_id_gen = IdGenerator(db_conn, "sent_transactions", "id")