This commit is contained in:
Erik Johnston committed 2016-07-07 11:42:15 +01:00
1 parent c98e1479bd
commit b92e7955be
1 file changed
+3
+3
View File
@@ -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"
)