diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-11-16 09:43:48 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-11-16 09:43:48 +0200 |
commit | 89ec4b53ac4c7568b9c9765fff50d9bec7cf3534 (patch) | |
tree | f1d62effdb84f1407a465b82799dff3e2bd69484 /storage/innobase/include/row0ins.h | |
parent | 6b2d6a81d463f64472715126e69d90aa54811873 (diff) | |
download | mariadb-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/include/row0ins.h')
-rw-r--r-- | storage/innobase/include/row0ins.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/include/row0ins.h b/storage/innobase/include/row0ins.h index a1b2de73ed2..1f8af6030d1 100644 --- a/storage/innobase/include/row0ins.h +++ b/storage/innobase/include/row0ins.h @@ -1,7 +1,7 @@ /***************************************************************************** Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved. -Copyright (c) 2017, 2021, MariaDB Corporation. +Copyright (c) 2017, 2022, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -78,7 +78,7 @@ dberr_t row_ins_clust_index_entry_low( /*==========================*/ ulint flags, /*!< in: undo logging and locking flags */ - ulint mode, /*!< in: BTR_MODIFY_LEAF or BTR_MODIFY_TREE, + btr_latch_mode mode, /*!< in: BTR_MODIFY_LEAF or BTR_MODIFY_TREE, depending on whether we wish optimistic or pessimistic descent down the index tree */ dict_index_t* index, /*!< in: clustered index */ @@ -100,7 +100,7 @@ dberr_t row_ins_sec_index_entry_low( /*========================*/ ulint flags, /*!< in: undo logging and locking flags */ - ulint mode, /*!< in: BTR_MODIFY_LEAF or BTR_INSERT_TREE, + btr_latch_mode mode, /*!< in: BTR_MODIFY_LEAF or BTR_INSERT_TREE, depending on whether we wish optimistic or pessimistic descent down the index tree */ dict_index_t* index, /*!< in: secondary index */ |