summary refs log tree commit diff
path: root/synapse/storage/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-20 15:59:18 +0000
committerErik Johnston <erik@matrix.org>2015-03-20 15:59:18 +0000
commitdc0c989ef43ecfe3b4159e0cf16c50a7f38c1f20 (patch)
tree1ca0cdc43de15f154d3049af20b276398168d311 /synapse/storage/room.py
parentStart removing Tables (diff)
downloadsynapse-dc0c989ef43ecfe3b4159e0cf16c50a7f38c1f20.tar.xz
Give sensible names for '_simple_...' transactions
Diffstat (limited to 'synapse/storage/room.py')
-rw-r--r--synapse/storage/room.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py
index a16d321925..be3e28c2ea 100644
--- a/synapse/storage/room.py
+++ b/synapse/storage/room.py
@@ -52,7 +52,8 @@ class RoomStore(SQLBaseStore):
                     "room_id": room_id,
                     "creator": room_creator_user_id,
                     "is_public": is_public,
-                }
+                },
+                desc="store_room",
             )
         except Exception as e:
             logger.error("store_room with room_id=%s failed: %s", room_id, e)
@@ -70,6 +71,7 @@ class RoomStore(SQLBaseStore):
             table=RoomsTable.table_name,
             keyvalues={"room_id": room_id},
             retcols=RoomsTable.fields,
+            desc="get_room",
         )
 
     @defer.inlineCallbacks
@@ -144,7 +146,7 @@ class RoomStore(SQLBaseStore):
                     "event_id": event.event_id,
                     "room_id": event.room_id,
                     "topic": event.content["topic"],
-                }
+                },
             )
 
     def _store_room_name_txn(self, txn, event):