Commit 5e12aca5 authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.2 into 10.3

parents f0be95b5 5b6bcb59
......@@ -692,7 +692,7 @@ btr_search_update_hash_ref(
dict_index_t* index = block->index;
if (!index) {
if (!index || !info->n_hash_potential) {
return;
}
......@@ -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)) {
......
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