Commit d4c5e404 authored by dellis@goetia.(none)'s avatar dellis@goetia.(none)

sql_acl.cc:

  Correcting problem with merge
parent f5bc0d77
...@@ -3683,6 +3683,7 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list) ...@@ -3683,6 +3683,7 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
result= -1; result= -1;
} }
else else
{
if (!grant_table->cols) if (!grant_table->cols)
{ {
revoked= 1; revoked= 1;
...@@ -3690,10 +3691,10 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list) ...@@ -3690,10 +3691,10 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
} }
List<LEX_COLUMN> columns; List<LEX_COLUMN> columns;
if (!replace_column_table(grant_table,tables[3].table, *lex_user, if (!replace_column_table(grant_table,tables[3].table, *lex_user,
columns, columns,
grant_table->db, grant_table->db,
grant_table->tname, grant_table->tname,
~0, 1)) ~0, 1))
{ {
revoked= 1; revoked= 1;
continue; continue;
...@@ -3705,14 +3706,14 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list) ...@@ -3705,14 +3706,14 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
} }
} while (revoked); } while (revoked);
} }
VOID(pthread_mutex_unlock(&acl_cache->lock)); VOID(pthread_mutex_unlock(&acl_cache->lock));
rw_unlock(&LOCK_grant); rw_unlock(&LOCK_grant);
close_thread_tables(thd); close_thread_tables(thd);
if (result) if (result)
my_error(ER_REVOKE_GRANTS, MYF(0)); my_error(ER_REVOKE_GRANTS, MYF(0));
DBUG_RETURN(result); DBUG_RETURN(result);
} }
......
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