Hi,
I wonder whether the intention lock check in
lock_clust_rec_read_check_and_lock() is really needed:
--------------------------------------------------------------------------------------------------
ut_ad(mode != LOCK_X
|| lock_table_has(thr_get_trx(thr), index->table, LOCK_IX));
ut_ad(mode != LOCK_S
|| lock_table_has(thr_get_trx(thr), index->table, LOCK_IS));
if (!page_rec_is_supremum(rec)) {
lock_rec_convert_impl_to_expl(rec, index);
}
---------------------------------------------------------------------------------------------------
If I enable innodb and read commited mode in the slave, mysql test
rpl000001 crashes in
debug model. But, it works fine in optimized mode.
Thanks,
Wei