Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 2d11ea3

Browse files
authored
Fix warnings about losing log context during UI auth. (#7688)
1 parent d0a43d4 commit 2d11ea3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/7688.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix "Starting db txn 'get_completed_ui_auth_stages' from sentinel context" warning. The bug was introduced in 1.13.0rc1.

synapse/storage/data_stores/main/ui_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async def set_ui_auth_clientdict(
186186
# The clientdict gets stored as JSON.
187187
clientdict_json = json.dumps(clientdict)
188188

189-
self.db.simple_update_one(
189+
await self.db.simple_update_one(
190190
table="ui_auth_sessions",
191191
keyvalues={"session_id": session_id},
192192
updatevalues={"clientdict": clientdict_json},

0 commit comments

Comments
 (0)