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
|
where
|
||||||
W: BackendProtoWriter + ProtoFlush + Send,
|
W: BackendProtoWriter + ProtoFlush + Send,
|
||||||
{
|
{
|
||||||
|
// Make sure token is reset before next query
|
||||||
|
token.reset();
|
||||||
|
|
||||||
let operation = {
|
let operation = {
|
||||||
let state = state.read().await;
|
let state = state.read().await;
|
||||||
let db_schema = state.db_schema();
|
let db_schema = state.db_schema();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue