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

git-svn-id: file:///svn/tokudb@2893 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Bradley C. Kuszmaul 2008-03-17 14:24:01 +00:00
parent 979ae62544
commit 2fc3ca7863

View file

@ -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));