MCPcopy
hub / github.com/prometheus/prometheus / length

Method length

tsdb/chunks/queue.go:136–141  ·  view source on GitHub ↗

length returns number of all jobs in the queue.

()

Source from the content-addressed store, hash-verified

134
135// length returns number of all jobs in the queue.
136func (q *writeJobQueue) length() int {
137 q.mtx.Lock()
138 defer q.mtx.Unlock()
139
140 return q.size
141}

Callers 1

Calls 1

LockMethod · 0.80

Tested by 1