Skip to content

Commit

Permalink
Fix query plan cache misses metric (#16562)
Browse files Browse the repository at this point in the history
Signed-off-by: shanth96 <[email protected]>
  • Loading branch information
shanth96 authored Aug 21, 2024
1 parent 1a0e704 commit 538dd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func NewExecutor(
return e.plans.Metrics.Hits()
})
stats.NewCounterFunc("QueryPlanCacheMisses", "Query plan cache misses", func() int64 {
return e.plans.Metrics.Hits()
return e.plans.Metrics.Misses()
})
servenv.HTTPHandle(pathQueryPlans, e)
servenv.HTTPHandle(pathScatterStats, e)
Expand Down

0 comments on commit 538dd4c

Please sign in to comment.