mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-29 19:06:12 -05:00
Comment
This commit is contained in:
parent
c98e1479bd
commit
b92e7955be
@ -1325,6 +1325,9 @@ class EventsStore(SQLBaseStore):
|
|||||||
max_depth = max(row[0] for row in rows)
|
max_depth = max(row[0] for row in rows)
|
||||||
|
|
||||||
if max_depth <= topological_ordering:
|
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(
|
raise SynapseError(
|
||||||
400, "topological_ordering is greater than forward extremeties"
|
400, "topological_ordering is greater than forward extremeties"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user