fixed db name and layout (can cause very rare race condition bug)

This commit is contained in:
bell@sanja.is.com.ua 2004-05-04 13:07:36 +03:00
parent d6f9fa0376
commit 2fd0a66591

View file

@ -2141,9 +2141,9 @@ bool check_grant_column(THD *thd,TABLE *table, const char *name,
if (table->grant.version != grant_version)
{
table->grant.grant_table=
table_hash_search(thd->host,thd->ip,thd->db,
table_hash_search(thd->host, thd->ip, table->table_cache_key,
thd->priv_user,
table->real_name,0); /* purecov: inspected */
table->real_name, 0); /* purecov: inspected */
table->grant.version=grant_version; /* purecov: inspected */
}
if (!(grant_table=table->grant.grant_table))