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

Function runningBlockKeys

modules/backendscheduler/work/work.go:834–844  ·  view source on GitHub ↗

runningBlockKeys returns pendingBlockKey strings for every block referenced by j.

(j *Job)

Source from the content-addressed store, hash-verified

832
833// runningBlockKeys returns pendingBlockKey strings for every block referenced by j.
834func runningBlockKeys(j *Job) []string {
835 tenant := j.Tenant()
836 var keys []string
837 for _, bid := range j.GetCompactionInput() {
838 keys = append(keys, pendingBlockKey(tenant, bid))
839 }
840 if bid := j.GetRedactionBlockID(); bid != "" {
841 keys = append(keys, pendingBlockKey(tenant, bid))
842 }
843 return keys
844}
845
846func (w *Work) removePendingBlockIndex(j *Job) {
847 key := j.PendingBlockKey()

Callers 5

RegisterJobMethod · 0.85
CompleteJobMethod · 0.85
FailJobMethod · 0.85
UnmarshalMethod · 0.85
rebuildPendingIndexesMethod · 0.85

Calls 4

pendingBlockKeyFunction · 0.85
TenantMethod · 0.80
GetCompactionInputMethod · 0.80
GetRedactionBlockIDMethod · 0.80

Tested by

no test coverage detected