From 2f66d9a1c7ace476f089bdd03e26bbd36500a559 Mon Sep 17 00:00:00 2001 From: "Bradley C. Kuszmaul" <bradley@tokutek.com> Date: Wed, 12 Sep 2007 18:19:20 +0000 Subject: [PATCH] Fix the serialize-test: It was doing read then write, instead of write then read git-svn-id: file:///svn/tokudb@298 c7de825b-a66e-492c-adef-691d508d4ae1 --- newbrt/brt-serialize-test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/newbrt/brt-serialize-test.c b/newbrt/brt-serialize-test.c index 0c81312f860..8a32fd022ea 100644 --- a/newbrt/brt-serialize-test.c +++ b/newbrt/brt-serialize-test.c @@ -32,10 +32,9 @@ void test_serialize(void) { r = toku_hash_insert(sn.u.n.htables[1], "x", 2, "xval", 5, BRT_NONE); assert(r==0); sn.u.n.n_bytes_in_hashtables = 3*(BRT_CMD_OVERHEAD+KEY_VALUE_OVERHEAD+2+5); - deserialize_brtnode_from(fd, nodesize*20, &dn, nodesize); - r = serialize_brtnode_to(fd, sn.nodesize*20, sn.nodesize, &sn); assert(r==0); + r = deserialize_brtnode_from(fd, nodesize*20, &dn, nodesize); assert(dn->thisnodename==nodesize*20); assert(dn->height == 1); -- 2.30.9