diff options
author | unknown <walrus@mysql.com> | 2002-11-05 00:15:12 +0500 |
---|---|---|
committer | unknown <walrus@mysql.com> | 2002-11-05 00:15:12 +0500 |
commit | b749585481d63b3e94e4c7258ea3ca87c340f117 (patch) | |
tree | ae5b571aecb89670c8792c874dec95a53de79afe /sql/lock.cc | |
parent | 8285b95779f848daffdaa5e3096a75467e458d24 (diff) | |
parent | 9cd8bd657e740affc0018644e157c67d85a84779 (diff) | |
download | mariadb-git-b749585481d63b3e94e4c7258ea3ca87c340f117.tar.gz |
Merge mysql.com:/home/walrus/bk/41 into mysql.com:/home/walrus/bk/41.1
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index aed0e1988ea..3b2444c8e9d 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -69,6 +69,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; @@ -154,6 +160,7 @@ retry: sql_lock=0; } } + thd->lock_time(); DBUG_RETURN (sql_lock); } @@ -410,8 +417,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; } |