Merge branch 'cancellation' into 'main'
Fix cancellation before next query See merge request x433485/minisql!20
This commit is contained in:
commit
a184657d41
1 changed files with 3 additions and 0 deletions
|
|
@ -167,6 +167,9 @@ async fn handle_query<W>(writer: &mut W, state: &SharedDbState, query: String, t
|
|||
where
|
||||
W: BackendProtoWriter + ProtoFlush + Send,
|
||||
{
|
||||
// Make sure token is reset before next query
|
||||
token.reset();
|
||||
|
||||
let operation = {
|
||||
let state = state.read().await;
|
||||
let db_schema = state.db_schema();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue