diff options
| author | Jon Olav Hauglid <jon.hauglid@oracle.com> | 2010-10-25 14:26:21 +0200 |
|---|---|---|
| committer | Jon Olav Hauglid <jon.hauglid@oracle.com> | 2010-10-25 14:26:21 +0200 |
| commit | a12de3d00d6d5cb6a795c5671bf42c39745c49cc (patch) | |
| tree | abd2e51e16157e63e08187eee33536104f95b5a5 /sql/sql_parse.cc | |
| parent | ae6801eb23cf91c83db0727784e5037e03e2df2d (diff) | |
| parent | 1eb1bea003f0966a08852668133981691e017f26 (diff) | |
| download | mariadb-git-a12de3d00d6d5cb6a795c5671bf42c39745c49cc.tar.gz | |
Merge from mysql-5.5-bugteam to mysql-5.5-runtime
No conflicts
Diffstat (limited to 'sql/sql_parse.cc')
| -rw-r--r-- | sql/sql_parse.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 8a7f42b462d..c09a4abb2c8 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -3430,6 +3430,10 @@ end_with_restore_list: if (check_access(thd, UPDATE_ACL, "mysql", NULL, NULL, 1, 1) && check_global_access(thd,CREATE_USER_ACL)) break; + + /* Replicate current user as grantor */ + thd->binlog_invoker(); + /* Conditionally writes to binlog */ if (!(res = mysql_revoke_all(thd, lex->users_list))) my_ok(thd); @@ -3446,6 +3450,9 @@ end_with_restore_list: first_table ? 0 : 1, 0)) goto error; + /* Replicate current user as grantor */ + thd->binlog_invoker(); + if (thd->security_ctx->user) // If not replication { LEX_USER *user, *tmp_user; |
