MCPcopy
hub / github.com/rclone/rclone / updateMinFill

Method updateMinFill

lib/pool/pool.go:200–204  ·  view source on GitHub ↗

Make sure minFill is correct - call with mu held

()

Source from the content-addressed store, hash-verified

198
199// Make sure minFill is correct - call with mu held
200func (bp *Pool) updateMinFill() {
201 if len(bp.cache) < bp.minFill {
202 bp.minFill = len(bp.cache)
203 }
204}
205
206// acquire mem bytes of memory for the user
207func (bp *Pool) acquire(mem int64) error {

Callers 3

GetNMethod · 0.95
PutMethod · 0.95
PutNMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected