diff options
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index 4c84bbb6e69..8f342b28d67 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -68,7 +68,12 @@ TODO: #include "mysql_priv.h" #include <hash.h> -#include <assert.h> +#include "ha_myisammrg.h" +#ifndef MASTER +#include "../srclib/myisammrg/myrg_def.h" +#else +#include "../myisammrg/myrg_def.h" +#endif extern HASH open_cache; @@ -156,6 +161,7 @@ retry: sql_lock=0; } } + thd->lock_time(); DBUG_RETURN (sql_lock); } @@ -412,8 +418,12 @@ static MYSQL_LOCK *get_lock_data(THD *thd, TABLE **table_ptr, uint count, return 0; } } + THR_LOCK_DATA **org_locks = locks; locks=table->file->store_lock(thd, locks, get_old_locks ? TL_IGNORE : lock_type); + if (locks) + for ( ; org_locks != locks ; org_locks++) + (*org_locks)->debug_print_param= (void *) table; } return sql_lock; } |