Skip to content

Commit

Permalink
Instance name may be null
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Aug 30, 2024
1 parent 1267888 commit 70c6722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ def _update_current_state_txn(
VALUES (
?, ?, ?, ?, ?,
(SELECT stream_ordering FROM events WHERE event_id = ?),
(SELECT instance_name FROM events WHERE event_id = ?)
(SELECT COALESCE(instance_name, 'master') FROM events WHERE event_id = ?)
{("," + ", ".join("?" for _ in sliding_sync_snapshot_values)) if sliding_sync_snapshot_values else ""}
)
ON CONFLICT (room_id, user_id)
Expand Down

0 comments on commit 70c6722

Please sign in to comment.