Skip to content

Commit 70c6722

Browse files
committed
Instance name may be null
1 parent 1267888 commit 70c6722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/storage/databases/main/events.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,7 @@ def _update_current_state_txn(
18611861
VALUES (
18621862
?, ?, ?, ?, ?,
18631863
(SELECT stream_ordering FROM events WHERE event_id = ?),
1864-
(SELECT instance_name FROM events WHERE event_id = ?)
1864+
(SELECT COALESCE(instance_name, 'master') FROM events WHERE event_id = ?)
18651865
{("," + ", ".join("?" for _ in sliding_sync_snapshot_values)) if sliding_sync_snapshot_values else ""}
18661866
)
18671867
ON CONFLICT (room_id, user_id)

0 commit comments

Comments
 (0)