| 1292 | |
| 1293 | |
| 1294 | Bytes 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 | |
| 1306 | void FetcherProcess::Cache::Entry::complete() |