Commit 168e12c7 authored by Yoni Fogel's avatar Yoni Fogel

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

Refs Tokutek/ft-index#159 Calculate klpair size correctly when message application deletes a leafentry
parent 30bf78b3
......@@ -464,6 +464,7 @@ toku_le_apply_msg(FT_MSG msg,
GC_INFO gc_info,
LEAFENTRY *new_leafentry_p,
int64_t * numbytes_delta_p) { // change in total size of key and val, not including any overhead
paranoid_invariant_notnull(new_leafentry_p);
ULE_S ule;
int64_t oldnumbytes = 0;
int64_t newnumbytes = 0;
......@@ -496,7 +497,7 @@ toku_le_apply_msg(FT_MSG msg,
new_leafentry_p
);
invariant_zero(rval);
if (new_leafentry_p) {
if (*new_leafentry_p) {
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