Commit 94b7c07d authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

refs #5710 fix typos! oops


git-svn-id: file:///svn/toku/tokudb@50560 c7de825b-a66e-492c-adef-691d508d4ae1
parent 42fe33bc
......@@ -529,7 +529,7 @@ int toku_serialize_ftnode_to_memory (FTNODE node,
bool do_rebalancing,
bool in_parallel,
/*out*/ size_t *n_bytes_to_write,
/*out*/ size_t *n_uncompresed_bytes,
/*out*/ size_t *n_uncompressed_bytes,
/*out*/ char **bytes_to_write);
int toku_serialize_ftnode_to(int fd, BLOCKNUM, FTNODE node, FTNODE_DISK_DATA* ndd, bool do_rebalancing, FT h, bool for_checkpoint);
int toku_serialize_rollback_log_to (int fd, ROLLBACK_LOG_NODE log, SERIALIZED_ROLLBACK_LOG_NODE serialized_log, bool is_serialized,
......
......@@ -762,7 +762,7 @@ toku_serialize_ftnode_to_memory (FTNODE node,
bool do_rebalancing,
bool in_parallel, // for loader is true, for toku_ftnode_flush_callback, is false
/*out*/ size_t *n_bytes_to_write,
/*out*/ size_t *n_uncompresed_bytes,
/*out*/ size_t *n_uncompressed_bytes,
/*out*/ char **bytes_to_write)
{
toku_assert_entire_node_in_memory(node);
......@@ -807,10 +807,10 @@ toku_serialize_ftnode_to_memory (FTNODE node,
// size of header + disk size of the n+1 sub_block's created above
uint32_t total_node_size = (serialize_node_header_size(node) // uncompressed header
+ sb_node_info.compressed_size // compressed nodeinfo (without its checksum)
+ 4); // nodinefo's checksum
+ 4); // nodeinfo's checksum
uint32_t total_uncompressed_size = (serialize_node_header_size(node) // uncompressed header
+ sb_node_info.uncompressed_size // uncompressed nodeinfo (without its checksum)
+ 4); // nodinefo's checksum
+ 4); // nodeinfo's checksum
// store the BP_SIZESs
for (int i = 0; i < node->n_children; i++) {
uint32_t len = sb[i].compressed_size + 4; // data and checksum
......@@ -848,7 +848,7 @@ toku_serialize_ftnode_to_memory (FTNODE node,
assert(curr_ptr - data == total_node_size);
*bytes_to_write = data;
*n_bytes_to_write = total_node_size;
*n_uncompresed_bytes = total_uncompressed_size;
*n_uncompressed_bytes = total_uncompressed_size;
//
// now that node has been serialized, go through sub_block's and free
......
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