MCPcopy Create free account
hub / github.com/apache/mesos / availableSpace

Method availableSpace

src/slave/containerizer/fetcher.cpp:1294–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292
1293
1294Bytes FetcherProcess::Cache::availableSpace() const
1295{
1296 if (tally > space) {
1297 LOG(WARNING) << "Fetcher cache space overflow - space used: " << tally
1298 << ", exceeds total fetcher cache space: " << space;
1299 return 0;
1300 }
1301
1302 return space - tally;
1303}
1304
1305
1306void FetcherProcess::Cache::Entry::complete()

Callers 1

availableCacheSpaceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected