summaryrefslogtreecommitdiff
path: root/storage/innobase/rem/rem0rec.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-11-16 09:43:48 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-11-16 09:43:48 +0200
commit89ec4b53ac4c7568b9c9765fff50d9bec7cf3534 (patch)
treef1d62effdb84f1407a465b82799dff3e2bd69484 /storage/innobase/rem/rem0rec.cc
parent6b2d6a81d463f64472715126e69d90aa54811873 (diff)
downloadmariadb-git-89ec4b53ac4c7568b9c9765fff50d9bec7cf3534.tar.gz
MDEV-29603: Implement btr_cur_t::open_leaf()
btr_cur_t::open_leaf(): Replaces btr_cur_open_at_index_side() for most calls, except dict_stats_analyze_index(), which is the only place where we need to open a page at the non-leaf level. Use btr_block_get() for better error handling. Also, use the enumeration type btr_latch_mode wherever possible. Reviewed by: Vladislav Lesin
Diffstat (limited to 'storage/innobase/rem/rem0rec.cc')
-rw-r--r--storage/innobase/rem/rem0rec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/rem/rem0rec.cc b/storage/innobase/rem/rem0rec.cc
index 9948f2e4d68..da6447c390e 100644
--- a/storage/innobase/rem/rem0rec.cc
+++ b/storage/innobase/rem/rem0rec.cc
@@ -611,7 +611,7 @@ rec_init_offsets(
ulint i = 0;
rec_offs offs;
- /* This assertion was relaxed for the btr_cur_open_at_index_side()
+ /* This assertion was relaxed for the btr_cur_t::open_leaf()
call in btr_cur_instant_init_low(). We cannot invoke
index->is_instant(), because the same assertion would fail there
until btr_cur_instant_init_low() has invoked
@@ -839,7 +839,7 @@ rec_get_offsets_func(
bool alter_metadata = false;
ut_ad(index->n_core_fields >= n_core);
- /* This assertion was relaxed for the btr_cur_open_at_index_side()
+ /* This assertion was relaxed for the btr_cur_t::open_leaf()
call in btr_cur_instant_init_low(). We cannot invoke
index->is_instant(), because the same assertion would fail there
until btr_cur_instant_init_low() has invoked