Merge branch 'develop' of github.com:matrix-org/synapse into store_rearrangement

This commit is contained in:
Erik Johnston 2015-03-20 16:02:47 +00:00
commit 9517f4da4d
3 changed files with 30 additions and 14 deletions

View file

@ -35,7 +35,7 @@ what sort order was used:
from twisted.internet import defer
from ._base import SQLBaseStore
from ._base import SQLBaseStore, cached
from synapse.api.constants import EventTypes
from synapse.api.errors import SynapseError
from synapse.util.logutils import log_function
@ -413,6 +413,7 @@ class StreamStore(SQLBaseStore):
"get_recent_events_for_room", get_recent_events_for_room_txn
)
@cached(num_args=0)
def get_room_events_max_id(self):
return self.runInteraction(
"get_room_events_max_id",