Commit 5290811c authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-5367 Server crashes in acl_authenticate on concurrent thread connection, FLUSH PRIVILEGES

fix a copy-paste error, introduced in role refactoring
parent ab360498
...@@ -11044,7 +11044,7 @@ static bool find_mpvio_user(MPVIO_EXT *mpvio) ...@@ -11044,7 +11044,7 @@ static bool find_mpvio_user(MPVIO_EXT *mpvio)
ACL_USER *user= find_user_or_anon(sctx->host, sctx->user, sctx->ip); ACL_USER *user= find_user_or_anon(sctx->host, sctx->user, sctx->ip);
if (user) if (user)
mpvio->acl_user= user->copy(&mem); mpvio->acl_user= user->copy(mpvio->thd->mem_root);
mysql_mutex_unlock(&acl_cache->lock); mysql_mutex_unlock(&acl_cache->lock);
......
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