File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
pkg/util/metric/aggmetric Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,8 @@ func (sm *SQLMetric) getChildByLabelConfig(
268268) (ChildMetric , bool ) {
269269 var childMetric ChildMetric
270270 switch sm .labelConfig .Load () {
271+ case uint64 (metric .LabelConfigDisabled ):
272+ return nil , false
271273 case uint64 (metric .LabelConfigDB ):
272274 childMetric = sm .getOrAddChild (f , db )
273275 return childMetric , true
Original file line number Diff line number Diff line change @@ -294,6 +294,11 @@ func (sh *SQLHistogram) GetMetadata() metric.Metadata {
294294
295295// Inspect is part of the metric.Iterable interface.
296296func (sh * SQLHistogram ) Inspect (f func (interface {})) {
297+ func () {
298+ sh .ticker .Lock ()
299+ defer sh .ticker .Unlock ()
300+ tick .MaybeTick (& sh .ticker )
301+ }()
297302 f (sh )
298303}
299304
You can’t perform that action at this time.
0 commit comments