summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSachin Setiya <sachin.setiya@mariadb.com>2017-09-27 10:06:44 +0530
committerSachin Setiya <sachin.setiya@mariadb.com>2017-09-27 10:15:08 +0530
commit0627929f626482508cc999d854e20f3a120f927a (patch)
tree4ad2c465bf594a6a781a5459437cd9d6d1de4584 /sql
parente3dee8376885c79350d447a5f99ddc5bf03188d8 (diff)
downloadmariadb-git-0627929f626482508cc999d854e20f3a120f927a.tar.gz
MDEV-13787 Crash in persistent stats wsrep_on (thd=0x0)
Problem:- This crash happens because of thd = NULL , and while checking for wsrep_on , we no longer check for thd != NULL (MDEV-7955). So this problem is regression of MDEV-7955. However this patch not only solves this regression , It solves all regression caused by MDEV-7955 patch. To get all possible cases when thd can be null , assert(thd)/ assert(trx->mysql_thd) is place just before all wsrep_on and innodb test suite is run. And the assert which caused failure are removed with a physical check for thd != NULL. Rest assert are removed. Hopefully this method will remove all current/potential regression of MDEV-7955.
Diffstat (limited to 'sql')
-rw-r--r--sql/wsrep_mysqld.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index 33689a91661..061f877da6e 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -2293,7 +2293,7 @@ static int wsrep_create_sp(THD *thd, uchar** buf, size_t* buf_len)
}
-extern int wsrep_on(THD *thd)
+extern inline int wsrep_on(THD *thd)
{
return (int)(WSREP(thd));
}