MCPcopy
hub / github.com/etcd-io/bbolt / bucketName

Function bucketName

concurrent_test.go:399–402  ·  view source on GitHub ↗
(index int)

Source from the content-addressed store, hash-verified

397}
398
399func bucketName(index int) []byte {
400 bucket := fmt.Sprintf("%s_%d", bucketPrefix, index)
401 return []byte(bucket)
402}
403
404func (w *worker) pickKey() []byte {
405 key := fmt.Sprintf("%s_%d", keyPrefix, mrand.Intn(w.conf.keyCount))

Callers 2

concurrentReadAndWriteFunction · 0.85
pickBucketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected