Commit d68e94a5 authored by Rich Prohaska's avatar Rich Prohaska

fix the extra node ref. address #431

git-svn-id: file:///svn/tokudb@2416 c7de825b-a66e-492c-adef-691d508d4ae1
parent c6aade3b
...@@ -409,13 +409,14 @@ int toku_rollback_insertinleaf (TXNID txnid __attribute__((__unused__)), FILENUM ...@@ -409,13 +409,14 @@ int toku_rollback_insertinleaf (TXNID txnid __attribute__((__unused__)), FILENUM
if (r!=0) return r; if (r!=0) return r;
BRTNODE node = node_v; BRTNODE node = node_v;
r = toku_pma_clear_at_index(node->u.l.buffer, pmaidx); r = toku_pma_clear_at_index(node->u.l.buffer, pmaidx);
if (r!=0) return r; if (r == 0) {
node->local_fingerprint -= node->rand4fingerprint*toku_calccrc32_kvpair(key.data, key.len, data.data, data.len); node->local_fingerprint -= node->rand4fingerprint*toku_calccrc32_kvpair(key.data, key.len, data.data, data.len);
node->u.l.n_bytes_in_buffer -= PMA_ITEM_OVERHEAD + KEY_VALUE_OVERHEAD + key.len + data.len; node->u.l.n_bytes_in_buffer -= PMA_ITEM_OVERHEAD + KEY_VALUE_OVERHEAD + key.len + data.len;
VERIFY_COUNTS(node); VERIFY_COUNTS(node);
//node->log_lsn = c->lsn; //node->log_lsn = c->lsn;
r = toku_cachetable_unpin(cf, diskoff, 1, toku_serialize_brtnode_size(node)); }
return r; int r2 = toku_cachetable_unpin(cf, diskoff, 1, toku_serialize_brtnode_size(node));
return r == 0 ? r2 : r;
} }
......
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