Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
395
func
(w *worker) pickBucket() []byte {
396
return
bucketName(mrand.Intn(w.conf.bucketCount))
397
}
398
399
func
bucketName(index int) []byte {
400
bucket := fmt.Sprintf(
"%s_%d"
, bucketPrefix, index)
Callers
1
run
Method · 0.95
Calls
1
bucketName
Function · 0.85
Tested by
no test coverage detected