diff options
author | Erik Johnston <erik@matrix.org> | 2017-06-07 11:08:36 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-06-07 11:08:36 +0100 |
commit | 6ba21bf2b8207e714d0d523379727bcf2c14684d (patch) | |
tree | a2f2d57ae54e6bbaa2ba4c4ead907497982fd5c5 /synapse/storage/state.py | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/state_fixup (diff) | |
download | synapse-6ba21bf2b8207e714d0d523379727bcf2c14684d.tar.xz |
Comments
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r-- | synapse/storage/state.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index 01474ff5ff..c3eecbe824 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -99,6 +99,12 @@ class StateStore(SQLBaseStore): ) def get_state_group_delta(self, state_group): + """Given a state group try to return a previous group and a delta between + the old and the new. + + Returns: + (prev_group, delta_ids), where both may be None. + """ def _get_state_group_delta_txn(txn): prev_group = self._simple_select_one_onecol_txn( txn, |