diff options
author | Erik Johnston <erik@matrix.org> | 2020-07-17 17:03:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 17:03:27 +0100 |
commit | 2d2acc1cf2f2c8caa1272a14658b28ede23b664f (patch) | |
tree | 93caef0f60f679ae6b969c3d0c9768f3720090d3 /synapse/replication/slave/storage/deviceinbox.py | |
parent | Fix TypeError in synapse.notifier (#7880) (diff) | |
download | synapse-2d2acc1cf2f2c8caa1272a14658b28ede23b664f.tar.xz |
Stop using 'device_max_stream_id' (#7882)
It serves no purpose and updating everytime we write to the device inbox stream means all such transactions will conflict, causing lots of transaction failures and retries.
Diffstat (limited to 'synapse/replication/slave/storage/deviceinbox.py')
-rw-r--r-- | synapse/replication/slave/storage/deviceinbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/slave/storage/deviceinbox.py b/synapse/replication/slave/storage/deviceinbox.py index bd394f6b00..a8a16dbc71 100644 --- a/synapse/replication/slave/storage/deviceinbox.py +++ b/synapse/replication/slave/storage/deviceinbox.py @@ -26,7 +26,7 @@ class SlavedDeviceInboxStore(DeviceInboxWorkerStore, BaseSlavedStore): def __init__(self, database: Database, db_conn, hs): super(SlavedDeviceInboxStore, self).__init__(database, db_conn, hs) self._device_inbox_id_gen = SlavedIdTracker( - db_conn, "device_max_stream_id", "stream_id" + db_conn, "device_inbox", "stream_id" ) self._device_inbox_stream_cache = StreamChangeCache( "DeviceInboxStreamChangeCache", |