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

@ -23,7 +23,7 @@ class SlavedDeviceInboxStore(BaseSlavedStore):
def __init__(self, db_conn, hs):
super(SlavedDeviceInboxStore, self).__init__(db_conn, hs)
self._device_inbox_id_gen = SlavedIdTracker(
db_conn, "device_inbox", "stream_id",
db_conn, "device_max_stream_id", "stream_id",
)
self._device_inbox_stream_cache = StreamChangeCache(
"DeviceInboxStreamChangeCache",