From: Nuno Carvalho Date: January 23 2012 5:26pm Subject: bzr push into mysql-trunk branch (nuno.carvalho:3769 to 3770) List-Archive: http://lists.mysql.com/commits/142528 Message-Id: <201201231726.q0NHQlPu003982@acsmt356.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 3770 Nuno Carvalho 2012-01-23 [merge] Automerge from mysql-5.5 into mysql-trunk. modified: mysql-test/include/wait_for_ndb_to_binlog.inc 3769 Vasil Dimov 2012-01-23 In fts_get_total_document_count() the stats of a table should have been initialized when the table was opened. This convert a conditional stats recalc (if not initialized) to an assert. Discussed with: Jimmy (via IM) modified: storage/innobase/fts/fts0fts.cc === modified file 'mysql-test/include/wait_for_ndb_to_binlog.inc' --- a/mysql-test/include/wait_for_ndb_to_binlog.inc 2009-11-26 23:32:01 +0000 +++ b/mysql-test/include/wait_for_ndb_to_binlog.inc 2012-01-23 16:50:54 +0000 @@ -1,13 +1,11 @@ # ==== Purpose ==== # -# Several test primitives from mysql-test/extra/rpl_tests -# shared for test cases for MyISAM, InnoDB, NDB and other -# engines. But for NDB all events will be added by NDB -# injector and now there are no way to detect the state of -# NDB injector therefore this primitive waits 5 sec -# if engine type is NDB. -# In future that should be fixed by waiting of proper -# state of NDB injector. +# Several test primitives from mysql-test/extra/rpl_tests +# are shared for test cases for MyISAM, InnoDB, NDB and +# other engines. +# For NDB engine all events will be added by NDB injector +# so tests only can continue after injector is ready, +# this test waits for proper injector thread state. # # ==== Usage ==== # @@ -17,25 +15,12 @@ # ==== Parameters ===== # # $engine_type -# Type of engine. If type is NDB then it waits $wait_time sec -# -# $wait_time -# Test will wait $wait_time seconds - -let $_wait_time= 5; - -if (!$wait_time) { - let $_wait_time= $wait_time; -} +# Type of engine. If type is NDB then it waits for injector +# thread proper state. if (`SELECT UPPER(LEFT('$engine_type',3)) = 'NDB'`) { - while (!$_wait_time) { - let $_wait_time_internal= 10; - while (!$_wait_time_internal) { - sleep 0.1; - dec $_wait_time_internal; - } - dec $_wait_time; - } + let $show_statement= SHOW PROCESSLIST; + let $field= State; + let $condition= = 'Waiting for event from ndbcluster'; + source include/wait_show_condition.inc; } - No bundle (reason: useless for push emails).