Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyfhust committed Mar 21, 2024
1 parent d1596e4 commit 8e0d4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/distsql/select_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ func (r *selectResult) Close() error {
}
}
}
if r.stats != nil {
if r.stats != nil && r.ctx != nil {
defer func() {
if ci, ok := r.resp.(copr.CopInfo); ok {
r.stats.buildTaskDuration = ci.GetBuildTaskElapsed()
Expand Down

0 comments on commit 8e0d4cc

Please sign in to comment.