mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
the regression no longer hit the node size assert. closes #676
git-svn-id: file:///svn/tokudb@3465 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
aee780f405
commit
d1f5bdb03f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue