diff options
author | Erik Johnston <erik@matrix.org> | 2020-10-14 15:40:06 +0100 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2020-10-15 09:14:29 -0400 |
commit | 20fa83f3744b25e513fdc904261c87c324bbc87e (patch) | |
tree | ce00c2daed354ad70fa87b5281314e97cab8a954 | |
parent | 1.21.1 (diff) | |
download | synapse-20fa83f3744b25e513fdc904261c87c324bbc87e.tar.xz |
Remove racey assertion in MultiWriterIDGenerator (#8530)
We asserted that the IDs returned by postgres sequence was greater than any we had seen, however this is technically racey as we may update the current positions out of order. We now assert that the sequences are correct on startup, so the assertion is no longer really required, so we remove them.
-rw-r--r-- | changelog.d/8530.bugfix | 1 | ||||
-rw-r--r-- | synapse/storage/util/id_generators.py | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/changelog.d/8530.bugfix b/changelog.d/8530.bugfix new file mode 100644 |