MDEV-16232 Use fewer mini-transactions

- Fail to change the latch operation in row_search_mvcc.
parent cee15cea
......@@ -4828,7 +4828,8 @@ row_search_mvcc(
}
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 @@ row_search_mvcc(
}
} 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) {
......
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