summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-02-07 17:27:08 +0000
committerRichard van der Hoff <richard@matrix.org>2018-02-09 13:07:41 +0000
commit671540dccf3996620ffe65705904fb911e21fb68 (patch)
tree14ce8ff67f8418c93914b52af739bfda3ba1f7ad /synapse/storage
parentBetter logging when pushes fail (diff)
downloadsynapse-671540dccf3996620ffe65705904fb911e21fb68.tar.xz
rename delete_old_state -> purge_history
(beacause it deletes more than state)
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/events.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py

index 7a9cd3ec90..21533970d1 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py
@@ -2031,16 +2031,16 @@ class EventsStore(SQLBaseStore): ) return self.runInteraction("get_all_new_events", get_all_new_events_txn) - def delete_old_state(self, room_id, topological_ordering): + def purge_history(self, room_id, topological_ordering): + """Deletes room history before a certain point + """ + return self.runInteraction( - "delete_old_state", - self._delete_old_state_txn, room_id, topological_ordering + "purge_history", + self._purge_history_txn, room_id, topological_ordering ) - def _delete_old_state_txn(self, txn, room_id, topological_ordering): - """Deletes old room state - """ - + def _purge_history_txn(self, txn, room_id, topological_ordering): # Tables that should be pruned: # event_auth # event_backward_extremities