Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Reminiscent committed Aug 3, 2021
1 parent 2be56b6 commit cd76bc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindinfo/stat.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func (h *BindHandle) GetScope(status string) variable.ScopeFlag {

// Stats returns the server statistics.
func (h *BindHandle) Stats(vars *variable.SessionVars) (map[string]interface{}, error) {
h.bindInfo.Lock()
defer func() {
h.bindInfo.Unlock()
}()
m := make(map[string]interface{})
m[lastPlanBindingUpdateTime] = h.bindInfo.lastUpdateTime.String()

Expand Down

0 comments on commit cd76bc2

Please sign in to comment.