summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorSneha Modi <sneha.modi@oracle.com>2011-11-21 17:07:08 +0530
committerSneha Modi <sneha.modi@oracle.com>2011-11-21 17:07:08 +0530
commit2dd10f632b3ec1fa9c4e46785a7cb9a26b2c13b8 (patch)
tree21420760aa1e8322f47b181e45f5a8997cff36a1 /sql/sql_table.cc
parent40480078838f5513a4eeaa8dd22b19ce4ef81cb7 (diff)
downloadmariadb-git-2dd10f632b3ec1fa9c4e46785a7cb9a26b2c13b8.tar.gz
Bug#11748731:SOME 'BIG' TESTS FAILING ON 6.0
A patch for alter_table-big.test has been committed earlier. This is a patch for create-big.test: The test used to time-out after 900 seconds. It relied on debug sleeps that are no longer present in the code. Since the sleeps are long gone, fixing the problem didn't involve just updating the result file or using macro "show_binlog_events2.inc" instead of "show binlog events" statement. The test needed to be rewritten using debug sync points, and result then needed to be updated. So, the sleeps have been replaced by debug_sync points and the test execution time has been reduced significantly.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 5363737998b..be1e0d009a3 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -4555,6 +4555,8 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table, TABLE_LIST* src_table,
goto err;
src_table->table->use_all_columns();
+ DEBUG_SYNC(thd, "create_table_like_after_open");
+
/* Fill HA_CREATE_INFO and Alter_info with description of source table. */
bzero((char*) &local_create_info, sizeof(local_create_info));
local_create_info.db_type= src_table->table->s->db_type();
@@ -4603,6 +4605,9 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table, TABLE_LIST* src_table,
thd->mdl_context.is_lock_owner(MDL_key::TABLE, table->db,
table->table_name,
MDL_EXCLUSIVE));
+
+ DEBUG_SYNC(thd, "create_table_like_before_binlog");
+
/*
We have to write the query before we unlock the tables.
*/