diff options
author | Erik Johnston <erik@matrix.org> | 2018-07-25 09:35:02 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-07-25 09:35:02 +0100 |
commit | ec56121b0d099824a1455260e05904f081b6d14a (patch) | |
tree | 2190b4f5d5e1766d058623aa1347c466f5e1b9a3 | |
parent | Merge pull request #3597 from matrix-org/erikj/did_forget (diff) | |
download | synapse-ec56121b0d099824a1455260e05904f081b6d14a.tar.xz |
Correctly handle outliers during persist events
We incorrectly asserted that all contexts must have a non None state group without consider outliers. This would usually be fine as the assertion would never be hit, as there is a shortcut during persistence if the forward extremities don't change. However, if the outlier is being persisted with non-outlier events, the function would be called and the assertion would be hit. Fixes #3601
-rw-r--r-- | synapse/storage/events.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py |