Skip to content
Permalink
Browse files
remove unneeded code
rec_get_offsets() was previously called in a btr_cur_optimistic_update()
  • Loading branch information
kevgs authored and Sergey Vojtovich committed Mar 29, 2019
1 parent b66164a commit 7693421
Showing 1 changed file with 1 addition and 4 deletions.
@@ -4345,10 +4345,7 @@ btr_cur_pessimistic_update(
}

rec = btr_cur_get_rec(cursor);

*offsets = rec_get_offsets(
rec, index, *offsets, page_is_leaf(page),
ULINT_UNDEFINED, offsets_heap);
ut_ad(rec_offs_validate(rec, index, *offsets));

dtuple_t* new_entry = row_rec_to_index_entry(
rec, index, *offsets, &n_ext, entry_heap);

0 comments on commit 7693421

Please sign in to comment.