List:Internals« Previous MessageNext Message »
From:Wei Li Date:December 5 2006 9:45pm
Subject:InnoDB: lock_clust_rec_read_check_and_lock()
View as plain text  
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
Thread
InnoDB: lock_clust_rec_read_check_and_lock()Wei Li5 Dec
  • Re: InnoDB: lock_clust_rec_read_check_and_lock()Wei Li6 Dec
Re: InnoDB: lock_clust_rec_read_check_and_lock()Heikki Tuuri7 Dec
  • Re: InnoDB: lock_clust_rec_read_check_and_lock()Heikki Tuuri8 Dec
    • Re: InnoDB: lock_clust_rec_read_check_and_lock()Wei Li8 Dec