List:Commits« Previous MessageNext Message »
From:vasil.dimov Date:June 7 2012 5:48pm
Subject:bzr push into mysql-trunk branch (vasil.dimov:3966 to 3967)
View as plain text  
 3967 Vasil Dimov	2012-06-07
      Followup to vasil.dimov@stripped
      Run ANALYZE only for InnoDB tests as it confuses MyISAM tests.

 3966 Vasil Dimov	2012-06-07
      Followup to WL#6189 Turn InnoDB persistent statistics ON by default
      Adjust mtr tests, part 28.
      Persistent stats use a different sampling algorithm so it is possible
      that the stats numbers differ from transient stats.
      Also, persistent stats are updated less frequently or with a delay, so
      it is possible that persistent stats are not up to date as transient were
      even if both algorithms would return the same results.
      The order of the returned rows by a SELECT query depends on the stats and
      thus, if possible, we fix tests by prepending "-- sorted_result" to SELECTs
      that happen to return rows in different order.
      If possible, each failing test was fixed by manually running ANALYZE TABLE.
      This is doable if both transient and persistent sampling algorithms end up
      with the same numbers for the given table and its data.
      If persistent stats result in different stats, then test failures were fixed
      by forcing the usage of transient stats for the table by using
      Intentionally do not fix the tests by using persistent stats and adjustin
      the output of EXPLAIN in .result files because a different execution plan
      may cause a different code path to be executed, than the one originally
      intended in the test.

=== modified file 'mysql-test/include/'
--- a/mysql-test/include/	revid:vasil.dimov@stripped
+++ b/mysql-test/include/	revid:vasil.dimov@stripped
@@ -922,12 +922,15 @@ CREATE TABLE t2 (  
 INSERT INTO t2 VALUES (1,7,'f');
+if (`SELECT UPPER(@@default_storage_engine) = 'INNODB'`)
 -- disable_query_log
 -- disable_result_log
 -- enable_result_log
 -- enable_query_log
 # Bug was specific of IN->EXISTS:
 set @old_opt_switch=@@optimizer_switch;

No bundle (reason: useless for push emails).
bzr push into mysql-trunk branch (vasil.dimov:3966 to 3967) vasil.dimov7 Jun