Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,9 @@ func (h *Handler) doQuery(

sqlCtx.GetLogger().Tracef("beginning execution")

oCtx := ctx

// TODO: it would be nice to put this logic in the engine, not the handler, but we don't want the process to be
// marked done until we're done spooling rows over the wire
ctx, err = sqlCtx.ProcessList.BeginQuery(sqlCtx, query)
sqlCtx, err = sqlCtx.ProcessList.BeginQuery(sqlCtx, query)
defer func() {
if err != nil && ctx != nil {
sqlCtx.ProcessList.EndQuery(sqlCtx)
Expand Down Expand Up @@ -455,9 +453,6 @@ func (h *Handler) doQuery(
return remainder, err
}

// errGroup context is now canceled
ctx = oCtx

if err = setConnStatusFlags(sqlCtx, c); err != nil {
return remainder, err
}
Expand Down