MDEV-22901 Accessing btr_search_sys->hash_tables when buffer pool resize happens

btr_search_build_page_hash_index(): Reduce the scope of the variable 'i'
parent 29a5829c
......@@ -1348,7 +1348,6 @@ btr_search_build_page_hash_index(
ulint n_recs;
ulint* folds;
const rec_t** recs;
ulint i;
mem_heap_t* heap = NULL;
rec_offs offsets_[REC_OFFS_NORMAL_SIZE];
rec_offs* offsets = offsets_;
......@@ -1514,7 +1513,7 @@ btr_search_build_page_hash_index(
{
hash_table_t* table = btr_get_search_table(index);
for (i = 0; i < n_cached; i++) {
for (ulint i = 0; i < n_cached; i++) {
ha_insert_for_fold(table, folds[i], block, recs[i]);
}
}
......
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