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
vitess-bot[bot] authored and vitess-bot committed Aug 21, 2024
1 parent e6e5278 commit 675fcc3
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 @@ -202,7 +202,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()

Check warning on line 205 in go/vt/vtgate/executor.go

View check run for this annotation

Codecov / codecov/patch

go/vt/vtgate/executor.go#L205

Added line #L205 was not covered by tests
})
servenv.HTTPHandle(pathQueryPlans, e)
servenv.HTTPHandle(pathScatterStats, e)
Expand Down

0 comments on commit 675fcc3

Please sign in to comment.