mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:26:06 -04:00
Track the max_stream_device_id in a separate table, since we delete from the inbox table
This commit is contained in:
parent
303b6f29f0
commit
6a6cbfcf1e
4 changed files with 37 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue