Commit f64b16c9 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Oops. Addresses #917.

git-svn-id: file:///svn/tokudb@4545 c7de825b-a66e-492c-adef-691d508d4ae1
parent dee149d3
......@@ -103,7 +103,7 @@ void toku_serialize_brtnode_to (int fd, DISKOFF off, BRTNODE node) {
#endif
//assert(calculated_size<=size);
//char buf[size];
size_t n_to_write = node->ever_been_written ? w.ndone : node->nodesize;
size_t n_to_write = node->ever_been_written ? calculated_size : node->nodesize;
char *MALLOC_N(n_to_write, buf);
//toku_verify_counts(node);
//assert(size>0);
......
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