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

fix a copy-paste error, introduced in role refactoring
This commit is contained in:
Sergei Golubchik 2013-12-01 12:16:24 +01:00
commit 5290811c5c

View file

@ -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);
if (user)
mpvio->acl_user= user->copy(&mem);
mpvio->acl_user= user->copy(mpvio->thd->mem_root);
mysql_mutex_unlock(&acl_cache->lock);