This commit is contained in:
Erik Johnston 2017-06-07 11:08:36 +01:00
parent 09e4bc0501
commit 6ba21bf2b8
2 changed files with 15 additions and 0 deletions

View file

@ -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,