diff options
author | Erik Johnston <erik@matrix.org> | 2016-07-07 11:42:15 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-07-07 11:42:15 +0100 |
commit | b92e7955be10209fdd13cdb799b1ac55c981d086 (patch) | |
tree | 9c46c887f687a01f44ccae03be3fea75c079ea85 /synapse/storage | |
parent | Return 400 rather than 500 (diff) | |
download | synapse-b92e7955be10209fdd13cdb799b1ac55c981d086.tar.xz |
Comment
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/events.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index c2136f3fd1..b582942164 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -1325,6 +1325,9 @@ class EventsStore(SQLBaseStore): max_depth = max(row[0] for row in rows) if max_depth <= topological_ordering: + # We need to ensure we don't delete all the events from the datanase + # otherwise we wouldn't be able to send any events (due to not + # having any backwards extremeties) raise SynapseError( 400, "topological_ordering is greater than forward extremeties" ) |