MCPcopy Create free account
hub / github.com/couchbase/cbft / getWorkerCount

Function getWorkerCount

pindex_copy_request.go:438–444  ·  view source on GitHub ↗
(itemCount int)

Source from the content-addressed store, hash-verified

436}
437
438func getWorkerCount(itemCount int) int {
439 ncpu := runtime.NumCPU()
440 if itemCount < ncpu {
441 return itemCount
442 }
443 return ncpu
444}

Callers 2

getNodesHostingPIndexFunction · 0.85
getSupervisorMapsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected