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

Method pickBucket

concurrent_test.go:395–397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393}
394
395func (w *worker) pickBucket() []byte {
396 return bucketName(mrand.Intn(w.conf.bucketCount))
397}
398
399func bucketName(index int) []byte {
400 bucket := fmt.Sprintf("%s_%d", bucketPrefix, index)

Callers 1

runMethod · 0.95

Calls 1

bucketNameFunction · 0.85

Tested by

no test coverage detected