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

Make {{{brtnode_size()}}} more accurate. Fixes #669.

git-svn-id: file:///svn/tokudb@3334 c7de825b-a66e-492c-adef-691d508d4ae1
parent ee3df503
...@@ -83,13 +83,7 @@ void toku_brtnode_free (BRTNODE *nodep) { ...@@ -83,13 +83,7 @@ void toku_brtnode_free (BRTNODE *nodep) {
} }
static long brtnode_size(BRTNODE node) { static long brtnode_size(BRTNODE node) {
long size; return toku_serialize_brtnode_size(node);
assert(node->tag == TYP_BRTNODE);
if (node->height > 0)
size = node->u.n.n_bytes_in_buffers;
else
size = node->u.l.n_bytes_in_buffer;
return size;
} }
static void toku_update_brtnode_loggerlsn(BRTNODE node, TOKULOGGER logger) { static void toku_update_brtnode_loggerlsn(BRTNODE node, TOKULOGGER logger) {
......
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