From 836bcaefe0210f6868cd5d808b44e1270583ac0b Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Mon, 9 Sep 2024 19:13:28 -0500 Subject: [PATCH] Fix nothing being upserted --- synapse/storage/databases/main/events_bg_updates.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synapse/storage/databases/main/events_bg_updates.py b/synapse/storage/databases/main/events_bg_updates.py index 06e0b53ca8..f17e0fc3ad 100644 --- a/synapse/storage/databases/main/events_bg_updates.py +++ b/synapse/storage/databases/main/events_bg_updates.py @@ -2655,6 +2655,10 @@ def _resolve_stale_data_in_sliding_sync_joined_rooms_table( # No value columns, therefore make a blank list so that the following # zip() works correctly. value_values=[() for x in range(len(chunk))], + insertion_value_names=(), + # No value columns, therefore make a blank list so that the following + # zip() works correctly. + insertion_value_values=[() for x in range(len(chunk))], ) else: # Avoid adding the background updates when there is no data to run them on (if