summary refs log tree commit diff
path: root/synapse/storage/events_worker.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-07-10 16:12:36 +0100
committerGitHub <noreply@github.com>2018-07-10 16:12:36 +0100
commitc3c29aa19625324ac9a7a8ebcdd58a9c0b457f74 (patch)
tree64f20b25f4cb70c1c046f34db4d77d5e51cead0e /synapse/storage/events_worker.py
parentRefactor logcontext resource usage tracking (#3501) (diff)
downloadsynapse-c3c29aa19625324ac9a7a8ebcdd58a9c0b457f74.tar.xz
Attempt to include db threads in cpu usage stats (#3496)
Let's try to include time spent in the DB threads in the per-request/block cpu
usage metrics.
Diffstat (limited to 'synapse/storage/events_worker.py')
-rw-r--r--synapse/storage/events_worker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/events_worker.py b/synapse/storage/events_worker.py
index fa2659403d..67433606c6 100644
--- a/synapse/storage/events_worker.py
+++ b/synapse/storage/events_worker.py
@@ -261,7 +261,8 @@ class EventsWorkerStore(SQLBaseStore):
                 ]
 
                 rows = self._new_transaction(
-                    conn, "do_fetch", [], [], None, self._fetch_event_rows, event_ids
+                    conn, "do_fetch", [], [],
+                    self._fetch_event_rows, event_ids,
                 )
 
                 row_dict = {