Commit d1f5bdb0 authored by Rich Prohaska's avatar Rich Prohaska

the regression no longer hit the node size assert. closes #676

git-svn-id: file:///svn/tokudb@3465 c7de825b-a66e-492c-adef-691d508d4ae1
parent aee780f4
......@@ -96,10 +96,12 @@ void toku_serialize_brtnode_to (int fd, DISKOFF off, DISKOFF size, BRTNODE node)
//printf("%s:%d serializing\n", __FILE__, __LINE__);
struct wbuf w;
int i;
unsigned int calculated_size = toku_serialize_brtnode_size_slow(node);
unsigned int calculated_size = toku_serialize_brtnode_size(node);
#if 0
if (calculated_size!=toku_serialize_brtnode_size(node)) {
//printf("Sizes don't match: %d %d\n", calculated_size, toku_serialize_brtnode_size(node));
}
#endif
assert(calculated_size<=size);
//char buf[size];
char *MALLOC_N(size,buf);
......
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