diff --git a/cobalt/loader/fetcher_cache.cc b/cobalt/loader/fetcher_cache.cc index 1e6adb5865fd..d797c2757c15 100644 --- a/cobalt/loader/fetcher_cache.cc +++ b/cobalt/loader/fetcher_cache.cc @@ -348,6 +348,9 @@ void FetcherCache::OnFetchSuccess( total_size_ += entry->capacity(); ++count_resources_cached_; + // TODO(b/270993319): For debugging cache integrity issues in production + // only, remove after identifying the root cause. + CHECK_EQ(count_resources_cached_, static_cast(cache_entries_.size())); while (total_size_ > capacity_) { // TODO(b/270993319): For debugging cache integrity issues in production