1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-21702 Add a data type for privileges

This commit is contained in:
Alexander Barkov
2020-02-09 21:53:11 +04:00
parent f79f537f9f
commit 83e75b39b3
41 changed files with 781 additions and 546 deletions

View File

@ -1480,8 +1480,6 @@ end:
ret= 1;
else
{
ulong saved_master_access;
thd->set_query(sp_sql.c_ptr_safe(), sp_sql.length());
/*
@ -1493,7 +1491,7 @@ end:
Temporarily reset it to read-write.
*/
saved_master_access= thd->security_ctx->master_access;
privilege_t saved_master_access(thd->security_ctx->master_access);
thd->security_ctx->master_access |= SUPER_ACL;
bool save_tx_read_only= thd->tx_read_only;
thd->tx_read_only= false;