Fix Bug#22819, remove assertion. (http://bugs.mysql.com/bug.php?id=22819)

This commit is contained in:
sunny 2007-04-23 02:00:46 +00:00
parent a909884ad7
commit b99e00597c

View file

@ -4423,12 +4423,9 @@ lock_table_queue_validate(
dict_table_t* table) /* in: table */
{
lock_t* lock;
ibool is_waiting;
ut_ad(mutex_own(&kernel_mutex));
is_waiting = FALSE;
lock = UT_LIST_GET_FIRST(table->locks);
while (lock) {
@ -4438,13 +4435,10 @@ lock_table_queue_validate(
if (!lock_get_wait(lock)) {
ut_a(!is_waiting);
ut_a(!lock_table_other_has_incompatible(
lock->trx, 0, table,
lock_get_mode(lock)));
} else {
is_waiting = TRUE;
ut_a(lock_table_has_to_wait_in_queue(lock));
}