MCPcopy
hub / github.com/grafana/tempo / deleteEdge

Method deleteEdge

modules/generator/processor/servicegraphs/store/store.go:91–96  ·  view source on GitHub ↗

deleteEdge removes an edge from the map/list and returns it to the pool. Must be called holding lock.

(ele *list.Element)

Source from the content-addressed store, hash-verified

89// deleteEdge removes an edge from the map/list and returns it to the pool.
90// Must be called holding lock.
91func (s *store) deleteEdge(ele *list.Element) {
92 edge := ele.Value.(*Edge)
93 delete(s.m, edge.key)
94 s.l.Remove(ele)
95 s.returnEdge(edge)
96}
97
98// UpsertEdge fetches an Edge from the store and updates it using the given callback. If the Edge
99// doesn't exist yet, it creates a new one with the default TTL.

Callers 3

tryEvictHeadMethod · 0.95
UpsertEdgeMethod · 0.95
AddDroppedSpanSideMethod · 0.95

Calls 2

returnEdgeMethod · 0.95
RemoveMethod · 0.80

Tested by

no test coverage detected