summaryrefslogtreecommitdiff
path: root/synapse/storage
diff options
context:
space:
mode:
authorAndrej Shadura <andrewsh@debian.org>2020-10-15 20:02:02 +0200
committerAndrej Shadura <andrewsh@debian.org>2020-10-15 20:02:02 +0200
commit547115d704df226061a23b0d97154d484f707e5c (patch)
tree8aafa09d76635694d6356e66a657e267f9b765c5 /synapse/storage
parented5fbaf60ada9ec07f23eb2e4d4f48213ee79438 (diff)
New upstream version 1.21.2
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/util/id_generators.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/synapse/storage/util/id_generators.py b/synapse/storage/util/id_generators.py
index ad017207..eccd2d5b 100644
--- a/synapse/storage/util/id_generators.py
+++ b/synapse/storage/util/id_generators.py
@@ -612,14 +612,7 @@ class _MultiWriterCtxManager:
db_autocommit=True,
)
- # Assert the fetched ID is actually greater than any ID we've already
- # seen. If not, then the sequence and table have got out of sync
- # somehow.
with self.id_gen._lock:
- assert max(self.id_gen._current_positions.values(), default=0) < min(
- self.stream_ids
- )
-
self.id_gen._unfinished_ids.update(self.stream_ids)
if self.multiple_ids is None: