Commit 1f48102c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3619 fix the brt-serialize-test to init its data structs refs[t:3619]

git-svn-id: file:///svn/toku/tokudb@32308 c7de825b-a66e-492c-adef-691d508d4ae1
parent 72689d50
......@@ -87,6 +87,7 @@ test_serialize_leaf_with_large_pivots(void) {
// assert(val_size > BN_MAX_SIZE); // BN_MAX_SIZE isn't visible
int fd = open(__FILE__ ".brt", O_RDWR|O_CREAT|O_BINARY, S_IRWXU|S_IRWXG|S_IRWXO); assert(fd >= 0);
memset(&sn, 0, sizeof sn);
sn.nodesize = 4*(1<<20);
sn.flags = 0x11223344;
sn.thisnodename.b = 20;
......@@ -209,6 +210,7 @@ test_serialize_leaf_with_many_rows(void) {
// assert(val_size > BN_MAX_SIZE); // BN_MAX_SIZE isn't visible
int fd = open(__FILE__ ".brt", O_RDWR|O_CREAT|O_BINARY, S_IRWXU|S_IRWXG|S_IRWXO); assert(fd >= 0);
memset(&sn, 0, sizeof sn);
sn.nodesize = 4*(1<<20);
sn.flags = 0x11223344;
sn.thisnodename.b = 20;
......@@ -325,6 +327,7 @@ test_serialize_leaf_with_large_rows(void) {
// assert(val_size > BN_MAX_SIZE); // BN_MAX_SIZE isn't visible
int fd = open(__FILE__ ".brt", O_RDWR|O_CREAT|O_BINARY, S_IRWXU|S_IRWXG|S_IRWXO); assert(fd >= 0);
memset(&sn, 0, sizeof sn);
sn.nodesize = 4*(1<<20);
sn.flags = 0x11223344;
sn.thisnodename.b = 20;
......@@ -447,6 +450,7 @@ test_serialize_leaf_with_empty_basement_nodes(void) {
int r;
memset(&sn, 0, sizeof sn);
sn.nodesize = nodesize;
sn.flags = 0x11223344;
sn.thisnodename.b = 20;
......@@ -574,6 +578,7 @@ test_serialize_leaf(void) {
int r;
memset(&sn, 0, sizeof sn);
sn.nodesize = nodesize;
sn.flags = 0x11223344;
sn.thisnodename.b = 20;
......@@ -700,6 +705,7 @@ test_serialize_nonleaf(void) {
int r;
// source_brt.fd=fd;
memset(&sn, 0, sizeof sn);
char *hello_string;
sn.max_msn_applied_to_node = (MSN) {TESTMSNVAL};
sn.nodesize = nodesize;
......
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