Fix warnings about losing log context during UI auth. (#7688)
							parent
							
								
									d0a43d431e
								
							
						
					
					
						commit
						2d11ea385c
					
				| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					Fix "Starting db txn 'get_completed_ui_auth_stages' from sentinel context" warning. The bug was introduced in 1.13.0rc1.
 | 
				
			||||||
| 
						 | 
					@ -186,7 +186,7 @@ class UIAuthWorkerStore(SQLBaseStore):
 | 
				
			||||||
        # The clientdict gets stored as JSON.
 | 
					        # The clientdict gets stored as JSON.
 | 
				
			||||||
        clientdict_json = json.dumps(clientdict)
 | 
					        clientdict_json = json.dumps(clientdict)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.db.simple_update_one(
 | 
					        await self.db.simple_update_one(
 | 
				
			||||||
            table="ui_auth_sessions",
 | 
					            table="ui_auth_sessions",
 | 
				
			||||||
            keyvalues={"session_id": session_id},
 | 
					            keyvalues={"session_id": session_id},
 | 
				
			||||||
            updatevalues={"clientdict": clientdict_json},
 | 
					            updatevalues={"clientdict": clientdict_json},
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue