Commit 0bd3a4e6 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Get rid of array overflow in recovery. Addresses #548.

git-svn-id: file:///svn/tokudb@2893 c7de825b-a66e-492c-adef-691d508d4ae1
parent 705a64ce
......@@ -302,7 +302,7 @@ void toku_recover_changechildfingerprint (LSN lsn, FILENUM filenum, DISKOFF disk
assert(r==0);
BRTNODE node = node_v;
assert(node->height>0);
assert((signed)childnum < node->u.n.n_children);
assert((signed)childnum <= node->u.n.n_children); // we allow the childnum to be one too large.
BNC_SUBTREE_FINGERPRINT(node, childnum) = newfingerprint;
node->log_lsn = lsn;
r = toku_cachetable_unpin(pair->cf, diskoff, 1, toku_serialize_brtnode_size(node));
......
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