Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
wshwsh12 committed May 29, 2023
1 parent a768a12 commit 274a5ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sessionctx/stmtctx/stmtctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,9 @@ func (sc *StatementContext) ClearRuntimeInfo() {
sc.mu.Lock()
defer sc.mu.Unlock()
sc.mu.allExecDetails = nil
sc.RuntimeStatsColl = nil
if sc.RuntimeStatsColl != nil {
sc.RuntimeStatsColl = execdetails.NewRuntimeStatsColl(sc.RuntimeStatsColl)
}
}

// CopTasksDetails collects some useful information of cop-tasks during execution.
Expand Down

0 comments on commit 274a5ab

Please sign in to comment.