diff options
author | Erik Johnston <erikj@element.io> | 2024-06-27 11:04:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 11:04:31 +0100 |
commit | cc5e5893fe800bc3fbb96ed407a9560ee96302b7 (patch) | |
tree | a36bf0a3b6fa260fbb85957125fdb95b4cf7ddde /changelog.d/17362.bugfix | |
parent | Merge branch 'release-v1.110' into develop (diff) | |
download | synapse-cc5e5893fe800bc3fbb96ed407a9560ee96302b7.tar.xz |
Handle multiple rows device inbox (#17362)
Fix bug where we don't get new to-device from remote if they resent a message we've already persisted and have recorded in the DB twice. `device_federation_inbox` table doesn't have a unique index, and so we can race and store an entry in there twice. If we do so then `simple_select_one_txn` will throw an error due to the query returning more than one row. We should add an unique index, but it doesn't really matter so lets just handle the case of multiple rows correctly for now.
Diffstat (limited to 'changelog.d/17362.bugfix')
-rw-r--r-- | changelog.d/17362.bugfix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/17362.bugfix b/changelog.d/17362.bugfix new file mode 100644 index 0000000000..a91ce9fc06 --- /dev/null +++ b/changelog.d/17362.bugfix @@ -0,0 +1 @@ +Fix rare race which causes no new to-device messages to be received from remote server. |