Commit 466fcd51 authored by Rich Prohaska's avatar Rich Prohaska

reset the seq inserts counter when a node splits

git-svn-id: file:///svn/tokudb@4823 c7de825b-a66e-492c-adef-691d508d4ae1
parent b4b04b4e
......@@ -426,9 +426,10 @@ static int brtleaf_split (TOKULOGGER logger, FILENUM filenum, BRT t, BRTNODE nod
u_int32_t n_leafentries = toku_omt_size(node->u.l.buffer);
u_int32_t break_at = 0;
if (node->u.l.seqinsert >= n_leafentries/2) {
break_at = n_leafentries - 1;
unsigned int seqinsert = node->u.l.seqinsert;
node->u.l.seqinsert = 0;
if (seqinsert >= n_leafentries/2) {
break_at = n_leafentries - 1;
// fetch the max from the node and delete it
OMTVALUE v;
......
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