Commit 6df381af authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

refs #5138 add code that will help debug the lzma failure tonight


git-svn-id: file:///svn/toku/tokudb@45070 c7de825b-a66e-492c-adef-691d508d4ae1
parent a60e32e5
...@@ -96,6 +96,9 @@ void toku_compress (enum toku_compression_method a, ...@@ -96,6 +96,9 @@ void toku_compress (enum toku_compression_method a,
source, sourceLen, source, sourceLen,
dest, &out_pos, *destLen); dest, &out_pos, *destLen);
assert(out_pos < *destLen); assert(out_pos < *destLen);
if (r != LZMA_OK) {
fprintf(stderr, "lzma_easy_buffer_encode() returned %d\n", (int) r);
}
assert(r==LZMA_OK); assert(r==LZMA_OK);
*destLen = out_pos; *destLen = out_pos;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment