| 1251 | |
| 1252 | |
| 1253 | void FetcherProcess::Cache::claimSpace(const Bytes& bytes) |
| 1254 | { |
| 1255 | tally += bytes; |
| 1256 | |
| 1257 | if (tally > space) { |
| 1258 | // Used cache volume space exceeds the maximum amount set by |
| 1259 | // flags.fetcher_cache_size. This may be tolerated temporarily, |
| 1260 | // if there is sufficient physical space available. But it can |
| 1261 | // otherwise cause unspecified system behavior at any moment. |
| 1262 | LOG(WARNING) << "Fetcher cache space overflow - space used: " << tally |
| 1263 | << ", exceeds total fetcher cache space: " << space; |
| 1264 | } |
| 1265 | |
| 1266 | VLOG(1) << "Claimed cache space: " << bytes << ", now using: " << tally; |
| 1267 | } |
| 1268 | |
| 1269 | |
| 1270 | void FetcherProcess::Cache::releaseSpace(const Bytes& bytes) |