diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-03-02 11:20:51 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-03-02 11:20:51 +0000 |
commit | 377ae369c1275fabdac46fa00c0b2ba238467435 (patch) | |
tree | 9c016009913fe27ddb6e0f967c24d5dc4476ee2b /synapse/storage/directory.py | |
parent | JOIN state_events rather than parsing unrecognized_keys to pull out member st... (diff) | |
download | synapse-377ae369c1275fabdac46fa00c0b2ba238467435.tar.xz |
Wrap all of get_app_service_rooms in a txn.
Diffstat (limited to 'synapse/storage/directory.py')
-rw-r--r-- | synapse/storage/directory.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/synapse/storage/directory.py b/synapse/storage/directory.py index e391239a3c..68b7d59693 100644 --- a/synapse/storage/directory.py +++ b/synapse/storage/directory.py @@ -134,27 +134,6 @@ class DirectoryStore(SQLBaseStore): return room_id - @defer.inlineCallbacks - def get_all_associations(self): - """Retrieve the entire list of room alias -> room ID pairings. - - Returns: - A list of RoomAliasMappings. - """ - results = yield self._execute_and_decode( - "SELECT room_id, room_alias FROM room_aliases" - ) - - # TODO(kegan): It feels wrong to be specifying no servers here, but - # equally this function isn't required to obtain all servers so - # retrieving them "just for the sake of it" also seems wrong, but we - # want to conform to passing Objects around and not dicts.. - defer.returnValue([ - RoomAliasMapping( - room_id=r["room_id"], room_alias=r["room_alias"], servers="" - ) for r in results - ]) - def get_aliases_for_room(self, room_id): return self._simple_select_onecol( "room_aliases", |