summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2023-01-06 17:14:23 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2023-01-06 17:14:23 +0530
commit78ee4b8f1482f9e230e93d1513b6d50104847a6b (patch)
tree9bd74893d663be1e6a5f2f69db8bda8b8c425672
parentcee15cea33c8016e411fc0aeb789637343aedcde (diff)
downloadmariadb-git-10.11-MDEV-16232.tar.gz
MDEV-16232 Use fewer mini-transactions10.11-MDEV-16232
- Fail to change the latch operation in row_search_mvcc.
-rw-r--r--storage/innobase/row/row0sel.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/innobase/row/row0sel.cc b/storage/innobase/row/row0sel.cc
index 22da2ba8260..f0366026c9c 100644
--- a/storage/innobase/row/row0sel.cc
+++ b/storage/innobase/row/row0sel.cc
@@ -4828,7 +4828,8 @@ wait_table_again:
}
err = btr_pcur_open_with_no_init(search_tuple, mode,
- BTR_SEARCH_LEAF, pcur, mtr);
+ batch_latch_mode,
+ pcur, mtr);
if (err != DB_SUCCESS) {
page_corrupted:
@@ -4874,7 +4875,7 @@ page_corrupted:
}
} else if (mode == PAGE_CUR_G || mode == PAGE_CUR_L) {
err = pcur->open_leaf(mode == PAGE_CUR_G, index,
- BTR_SEARCH_LEAF, mtr);
+ batch_latch_mode, mtr);
if (err != DB_SUCCESS) {
if (err == DB_DECRYPTION_FAILED) {