Commit 7d811fd9 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 73e0d679
......@@ -409,13 +409,14 @@ int toku_rollback_insertinleaf (TXNID txnid __attribute__((__unused__)), FILENUM
if (r!=0) return r;
BRTNODE node = node_v;
r = toku_pma_clear_at_index(node->u.l.buffer, pmaidx);
if (r!=0) return r;
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;
VERIFY_COUNTS(node);
//node->log_lsn = c->lsn;
r = toku_cachetable_unpin(cf, diskoff, 1, toku_serialize_brtnode_size(node));
return r;
if (r == 0) {
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;
VERIFY_COUNTS(node);
//node->log_lsn = c->lsn;
}
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