mariadb/mysql-test/suite/funcs_1/datadict
Dmitry Lenev 8d0dc9b58b Part of fix for bug#52044 "FLUSH TABLES WITH READ LOCK and
FLUSH TABLES <list> WITH READ LOCK are incompatible" to
be pushed as separate patch.

Replaced thread state name "Waiting for table", which was
used by threads waiting for a metadata lock or table flush, 
with a set of names which better reflect types of resources
being waited for.

Also replaced "Table lock" thread state name, which was used 
by threads waiting on thr_lock.c table level lock, with more
elaborate "Waiting for table level lock", to make it 
more consistent with other thread state names.

Updated test cases and their results according to these 
changes.

Fixed sys_vars.query_cache_wlock_invalidate_func test to not
to wait for timeout of wait_condition.inc script.

mysql-test/r/query_cache.result:
  Added test coverage for query_cache_wlock_invalidate
  behavior for implicitly locked tables.
mysql-test/suite/sys_vars/r/query_cache_wlock_invalidate_func.result:
  Fixed sys_vars.query_cache_wlock_invalidate_func test to not
  to wait for timeout of wait_condition.inc script. Reverted
  changes to test which introduced timeout and replaced waiting
  condition with a more appropriate one.
  Test coverage for query_cache_wlock_invalidate behavior for
  implicitly locked tables was added to query_cache.test.
mysql-test/suite/sys_vars/t/query_cache_wlock_invalidate_func.test:
  Fixed sys_vars.query_cache_wlock_invalidate_func test to not
  to wait for timeout of wait_condition.inc script. Reverted
  changes to test which introduced timeout and replaced waiting
  condition with a more appropriate one.
  Test coverage for query_cache_wlock_invalidate behavior for
  implicitly locked tables was added to query_cache.test.
mysql-test/t/query_cache.test:
  Added test coverage for query_cache_wlock_invalidate
  behavior for implicitly locked tables.
mysys/thr_lock.c:
  Replaced "Table lock" thread state name, which was used by 
  threads waiting on thr_lock.c table level lock, with more
  elaborate "Waiting for table level lock", to make it 
  consistent with thread state names which are used while
  waiting for metadata locks and table flush.
sql/mdl.cc:
  Replaced thread state name "Waiting for table", which was
  used by threads waiting for a metadata lock or table flush, 
  with a set of names which better reflect types of resources
  being waited for. 
  
  To implement this:
  - Adjusted MDL_wait::timed_wait() to take thread state name
    as parameter.
  - Introduced method of MDL_key class which allows to get
    thread state name to be used while waiting for resource
    corresponding to the key and changed code to use it.
    Added array translating namespaces to thread state names
    as part of this change.
sql/mdl.h:
  To implement this:
  - Adjusted MDL_wait::timed_wait() to take thread state name
    as parameter.
  - Introduced method of MDL_key class which allows to get
    thread state name to be used while waiting for resource
    corresponding to the key and changed code to use it.
    Added array translating namespaces to thread state names
    as part of this change.
sql/sql_base.cc:
  Replaced thread state name "Waiting for table", which was
  used by threads waiting for table flush, with a more elaborate
  "Waiting for table flush".
2010-08-06 15:29:37 +04:00
..
basics_mixed1.inc Bug#24062 Incorrect error msg after execute DROP TABLE IF EXISTS on information_schema 2009-10-23 11:56:30 +05:00
basics_mixed2.inc WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
basics_mixed3.inc WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
columns.inc Fix for 2008-06-16 20:39:58 +02:00
datadict.pre WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
datadict_bug_12777.inc Fix for 2008-03-31 19:48:02 +02:00
datadict_load.inc Post merge fix for 2008-04-01 13:18:31 +02:00
datadict_priv.inc Bug#24062 Incorrect error msg after execute DROP TABLE IF EXISTS on information_schema 2009-10-23 11:56:30 +05:00
is_key_column_usage.inc Remove assignments of the $MASTER_MYSOCK variable. 2009-06-09 13:09:16 -03:00
is_routines.inc backported: 2010-01-15 15:42:15 +04:00
is_schemata.inc Remove assignments of the $MASTER_MYSOCK variable. 2009-06-09 13:09:16 -03:00
is_table_query.inc WL#4203 Reorganize and fix the data dictionary tests of 2008-03-07 17:33:07 +01:00
is_tables.inc Bug#35427 INFORMATION_SCHEMA.TABLES.TABLE_CATALOG is NULL, should be "def" 2009-10-23 16:02:20 +05:00
is_triggers.inc Remove assignments of the $MASTER_MYSOCK variable. 2009-06-09 13:09:16 -03:00
is_views.inc Remove assignments of the $MASTER_MYSOCK variable. 2009-06-09 13:09:16 -03:00
processlist_priv.inc Bug #45120 Fix of 44922 caused regression in funcs_1.processlist_priv_no_prot 2009-05-27 10:54:59 +02:00
processlist_val.inc Part of fix for bug#52044 "FLUSH TABLES WITH READ LOCK and 2010-08-06 15:29:37 +04:00
statistics.inc Remove assignments of the $MASTER_MYSOCK variable. 2009-06-09 13:09:16 -03:00
table_constraints.inc Remove assignments of the $MASTER_MYSOCK variable. 2009-06-09 13:09:16 -03:00
tables.inc Remove assignments of the $MASTER_MYSOCK variable. 2009-06-09 13:09:16 -03:00
tables1.inc Remove assignments of the $MASTER_MYSOCK variable. 2009-06-09 13:09:16 -03:00
tables2.inc Fix for 2008-06-16 20:39:58 +02:00