MCPcopy Create free account
hub / github.com/BWbwchen/MapReduce / getWorkerNum

Method getWorkerNum

master/master.go:89–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89func (ms *Master) getWorkerNum() (int, int) {
90 ms.mux.Lock()
91 nWorkers := ms.numWorkers
92 tWorkers := ms.totalWorkers
93 ms.mux.Unlock()
94 return nWorkers, tWorkers
95}
96
97func (ms *Master) distributeWork(files []string) {
98 log.Trace("[Master] Start distribute workload")

Callers 1

waitForEnoughWorkerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected