From 85ae22f71bba47fa45586e17fc8441c9c7b765d9 Mon Sep 17 00:00:00 2001 From: "Bradley C. Kuszmaul" Date: Wed, 17 Apr 2013 00:00:11 -0400 Subject: [PATCH] close[t:4559] Remove set but unused variable {{{tree_height}}}. Fixes #4559. git-svn-id: file:///svn/toku/tokudb@40152 c7de825b-a66e-492c-adef-691d508d4ae1 --- newbrt/brt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newbrt/brt.c b/newbrt/brt.c index f9e76aec1a0..644ea5b7ff1 100644 --- a/newbrt/brt.c +++ b/newbrt/brt.c @@ -5403,7 +5403,6 @@ toku_brt_search (BRT brt, brt_search_t *search, BRT_GET_CALLBACK_FUNCTION getf, int r; uint trycount = 0; // How many tries did it take to get the result? //uint root_tries = 0; // How many times did we fetch the root node from disk? - uint tree_height; // How high is the tree? This is the height of the root node plus one (leaf is at height 0). try_again: @@ -5466,7 +5465,8 @@ try_again: toku_brtheader_release_treelock(brt->h); } - tree_height = node->height + 1; // height of tree (leaf is at height 0) + //uint tree_height = node->height + 1; // How high is the tree? This is the height of the root node plus one (leaf is at height 0). + struct unlock_brtnode_extra unlock_extra = {brt,node}; struct unlockers unlockers = {TRUE, unlock_brtnode_fun, (void*)&unlock_extra, (UNLOCKERS)NULL};