Skip to content

Commit

Permalink
Merge 10.2 into 10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed May 18, 2020
2 parents f0be95b + 5b6bcb5 commit 5e12aca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions storage/innobase/btr/btr0sea.cc
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ btr_search_update_hash_ref(

dict_index_t* index = block->index;

if (!index) {
if (!index || !info->n_hash_potential) {
return;
}

Expand All @@ -701,8 +701,9 @@ btr_search_update_hash_ref(
ut_ad(!dict_index_is_ibuf(index));
rw_lock_t* const latch = btr_get_search_latch(index);
rw_lock_x_lock(latch);
ut_ad(!block->index || block->index == index);

if ((info->n_hash_potential > 0)
if (block->index
&& (block->curr_n_fields == info->n_fields)
&& (block->curr_n_bytes == info->n_bytes)
&& (block->curr_left_side == info->left_side)) {
Expand Down

0 comments on commit 5e12aca

Please sign in to comment.