diff -r c02ca5a6ab82 -r 1849bf57d910 servlib/bundling/BlockProcessor.cc --- a/servlib/bundling/BlockProcessor.cc Wed May 04 15:44:40 2011 +0100 +++ b/servlib/bundling/BlockProcessor.cc Fri May 27 18:33:25 2011 +0100 @@ -500,6 +500,17 @@ size_t len) { (void)bundle; +///////////////////////////////////////////////////////////////////////// +// test code to be removed +/* + if (offset >= block->contents().len()){ + log_err_p(log, "ERROR: BlockProcessor::produce"); + log_err_p(log, "offset: %d, block->contents().len(): %d", + offset, block->contents().len()); + log_err_p(log, "Block type: %d", block->type()); + } +*/ +///////////////////////////////////////////////////////////////////////// ASSERT(offset < block->contents().len()); ASSERT(block->contents().len() >= offset + len); memcpy(buf, block->contents().buf() + offset, len);