Correcting assertion

storage/maria/ha_maria.cc:
  start_stmt() is passed thr_lock_type (TL_*), not int F_*.
  Though tt does not seem to matter here, F_UNLCK == TL_UNLOCK == 0
  at least on Linux and Windows.
This commit is contained in:
unknown 2008-02-08 18:14:37 +01:00
parent 5520ddfb22
commit e9a89f123e

View File

@ -2258,7 +2258,7 @@ int ha_maria::start_stmt(THD *thd, thr_lock_type lock_type)
trn= THD_TRN;
DBUG_ASSERT(trn); // this may be called only after external_lock()
DBUG_ASSERT(trnman_has_locked_tables(trn));
DBUG_ASSERT(lock_type != F_UNLCK);
DBUG_ASSERT(lock_type != TL_UNLOCK);
/*
If there was an implicit commit under this LOCK TABLES by a previous
statement (like a DDL), at least if that previous statement was about a