Commit 58d4830c authored by unknown's avatar unknown

Post-merge fixes.


sql/sql_acl.cc:
  A post-merge fix.
sql/sql_base.cc:
  A post-merge fix.
parent 3456c4be
...@@ -2245,7 +2245,6 @@ static GRANT_NAME *name_hash_search(HASH *name_hash, ...@@ -2245,7 +2245,6 @@ static GRANT_NAME *name_hash_search(HASH *name_hash,
uint len; uint len;
GRANT_NAME *grant_name,*found=0; GRANT_NAME *grant_name,*found=0;
HASH_SEARCH_STATE state; HASH_SEARCH_STATE state;
GRANT_TABLE *grant_table,*found=0;
len = (uint) (strmov(strmov(strmov(helping,user)+1,db)+1,tname)-helping)+ 1; len = (uint) (strmov(strmov(strmov(helping,user)+1,db)+1,tname)-helping)+ 1;
for (grant_name= (GRANT_NAME*) hash_first(name_hash, (byte*) helping, for (grant_name= (GRANT_NAME*) hash_first(name_hash, (byte*) helping,
......
...@@ -1624,7 +1624,8 @@ bool table_is_used(TABLE *table, bool wait_for_name_lock) ...@@ -1624,7 +1624,8 @@ bool table_is_used(TABLE *table, bool wait_for_name_lock)
{ {
char *key= table->s->table_cache_key; char *key= table->s->table_cache_key;
uint key_length= table->s->key_length; uint key_length= table->s->key_length;
for (TABLE *search= (TABLE*) hash_search(&open_cache, (byte*) key, HASH_SEARCH_STATE state;
for (TABLE *search= (TABLE*) hash_first(&open_cache, (byte*) key,
key_length, &state); key_length, &state);
search ; search ;
search= (TABLE*) hash_next(&open_cache, (byte*) key, search= (TABLE*) hash_next(&open_cache, (byte*) key,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment