From 0627929f626482508cc999d854e20f3a120f927a Mon Sep 17 00:00:00 2001 From: Sachin Setiya Date: Wed, 27 Sep 2017 10:06:44 +0530 Subject: 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. --- mysql-test/suite/galera/r/galera_mdev_13787.result | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 mysql-test/suite/galera/r/galera_mdev_13787.result (limited to 'mysql-test/suite/galera/r/galera_mdev_13787.result') diff --git a/mysql-test/suite/galera/r/galera_mdev_13787.result b/mysql-test/suite/galera/r/galera_mdev_13787.result new file mode 100644 index 00000000000..e3133f60b0c --- /dev/null +++ b/mysql-test/suite/galera/r/galera_mdev_13787.result @@ -0,0 +1,3 @@ +create table t(a int); +insert into t select 1; +DROP TABLE t; -- cgit v1.2.1