fixed fragmentation bug in cache
authoraidan
Thu, 06 Oct 2011 18:06:34 +0100
changeset 59 e5674a26ce74
parent 58 574358af597b
child 60 64954ed8a0a1
fixed fragmentation bug in cache
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;