diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-12-18 09:50:39 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-12-19 13:36:21 +0100 |
commit | 865548fc8d0574e6418b66def39b6d36bbc0205a (patch) | |
tree | 21489f525ada1e65b4d4fa51bd6c9d9925d9a317 /sql/sql_acl.cc | |
parent | 3b9423fda2612a463e9f3af5750234ccf2667545 (diff) | |
download | mariadb-git-865548fc8d0574e6418b66def39b6d36bbc0205a.tar.gz |
MDEV-9088 Server crashes on shutdown after the second post of feedback report
On shutdown feedback was sending a short report without creating
a THD. At that point current_thd was pointing to the already
destroyed THD from the previous full report.
backport from 10.1:
commit bfe703a
Author: Sergei Golubchik <serg@mariadb.org>
Date: Tue Feb 3 18:19:56 2015 +0100
don't let current_thd to point to a destroyed THD
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 3647520ed4b..63d7d7a0399 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -959,8 +959,6 @@ my_bool acl_init(bool dont_read_acl_tables) */ return_val= acl_reload(thd); delete thd; - /* Remember that we don't have a THD */ - set_current_thd(0); DBUG_RETURN(return_val); } @@ -6371,8 +6369,6 @@ my_bool grant_init() thd->store_globals(); return_val= grant_reload(thd); delete thd; - /* Remember that we don't have a THD */ - set_current_thd(0); DBUG_RETURN(return_val); } |