summary refs log tree commit diff
path: root/synapse/storage/database.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-11-17 16:09:56 +0000
committerGitHub <noreply@github.com>2022-11-17 16:09:56 +0000
commite7132c3f81acbc50c1923cad7eeab96d3b2e05fd (patch)
tree74ad65f3da728bbf260f041da6681060c0f8dd31 /synapse/storage/database.py
parentFaster joins: do not wait for full state when creating events to send (#14403) (diff)
downloadsynapse-e7132c3f81acbc50c1923cad7eeab96d3b2e05fd.tar.xz
Fix check to ignore blank lines in incoming TCP replication (#14449)
Diffstat (limited to 'synapse/storage/database.py')
-rw-r--r--synapse/storage/database.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py
index 4717c9728a..0dc44b246c 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -569,15 +569,15 @@ class DatabasePool:
             retcols=["update_name"],
             desc="check_background_updates",
         )
-        updates = [x["update_name"] for x in updates]
+        background_update_names = [x["update_name"] for x in updates]
 
         for table, update_name in UNIQUE_INDEX_BACKGROUND_UPDATES.items():
-            if update_name not in updates:
+            if update_name not in background_update_names:
                 logger.debug("Now safe to upsert in %s", table)
                 self._unsafe_to_upsert_tables.discard(table)
 
         # If there's any updates still running, reschedule to run.
-        if updates:
+        if background_update_names:
             self._clock.call_later(
                 15.0,
                 run_as_background_process,