summary refs log tree commit diff
path: root/synapse/storage/events_worker.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-06-22 10:42:28 +0100
committerRichard van der Hoff <richard@matrix.org>2018-06-22 10:42:28 +0100
commit0495fe00350a3610cbfd9b0097ff1a8a1c31f5f4 (patch)
tree850a8d8f3fd58cde309788cdbbe7581d1e9bded7 /synapse/storage/events_worker.py
parentLog number of events fetched from DB (diff)
downloadsynapse-0495fe00350a3610cbfd9b0097ff1a8a1c31f5f4.tar.xz
Indirect evt_count updates via method call
so that we can stub it for the sentinel and not have a billion failing UTs
Diffstat (limited to 'synapse/storage/events_worker.py')
-rw-r--r--synapse/storage/events_worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/events_worker.py b/synapse/storage/events_worker.py
index cf4efa9d12..3a634842ca 100644
--- a/synapse/storage/events_worker.py
+++ b/synapse/storage/events_worker.py
@@ -147,7 +147,7 @@ class EventsWorkerStore(SQLBaseStore):
 
         if missing_events_ids:
             log_ctx = LoggingContext.current_context()
-            log_ctx.evt_db_fetch_count += len(missing_events_ids)
+            log_ctx.record_event_fetch(len(missing_events_ids))
 
             missing_events = yield self._enqueue_events(
                 missing_events_ids,