# HG changeset patch # User aidan # Date 1317920794 -3600 # Node ID e5674a26ce74fd50d0c41928f6ce65fad432ab4a # Parent 574358af597ba090399f76c56768db46515fe7bf fixed fragmentation bug in cache diff -r 574358af597b -r e5674a26ce74 servlib/bundling/BPQCache.cc --- a/servlib/bundling/BPQCache.cc Thu Oct 06 12:15:22 2011 +0100 +++ b/servlib/bundling/BPQCache.cc Thu Oct 06 18:06:34 2011 +0100 @@ -164,6 +164,8 @@ BPQCacheEntry* entry = new BPQCacheEntry(); bundle->copy_metadata(entry->bundle().object()); + entry->bundle()->mutable_payload()->set_length(bundle->orig_length()); + entry->add_response(bundle); bpq_table_[key] = entry;