--- a/servlib/bundling/BPQCache.cc Tue Jan 10 17:50:20 2012 +0000
+++ b/servlib/bundling/BPQCache.cc Wed Jan 11 17:25:15 2012 +0000
@@ -188,9 +188,9 @@
bool
BPQCache::create_cache_entry(Bundle* bundle, BPQBlock* block, std::string key)
{
- if (cache_size_ < bundle->payload().length()) {
- log_warn("bundle too large to add to cache {cache size: %u, bundle size: %u}",
- cache_size_, bundle->payload().length());
+ if (max_cache_size_ < bundle->payload().length()) {
+ log_warn("bundle too large to add to cache {max cache size: %u, bundle size: %u}",
+ max_cache_size_, bundle->payload().length());
return false;
}
@@ -264,9 +264,9 @@
{
ASSERT( bundle->is_fragment() );
- if (cache_size_ < bundle->payload().length()) {
- log_warn("bundle too large to add to cache {cache size: %u, bundle size: %u}",
- cache_size_, bundle->payload().length());
+ if (max_cache_size_ < bundle->payload().length()) {
+ log_warn("bundle too large to add to cache {max cache size: %u, bundle size: %u}",
+ max_cache_size_, bundle->payload().length());
return false;
}