MCPcopy
hub / github.com/netdata/netdata / ResetMaterialized

Method ResetMaterialized

src/go/plugin/framework/chartengine/engine.go:99–108  ·  view source on GitHub ↗

ResetMaterialized clears only materialized chart/dimension lifecycle state. It preserves the loaded program and other planner runtime state.

()

Source from the content-addressed store, hash-verified

97//
98// It preserves the loaded program and other planner runtime state.
99func (e *Engine) ResetMaterialized() {
100 if e == nil {
101 return
102 }
103 e.mu.Lock()
104 e.state.materialized = newMaterializedState()
105 e.state.engineEpoch++
106 e.state.outstanding = 0
107 e.mu.Unlock()
108}
109
110// program returns the latest compiled immutable program snapshot.
111func (e *Engine) program() *program.Program {

Calls 3

newMaterializedStateFunction · 0.85
LockMethod · 0.80
UnlockMethod · 0.80