Commit 39498bb3 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4141], use toku_compress_bound in sub_block.c

git-svn-id: file:///svn/toku/tokudb@37242 c7de825b-a66e-492c-adef-691d508d4ae1
parent 9e8bb75f
......@@ -39,7 +39,7 @@ sub_block_header_size(int n_sub_blocks) {
void
set_compressed_size_bound(struct sub_block *se) {
se->compressed_size_bound = compressBound(se->uncompressed_size);
se->compressed_size_bound = toku_compress_bound(toku_compress_method, se->uncompressed_size);
}
// get the sum of the sub block compressed sizes
......@@ -47,7 +47,7 @@ size_t
get_sum_compressed_size_bound(int n_sub_blocks, struct sub_block sub_block[]) {
size_t compressed_size_bound = 0;
for (int i = 0; i < n_sub_blocks; i++) {
sub_block[i].compressed_size_bound = compressBound(sub_block[i].uncompressed_size);
sub_block[i].compressed_size_bound = toku_compress_bound(toku_compress_method, sub_block[i].uncompressed_size);
compressed_size_bound += sub_block[i].compressed_size_bound;
}
return compressed_size_bound;
......
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