diff options
author | unknown <konstantin@mysql.com> | 2006-01-04 17:49:45 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2006-01-04 17:49:45 +0300 |
commit | 3456c4be3acf92c2ec54dc2551e4e2a02e95512a (patch) | |
tree | d0ba85a749cfceb9ceb00a014db23734e8656646 /sql/lock.cc | |
parent | 314f0fbf32d33baab1d43de180892a274f46992d (diff) | |
parent | f577d864cdac14d9a5cf7714b3506bab7688b1c7 (diff) | |
download | mariadb-git-3456c4be3acf92c2ec54dc2551e4e2a02e95512a.tar.gz |
Merge mysql.com:/opt/local/work/mysql-4.1-7209-new
into mysql.com:/opt/local/work/mysql-5.0-merge
mysys/hash.c:
Auto merged
ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp:
Auto merged
sql/lock.cc:
Auto merged
sql/sql_cache.cc:
Auto merged
sql/sql_acl.cc:
Manual merge.
sql/sql_base.cc:
Manual merge.
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index 947fa4ea53f..d0bfcfd7272 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -723,6 +723,7 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list) char key[MAX_DBKEY_LENGTH]; char *db= table_list->db; uint key_length; + HASH_SEARCH_STATE state; DBUG_ENTER("lock_table_name"); DBUG_PRINT("enter",("db: %s name: %s", db, table_list->table_name)); @@ -733,9 +734,9 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list) /* Only insert the table if we haven't insert it already */ - for (table=(TABLE*) hash_search(&open_cache,(byte*) key,key_length) ; + for (table=(TABLE*) hash_first(&open_cache, (byte*)key, key_length, &state); table ; - table = (TABLE*) hash_next(&open_cache,(byte*) key,key_length)) + table = (TABLE*) hash_next(&open_cache, (byte*)key, key_length, &state)) if (table->in_use == thd) DBUG_RETURN(0); |