diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-20 15:59:18 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-20 15:59:18 +0000 |
commit | dc0c989ef43ecfe3b4159e0cf16c50a7f38c1f20 (patch) | |
tree | 1ca0cdc43de15f154d3049af20b276398168d311 /synapse/storage/directory.py | |
parent | Start removing Tables (diff) | |
download | synapse-dc0c989ef43ecfe3b4159e0cf16c50a7f38c1f20.tar.xz |
Give sensible names for '_simple_...' transactions
Diffstat (limited to 'synapse/storage/directory.py')
-rw-r--r-- | synapse/storage/directory.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/storage/directory.py b/synapse/storage/directory.py index 68b7d59693..6672752fe0 100644 --- a/synapse/storage/directory.py +++ b/synapse/storage/directory.py @@ -48,6 +48,7 @@ class DirectoryStore(SQLBaseStore): {"room_alias": room_alias.to_string()}, "room_id", allow_none=True, + desc="get_association_from_room_alias", ) if not room_id: @@ -58,6 +59,7 @@ class DirectoryStore(SQLBaseStore): "room_alias_servers", {"room_alias": room_alias.to_string()}, "server", + desc="get_association_from_room_alias", ) if not servers: @@ -87,6 +89,7 @@ class DirectoryStore(SQLBaseStore): "room_alias": room_alias.to_string(), "room_id": room_id, }, + desc="create_room_alias_association", ) except sqlite3.IntegrityError: raise SynapseError( @@ -100,7 +103,8 @@ class DirectoryStore(SQLBaseStore): { "room_alias": room_alias.to_string(), "server": server, - } + }, + desc="create_room_alias_association", ) def delete_room_alias(self, room_alias): @@ -139,4 +143,5 @@ class DirectoryStore(SQLBaseStore): "room_aliases", {"room_id": room_id}, "room_alias", + desc="get_aliases_for_room", ) |