--- a/servlib/bundling/BPQBlock.cc Thu Aug 18 15:21:09 2011 +0100
+++ b/servlib/bundling/BPQBlock.cc Thu Aug 18 16:18:35 2011 +0100
@@ -173,6 +173,35 @@
{
ASSERT ( b != NULL);
+ BlockInfo* block = b;
+
+ log_debug_p(LOG, "block: data_length() = %d", block->data_length());
+ log_debug_p(LOG, "block: data_offset() = %d", block->data_offset());
+ log_debug_p(LOG, "block: full_length() = %d", block->full_length());
+ log_debug_p(LOG, "block: complete() = %s",
+ (block->complete()) ? "true" : "false" );
+
+ log_debug_p(LOG, "block: reloaded() = %s",
+ (block->reloaded()) ? "true" : "false" );
+
+
+ if ( b->source() != NULL ) {
+ BlockInfo* block_src = const_cast<BlockInfo*>(b->source());;
+
+ log_debug_p(LOG, "block_src: data_length() = %d", block_src->data_length());
+ log_debug_p(LOG, "block_src: data_offset() = %d", block_src->data_offset());
+ log_debug_p(LOG, "block_src: full_length() = %d", block_src->full_length());
+ log_debug_p(LOG, "block_src: complete() = %s",
+ (block_src->complete()) ? "true" : "false" );
+
+ log_debug_p(LOG, "block_src: reloaded() = %s",
+ (block_src->reloaded()) ? "true" : "false" );
+ }
+
+/*
+
+
+
BlockInfo* block = NULL;
if ( b->source() != NULL ) {
@@ -182,11 +211,11 @@
log_debug_p(LOG, "BPQBlock::initialise: b->source() == NULL");
block = b;
}
-
+*/
int decoding_len=0;
u_int i=0, j=0, offset=0, len=0, flen=0, num_frags=0;
u_char* buf = 0;
-
+ /*
/////////////////////////////////////////////////////
ASSERT ( block != NULL );
// ASSERT ( block->data() != NULL );
@@ -202,7 +231,7 @@
log_debug_p(LOG, "BPQBlock::initialise: reloaded() = %s",
(block->reloaded()) ? "true" : "false" );
////////////////////////////////////////////////////
-
+*/
log_debug_p(LOG, "BPQBlock::initialise: extracting offset");
offset = block->data_offset();
log_debug_p(LOG, "BPQBlock::initialise: extracting full len");