diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py index 5591079cae..3bcfcaaeae 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py @@ -399,6 +399,7 @@ class StatsStore(StateDeltasStore): SELECT COUNT(*) FROM room_stats_current WHERE completed_delta_stream_id IS NULL """ + txn.execute(sql) progress["remaining"] = txn.fetchone()[0] return rooms_to_work_on