summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-06-16 18:50:46 +0100
committerGitHub <noreply@github.com>2022-06-16 17:50:46 +0000
commit8ceed5e6b5449f81408236d7789eb1e5e21a1b4b (patch)
tree995fedce4d74e8e4a4b4fd07a2c47f344a2045f3
parentAdd a Subject Alternative Name to the certificate generated for Complement te... (diff)
downloadsynapse-8ceed5e6b5449f81408236d7789eb1e5e21a1b4b.tar.xz
Add desc to `get_earliest_token_for_stats` (#13085)
-rw-r--r--changelog.d/13085.misc1
-rw-r--r--synapse/storage/databases/main/stats.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/13085.misc b/changelog.d/13085.misc
new file mode 100644
index 0000000000..2401d4f388
--- /dev/null
+++ b/changelog.d/13085.misc
@@ -0,0 +1 @@
+Correctly report prometheus DB stats for `get_earliest_token_for_stats`.
diff --git a/synapse/storage/databases/main/stats.py b/synapse/storage/databases/main/stats.py
index 538451b05f..82851ffa95 100644
--- a/synapse/storage/databases/main/stats.py
+++ b/synapse/storage/databases/main/stats.py
@@ -295,6 +295,7 @@ class StatsStore(StateDeltasStore):
             keyvalues={id_col: id},
             retcol="completed_delta_stream_id",
             allow_none=True,
+            desc="get_earliest_token_for_stats",
         )
 
     async def bulk_update_stats_delta(