Skip to content

Commit

Permalink
[postfix] InnoDB Support Sampling Scan
Browse files Browse the repository at this point in the history
some clerical error
  • Loading branch information
fatcat-liu committed Mar 13, 2023
1 parent b5a985c commit 5835f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/btr/btr0sample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void btr_sample_t::open_curor(dict_index_t *index, mtr_t *mtr) {
}

/* Release s-latch as soon as possible */
btr_leaf_page_release(parent->get_block(), BTR_SEARCH_LEAF, mtr);
btr_leaf_page_release(page_cursor->block, BTR_SEARCH_LEAF, mtr);

/* Child page id */
auto node_ptr = page_cur_get_rec(page_cursor);
Expand Down Expand Up @@ -553,7 +553,7 @@ void btr_sample_t::search_to_leaf(const dtuple_t *tuple, page_cur_mode_t mode,
if (height > 0) {
if (need_sampling) {
/* Release parent s-latch as soon as possible if hold index SX lock */
btr_leaf_page_release(parent->get_block(), BTR_SEARCH_LEAF, mtr);
btr_leaf_page_release(page_cursor->block, BTR_SEARCH_LEAF, mtr);
}

n_blocks++;
Expand Down

0 comments on commit 5835f3f

Please sign in to comment.