Commit 9494eef8 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3710 enable full hash verification only if SLOW is defined closes[t:3710]

git-svn-id: file:///svn/toku/tokudb@32763 c7de825b-a66e-492c-adef-691d508d4ae1
parent 44062af0
...@@ -250,7 +250,9 @@ static u_int32_t compute_child_fullhash (CACHEFILE cf, BRTNODE node, int childnu ...@@ -250,7 +250,9 @@ static u_int32_t compute_child_fullhash (CACHEFILE cf, BRTNODE node, int childnu
switch (BP_HAVE_FULLHASH(node, childnum)) { switch (BP_HAVE_FULLHASH(node, childnum)) {
case TRUE: case TRUE:
{ {
#ifdef SLOW
assert(BP_FULLHASH(node, childnum)==toku_cachetable_hash(cf, BP_BLOCKNUM(node, childnum))); assert(BP_FULLHASH(node, childnum)==toku_cachetable_hash(cf, BP_BLOCKNUM(node, childnum)));
#endif
return BP_FULLHASH(node, childnum); return BP_FULLHASH(node, childnum);
} }
case FALSE: case FALSE:
......
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