Commit 82f37f84 authored by Yoni Fogel's avatar Yoni Fogel

Refs Tokutek/ft-index#159 Calculate klpair size correctly when garbage...

Refs Tokutek/ft-index#159 Calculate klpair size correctly when garbage collection deletes a leafentry
parent 6a8b87a2
......@@ -552,6 +552,7 @@ toku_le_garbage_collect(LEAFENTRY old_leaf_entry,
const xid_omt_t &live_root_txns,
TXNID oldest_referenced_xid_known,
int64_t * numbytes_delta_p) {
paranoid_invariant_notnull(new_leaf_entry);
ULE_S ule;
int64_t oldnumbytes = 0;
int64_t newnumbytes = 0;
......@@ -588,7 +589,7 @@ toku_le_garbage_collect(LEAFENTRY old_leaf_entry,
new_leaf_entry
);
assert(r == 0);
if (new_leaf_entry) {
if (*new_leaf_entry) {
newnumbytes = ule_get_innermost_numbytes(&ule, keylen);
}
*numbytes_delta_p = newnumbytes - oldnumbytes;
......
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