Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d9f7b6be
Commit
d9f7b6be
authored
Feb 20, 2019
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17942 fixup : protect rebuild_check_host() / rebuild_role_grants() with acl_cache->lock mutex
parent
39a2984d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
sql/sql_acl.cc
sql/sql_acl.cc
+7
-6
No files found.
sql/sql_acl.cc
View file @
d9f7b6be
...
...
@@ -9573,16 +9573,17 @@ bool mysql_create_user(THD *thd, List <LEX_USER> &list, bool handle_as_role)
}
}
if
(
result
&&
some_users_dropped
&&
!
handle_as_role
)
{
/* Rebuild in-memory structs, since 'acl_users' has been modified */
rebuild_check_host
();
rebuild_role_grants
();
}
mysql_mutex_unlock
(
&
acl_cache
->
lock
);
if
(
result
)
{
if
(
some_users_dropped
&&
!
handle_as_role
)
{
/* Rebuild in-memory structs, since 'acl_users' has been modified */
rebuild_check_host
();
rebuild_role_grants
();
}
my_error
(
ER_CANNOT_USER
,
MYF
(
0
),
(
handle_as_role
)
?
"CREATE ROLE"
:
"CREATE USER"
,
wrong_users
.
c_ptr_safe
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment