Skip to content

Commit b0266b6

Browse files
committed
Use mtr_memo_contains_flagged() instead of mtr_memo_contains().
This was originally part of MDEV-11487.
1 parent 63152a5 commit b0266b6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

storage/innobase/btr/btr0pcur.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ btr_pcur_store_position(
127127
ut_ad((mtr_memo_contains_flagged(
128128
mtr, dict_index_get_lock(index),
129129
MTR_MEMO_X_LOCK | MTR_MEMO_SX_LOCK)
130-
|| mtr_memo_contains(mtr, block, MTR_MEMO_PAGE_S_FIX)
131-
|| mtr_memo_contains(mtr, block, MTR_MEMO_PAGE_X_FIX))
130+
|| mtr_memo_contains_flagged(mtr, block,
131+
MTR_MEMO_PAGE_S_FIX
132+
| MTR_MEMO_PAGE_X_FIX))
132133
&& (block->page.buf_fix_count > 0));
133134
} else {
134-
ut_ad(mtr_memo_contains(mtr, block, MTR_MEMO_PAGE_S_FIX)
135-
|| mtr_memo_contains(mtr, block, MTR_MEMO_PAGE_X_FIX)
135+
ut_ad(mtr_memo_contains_flagged(mtr, block,
136+
MTR_MEMO_PAGE_S_FIX
137+
| MTR_MEMO_PAGE_X_FIX)
136138
|| dict_table_is_intrinsic(index->table));
137139
}
138140
#endif /* UNIV_DEBUG */

0 commit comments

Comments
 (0)