Merge lp:~stewart/percona-server/5.5.30 into lp:percona-server/5.5

Proposed by Stewart Smith
Status: Merged
Approved by: Stewart Smith
Approved revision: no longer in the source branch.
Merged at revision: 461
Proposed branch: lp:~stewart/percona-server/5.5.30
Merge into: lp:percona-server/5.5
Diff against target: 10633 lines (+3746/-1991)
166 files modified
Percona-Server/.bzrignore (+2/-0)
Percona-Server/README (+1/-1)
Percona-Server/VERSION (+1/-1)
Percona-Server/client/mysql.cc (+7/-5)
Percona-Server/client/mysqlbinlog.cc (+4/-0)
Percona-Server/client/mysqldump.c (+4/-16)
Percona-Server/client/mysqltest.cc (+1/-1)
Percona-Server/extra/yassl/src/handshake.cpp (+7/-1)
Percona-Server/include/my_sys.h (+3/-0)
Percona-Server/include/mysql/service_my_snprintf.h (+1/-0)
Percona-Server/include/mysql/thread_pool_priv.h (+1/-0)
Percona-Server/include/welcome_copyright_notice.h (+2/-2)
Percona-Server/mysql-test/CMakeLists.txt (+4/-2)
Percona-Server/mysql-test/collections/default.daily (+1/-1)
Percona-Server/mysql-test/collections/default.experimental (+0/-5)
Percona-Server/mysql-test/collections/default.push (+6/-5)
Percona-Server/mysql-test/collections/default.release.in (+4/-4)
Percona-Server/mysql-test/include/get_binlog_dump_thread_id.inc (+0/-22)
Percona-Server/mysql-test/lib/My/SafeProcess/CMakeLists.txt (+1/-1)
Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.cc (+12/-8)
Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.pl (+0/-166)
Percona-Server/mysql-test/lib/mtr_cases.pm (+5/-12)
Percona-Server/mysql-test/lib/mtr_report.pm (+11/-1)
Percona-Server/mysql-test/mysql-test-run.pl (+89/-64)
Percona-Server/mysql-test/r/ddl_i18n_koi8r.result (+8/-8)
Percona-Server/mysql-test/r/ddl_i18n_utf8.result (+8/-8)
Percona-Server/mysql-test/r/group_min_max_innodb.result (+1/-1)
Percona-Server/mysql-test/r/mysqlbinlog.result (+32/-0)
Percona-Server/mysql-test/r/mysqldump.result (+86/-13)
Percona-Server/mysql-test/r/percona_innodb_version.result (+1/-1)
Percona-Server/mysql-test/r/percona_server_variables_debug.result (+4/-0)
Percona-Server/mysql-test/r/percona_server_variables_release.result (+2/-0)
Percona-Server/mysql-test/r/user_var-binlog.result (+2/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_base64_flag.result (+2/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog2.result (+54/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result (+2/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result (+8/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result (+8/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_trans.result (+2/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_row_ctype_ucs.result (+2/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_stm_ctype_ucs.result (+2/-0)
Percona-Server/mysql-test/suite/engines/funcs/r/rpl_row_until.result (+59/-211)
Percona-Server/mysql-test/suite/engines/funcs/t/disabled.def (+0/-2)
Percona-Server/mysql-test/suite/engines/funcs/t/rpl_row_until.test (+114/-78)
Percona-Server/mysql-test/suite/innodb/r/innodb-index.result (+1/-1)
Percona-Server/mysql-test/suite/innodb/r/innodb_bug14147491.result (+17/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb_bug14676111.result (+53/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb_mysql.result (+4/-4)
Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491-master.opt (+1/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491.test (+75/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb_bug14676111.test (+128/-0)
Percona-Server/mysql-test/suite/parts/r/partition_alter4_innodb.result (+24/-24)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history.result (+63/-0)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result (+63/-0)
Percona-Server/mysql-test/suite/perfschema/r/start_server_nothing.result (+122/-0)
Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history-master.opt (+2/-0)
Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history.test (+14/-0)
Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long-master.opt (+2/-0)
Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long.test (+14/-0)
Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing-master.opt (+19/-0)
Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing.test (+30/-0)
Percona-Server/mysql-test/suite/rpl/r/rpl_bug31076.result (+2/-0)
Percona-Server/mysql-test/suite/rpl/r/rpl_mdev382.result (+4/-0)
Percona-Server/mysql-test/suite/rpl/r/rpl_report_port.result (+2/-0)
Percona-Server/mysql-test/suite/rpl/r/rpl_rotate_logs.result (+11/-23)
Percona-Server/mysql-test/suite/rpl/r/rpl_row_mysqlbinlog.result (+10/-0)
Percona-Server/mysql-test/suite/rpl/r/rpl_sp.result (+2/-0)
Percona-Server/mysql-test/suite/rpl/t/disabled.def (+0/-1)
Percona-Server/mysql-test/suite/rpl/t/rpl_bug31076.test (+2/-0)
Percona-Server/mysql-test/suite/rpl/t/rpl_report_port.test (+6/-0)
Percona-Server/mysql-test/suite/rpl/t/rpl_rotate_logs.test (+52/-7)
Percona-Server/mysql-test/suite/sys_vars/r/innodb_limit_optimistic_insert_debug_basic.result (+58/-0)
Percona-Server/mysql-test/suite/sys_vars/r/innodb_print_all_deadlocks_basic.result (+22/-0)
Percona-Server/mysql-test/suite/sys_vars/r/innodb_trx_purge_view_update_only_debug_basic.result (+61/-0)
Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_update_as_write_basic.result (+0/-14)
Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_updated_only_basic.result (+0/-14)
Percona-Server/mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result (+119/-0)
Percona-Server/mysql-test/suite/sys_vars/t/innodb_limit_optimistic_insert_debug_basic.test (+50/-0)
Percona-Server/mysql-test/suite/sys_vars/t/innodb_print_all_deadlocks_basic.test (+48/-0)
Percona-Server/mysql-test/suite/sys_vars/t/innodb_trx_purge_view_update_only_debug_basic.test (+53/-0)
Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_update_as_write_basic.test (+0/-216)
Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_updated_only_basic.test (+0/-216)
Percona-Server/mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test (+168/-0)
Percona-Server/mysql-test/t/mysqldump.test (+9/-3)
Percona-Server/mysql-test/t/percona_innodb_version.test (+1/-1)
Percona-Server/mysys/errors.c (+18/-6)
Percona-Server/mysys/mf_pack.c (+5/-4)
Percona-Server/mysys/my_access.c (+64/-0)
Percona-Server/mysys/my_error.c (+22/-0)
Percona-Server/mysys/my_lib.c (+6/-4)
Percona-Server/mysys/my_write.c (+4/-0)
Percona-Server/mysys/thr_rwlock.c (+1/-1)
Percona-Server/packaging/WiX/custom_ui.wxs (+2/-2)
Percona-Server/packaging/rpm-uln/mysql.spec.sh (+26/-11)
Percona-Server/scripts/mysqld_safe.sh (+2/-2)
Percona-Server/sql/field.cc (+4/-4)
Percona-Server/sql/ha_partition.cc (+20/-2)
Percona-Server/sql/item_cmpfunc.cc (+11/-11)
Percona-Server/sql/item_func.cc (+21/-8)
Percona-Server/sql/item_func.h (+16/-2)
Percona-Server/sql/item_subselect.cc (+2/-1)
Percona-Server/sql/item_sum.cc (+9/-6)
Percona-Server/sql/item_xmlfunc.cc (+5/-1)
Percona-Server/sql/log_event.cc (+16/-5)
Percona-Server/sql/log_event.h (+16/-2)
Percona-Server/sql/mdl.h (+8/-2)
Percona-Server/sql/mysqld.cc (+43/-10)
Percona-Server/sql/opt_range.cc (+1/-1)
Percona-Server/sql/protocol.cc (+1/-1)
Percona-Server/sql/rpl_utility.cc (+7/-2)
Percona-Server/sql/sql_admin.cc (+24/-4)
Percona-Server/sql/sql_base.cc (+28/-21)
Percona-Server/sql/sql_base.h (+26/-1)
Percona-Server/sql/sql_cache.cc (+15/-15)
Percona-Server/sql/sql_class.cc (+52/-42)
Percona-Server/sql/sql_class.h (+1/-1)
Percona-Server/sql/sql_parse.cc (+8/-2)
Percona-Server/sql/sql_repl.cc (+4/-0)
Percona-Server/sql/sql_select.cc (+55/-26)
Percona-Server/sql/sql_select.h (+15/-1)
Percona-Server/sql/sql_table.cc (+127/-106)
Percona-Server/sql/sql_yacc.yy (+2/-2)
Percona-Server/sql/strfunc.cc (+1/-1)
Percona-Server/sql/sys_vars.cc (+64/-0)
Percona-Server/sql/transaction.cc (+17/-3)
Percona-Server/sql/tztime.cc (+3/-18)
Percona-Server/storage/archive/ha_archive.cc (+7/-6)
Percona-Server/storage/heap/hp_delete.c (+14/-4)
Percona-Server/storage/innobase/btr/btr0btr.c (+33/-5)
Percona-Server/storage/innobase/btr/btr0cur.c (+8/-0)
Percona-Server/storage/innobase/buf/buf0buf.c (+78/-79)
Percona-Server/storage/innobase/buf/buf0flu.c (+24/-0)
Percona-Server/storage/innobase/buf/buf0lru.c (+39/-3)
Percona-Server/storage/innobase/dict/dict0load.c (+2/-1)
Percona-Server/storage/innobase/fil/fil0fil.c (+60/-3)
Percona-Server/storage/innobase/handler/ha_innodb.cc (+41/-96)
Percona-Server/storage/innobase/handler/handler0alter.cc (+0/-2)
Percona-Server/storage/innobase/include/btr0cur.h (+5/-0)
Percona-Server/storage/innobase/include/btr0cur.ic (+13/-0)
Percona-Server/storage/innobase/include/buf0buf.h (+24/-5)
Percona-Server/storage/innobase/include/buf0buf.ic (+5/-6)
Percona-Server/storage/innobase/include/buf0lru.h (+4/-1)
Percona-Server/storage/innobase/include/data0type.ic (+7/-25)
Percona-Server/storage/innobase/include/fil0fil.h (+15/-0)
Percona-Server/storage/innobase/include/lock0lock.h (+10/-2)
Percona-Server/storage/innobase/include/rem0rec.h (+42/-38)
Percona-Server/storage/innobase/include/srv0srv.h (+14/-0)
Percona-Server/storage/innobase/include/trx0purge.h (+4/-0)
Percona-Server/storage/innobase/include/univ.i (+9/-13)
Percona-Server/storage/innobase/lock/lock0lock.c (+192/-78)
Percona-Server/storage/innobase/log/log0recv.c (+11/-4)
Percona-Server/storage/innobase/rem/rem0rec.c (+191/-66)
Percona-Server/storage/innobase/row/row0ins.c (+4/-1)
Percona-Server/storage/innobase/row/row0merge.c (+94/-27)
Percona-Server/storage/innobase/row/row0mysql.c (+7/-0)
Percona-Server/storage/innobase/row/row0umod.c (+3/-0)
Percona-Server/storage/innobase/row/row0undo.c (+1/-1)
Percona-Server/storage/innobase/srv/srv0srv.c (+60/-7)
Percona-Server/storage/innobase/trx/trx0purge.c (+17/-0)
Percona-Server/storage/innobase/trx/trx0rec.c (+20/-0)
Percona-Server/storage/myisam/mi_open.c (+6/-0)
Percona-Server/storage/myisam/mi_search.c (+9/-6)
Percona-Server/storage/perfschema/pfs_events_waits.cc (+6/-0)
Percona-Server/strings/decimal.c (+17/-16)
Percona-Server/strings/my_vsnprintf.c (+2/-0)
Percona-Server/support-files/mysql.spec.sh (+0/-1)
To merge this branch: bzr merge lp:~stewart/percona-server/5.5.30
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Laurynas Biveinis (community) Approve
Review via email: mp+148984@code.launchpad.net

Description of the change

Some details in the commit messages. This was one of the less obvious merges, which is a bit disappointing, but it is what it is. Laurynas took care of most of the InnoDB tricky bits.

http://jenkins.percona.com/view/PS%205.5/job/percona-server-5.5-param/677/

(this fresh proposal fixes a few things from the previous one, noticed we missed some test suite updates due to how laurynas and I exchanged patch halfway through merge)

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Approving everything except buf0 changes, because I did them.

However, the fix for a merge regression bug 1072573 was requested but does not seem to be present.

As it is now too late to take care of this, let's push this to the next merge, which should also fix another merge regression bug 1132109.

review: Approve
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

After this one is merged, have to check if https://code.launchpad.net/~stewart/percona-server/5.1.67/+merge/142635 becomes mergeable too.

Revision history for this message
Stewart Smith (stewart) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Percona-Server/.bzrignore'
--- Percona-Server/.bzrignore 2012-05-30 10:47:29 +0000
+++ Percona-Server/.bzrignore 2013-02-18 05:17:25 +0000
@@ -1313,6 +1313,7 @@
1313mysql-test/*.vcproj1313mysql-test/*.vcproj
1314mysql-test/.DS_Store1314mysql-test/.DS_Store
1315mysql-test/collections/default.release1315mysql-test/collections/default.release
1316mysql-test/collections/default.release.done
1316mysql-test/funcs_1.log1317mysql-test/funcs_1.log
1317mysql-test/funcs_1.tar1318mysql-test/funcs_1.tar
1318mysql-test/gmon.out1319mysql-test/gmon.out
@@ -3066,4 +3067,5 @@
3066Docs/INFO_BIN3067Docs/INFO_BIN
3067Docs/INFO_SRC3068Docs/INFO_SRC
3068Testing3069Testing
3070FilesCopied
3069source_downloads3071source_downloads
30703072
=== modified file 'Percona-Server/README'
--- Percona-Server/README 2012-02-28 11:50:23 +0000
+++ Percona-Server/README 2013-02-18 05:17:25 +0000
@@ -5,7 +5,7 @@
5is released under the version 2 of the GNU General Public License. 5is released under the version 2 of the GNU General Public License.
6MySQL is brought to you by Oracle.6MySQL is brought to you by Oracle.
77
8Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.8Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
99
10License information can be found in the COPYING file.10License information can be found in the COPYING file.
1111
1212
=== modified file 'Percona-Server/VERSION'
--- Percona-Server/VERSION 2013-01-09 23:45:25 +0000
+++ Percona-Server/VERSION 2013-02-18 05:17:25 +0000
@@ -1,4 +1,4 @@
1MYSQL_VERSION_MAJOR=51MYSQL_VERSION_MAJOR=5
2MYSQL_VERSION_MINOR=52MYSQL_VERSION_MINOR=5
3MYSQL_VERSION_PATCH=293MYSQL_VERSION_PATCH=30
4MYSQL_VERSION_EXTRA=4MYSQL_VERSION_EXTRA=
55
=== modified file 'Percona-Server/client/mysql.cc'
--- Percona-Server/client/mysql.cc 2013-01-17 22:50:22 +0000
+++ Percona-Server/client/mysql.cc 2013-02-18 05:17:25 +0000
@@ -2338,17 +2338,19 @@
2338 {2338 {
2339 uint length=(uint) (out-line);2339 uint length=(uint) (out-line);
23402340
2341 if (!truncated &&2341 if (!truncated && (length < 9 ||
2342 (length < 9 || 2342 my_strnncoll (charset_info, (uchar *)line, 9,
2343 my_strnncoll (charset_info, 2343 (const uchar *) "delimiter", 9) ||
2344 (uchar *)line, 9, (const uchar *) "delimiter", 9)))2344 (*in_string || *ml_comment)))
2345 {2345 {
2346 /* 2346 /*
2347 Don't add a new line in case there's a DELIMITER command to be 2347 Don't add a new line in case there's a DELIMITER command to be
2348 added to the glob buffer (e.g. on processing a line like 2348 added to the glob buffer (e.g. on processing a line like
2349 "<command>;DELIMITER <non-eof>") : similar to how a new line is 2349 "<command>;DELIMITER <non-eof>") : similar to how a new line is
2350 not added in the case when the DELIMITER is the first command 2350 not added in the case when the DELIMITER is the first command
2351 entered with an empty glob buffer. 2351 entered with an empty glob buffer. However, if the delimiter is
2352 part of a string or a comment, the new line should be added. (e.g.
2353 SELECT '\ndelimiter\n';\n)
2352 */2354 */
2353 *out++='\n';2355 *out++='\n';
2354 length++;2356 length++;
23552357
=== modified file 'Percona-Server/client/mysqlbinlog.cc'
--- Percona-Server/client/mysqlbinlog.cc 2013-01-17 22:50:22 +0000
+++ Percona-Server/client/mysqlbinlog.cc 2013-02-18 05:17:25 +0000
@@ -2120,6 +2120,8 @@
2120 else2120 else
2121 load_processor.init_by_cur_dir();2121 load_processor.init_by_cur_dir();
21222122
2123 fprintf(result_file, "/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;\n");
2124
2123 fprintf(result_file,2125 fprintf(result_file,
2124 "/*!40019 SET @@session.max_insert_delayed_threads=0*/;\n");2126 "/*!40019 SET @@session.max_insert_delayed_threads=0*/;\n");
21252127
@@ -2170,6 +2172,8 @@
2170 "/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n"2172 "/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n"
2171 "/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n");2173 "/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n");
21722174
2175 fprintf(result_file, "/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;\n");
2176
2173 if (tmpdir.list)2177 if (tmpdir.list)
2174 free_tmpdir(&tmpdir);2178 free_tmpdir(&tmpdir);
2175 if (result_file != stdout)2179 if (result_file != stdout)
21762180
=== modified file 'Percona-Server/client/mysqldump.c'
--- Percona-Server/client/mysqldump.c 2013-01-18 03:34:53 +0000
+++ Percona-Server/client/mysqldump.c 2013-02-18 05:17:25 +0000
@@ -2277,7 +2277,6 @@
2277 const char *routine_type[]= {"FUNCTION", "PROCEDURE"};2277 const char *routine_type[]= {"FUNCTION", "PROCEDURE"};
2278 char db_name_buff[NAME_LEN*2+3], name_buff[NAME_LEN*2+3];2278 char db_name_buff[NAME_LEN*2+3], name_buff[NAME_LEN*2+3];
2279 char *routine_name;2279 char *routine_name;
2280 char *query_str;
2281 int i;2280 int i;
2282 FILE *sql_file= md_result_file;2281 FILE *sql_file= md_result_file;
2283 MYSQL_RES *routine_res, *routine_list_res;2282 MYSQL_RES *routine_res, *routine_list_res;
@@ -2371,17 +2370,6 @@
2371 fprintf(sql_file, "/*!50003 DROP %s IF EXISTS %s */;\n",2370 fprintf(sql_file, "/*!50003 DROP %s IF EXISTS %s */;\n",
2372 routine_type[i], routine_name);2371 routine_type[i], routine_name);
23732372
2374 query_str= cover_definer_clause(row[2], strlen(row[2]),
2375 C_STRING_WITH_LEN("50020"),
2376 C_STRING_WITH_LEN("50003"),
2377 C_STRING_WITH_LEN(" FUNCTION"));
2378
2379 if (!query_str)
2380 query_str= cover_definer_clause(row[2], strlen(row[2]),
2381 C_STRING_WITH_LEN("50020"),
2382 C_STRING_WITH_LEN("50003"),
2383 C_STRING_WITH_LEN(" PROCEDURE"));
2384
2385 if (mysql_num_fields(routine_res) >= 6)2373 if (mysql_num_fields(routine_res) >= 6)
2386 {2374 {
2387 if (switch_db_collation(sql_file, db_name_buff, ";",2375 if (switch_db_collation(sql_file, db_name_buff, ";",
@@ -2419,9 +2407,9 @@
24192407
2420 fprintf(sql_file,2408 fprintf(sql_file,
2421 "DELIMITER ;;\n"2409 "DELIMITER ;;\n"
2422 "/*!50003 %s */;;\n"2410 "%s ;;\n"
2423 "DELIMITER ;\n",2411 "DELIMITER ;\n",
2424 (const char *) (query_str != NULL ? query_str : row[2]));2412 (const char *) row[2]);
24252413
2426 restore_sql_mode(sql_file, ";");2414 restore_sql_mode(sql_file, ";");
24272415
@@ -2436,7 +2424,6 @@
2436 }2424 }
2437 }2425 }
24382426
2439 my_free(query_str);
2440 }2427 }
2441 } /* end of routine printing */2428 } /* end of routine printing */
2442 mysql_free_result(routine_res);2429 mysql_free_result(routine_res);
@@ -3708,7 +3695,8 @@
3708 if (!opt_events && !my_strcasecmp(&my_charset_latin1, db, "mysql") &&3695 if (!opt_events && !my_strcasecmp(&my_charset_latin1, db, "mysql") &&
3709 !my_strcasecmp(&my_charset_latin1, table, "event"))3696 !my_strcasecmp(&my_charset_latin1, table, "event"))
3710 {3697 {
3711 verbose_msg("-- Skipping data table mysql.event, --skip-events was used\n");3698 fprintf(stderr, "-- Warning: Skipping the data of table mysql.event."
3699 " Specify the --events option explicitly.\n");
3712 DBUG_VOID_RETURN;3700 DBUG_VOID_RETURN;
3713 }3701 }
37143702
37153703
=== modified file 'Percona-Server/client/mysqltest.cc'
--- Percona-Server/client/mysqltest.cc 2013-01-17 22:50:22 +0000
+++ Percona-Server/client/mysqltest.cc 2013-02-18 05:17:25 +0000
@@ -1312,7 +1312,7 @@
1312void free_used_memory()1312void free_used_memory()
1313{1313{
1314 uint i;1314 uint i;
1315 DBUG_ENTER("free_used_memory");1315 // Do not use DBUG_ENTER("free_used_memory"); here, see below.
13161316
1317 if (connections)1317 if (connections)
1318 close_connections();1318 close_connections();
13191319
=== modified file 'Percona-Server/extra/yassl/src/handshake.cpp'
--- Percona-Server/extra/yassl/src/handshake.cpp 2012-02-13 12:44:54 +0000
+++ Percona-Server/extra/yassl/src/handshake.cpp 2013-02-18 05:17:25 +0000
@@ -767,8 +767,14 @@
767767
768 while (buffer.get_current() < hdr.length_ + RECORD_HEADER + offset) {768 while (buffer.get_current() < hdr.length_ + RECORD_HEADER + offset) {
769 // each message in record, can be more than 1 if not encrypted769 // each message in record, can be more than 1 if not encrypted
770 if (ssl.getSecurity().get_parms().pending_ == false) // cipher on770 if (ssl.getSecurity().get_parms().pending_ == false) { // cipher on
771 // sanity check for malicious/corrupted/illegal input
772 if (buffer.get_remaining() < hdr.length_) {
773 ssl.SetError(bad_input);
774 return 0;
775 }
771 decrypt_message(ssl, buffer, hdr.length_);776 decrypt_message(ssl, buffer, hdr.length_);
777 }
772 778
773 mySTL::auto_ptr<Message> msg(mf.CreateObject(hdr.type_));779 mySTL::auto_ptr<Message> msg(mf.CreateObject(hdr.type_));
774 if (!msg.get()) {780 if (!msg.get()) {
775781
=== modified file 'Percona-Server/include/my_sys.h'
--- Percona-Server/include/my_sys.h 2013-01-30 09:55:26 +0000
+++ Percona-Server/include/my_sys.h 2013-02-18 05:17:25 +0000
@@ -210,6 +210,7 @@
210extern void (*error_handler_hook)(uint my_err, const char *str,myf MyFlags);210extern void (*error_handler_hook)(uint my_err, const char *str,myf MyFlags);
211extern void (*fatal_error_handler_hook)(uint my_err, const char *str,211extern void (*fatal_error_handler_hook)(uint my_err, const char *str,
212 myf MyFlags);212 myf MyFlags);
213extern void(*sql_print_warning_hook)(const char *format,...);
213extern uint my_file_limit;214extern uint my_file_limit;
214extern ulong my_thread_stack_size;215extern ulong my_thread_stack_size;
215216
@@ -606,6 +607,7 @@
606607
607extern int check_if_legal_filename(const char *path);608extern int check_if_legal_filename(const char *path);
608extern int check_if_legal_tablename(const char *path);609extern int check_if_legal_tablename(const char *path);
610extern my_bool is_filename_allowed(const char *name, size_t length);
609611
610#ifdef _WIN32612#ifdef _WIN32
611extern int nt_share_delete(const char *name,myf MyFlags);613extern int nt_share_delete(const char *name,myf MyFlags);
@@ -642,6 +644,7 @@
642 va_list ap);644 va_list ap);
643extern int my_error_register(const char** (*get_errmsgs) (),645extern int my_error_register(const char** (*get_errmsgs) (),
644 int first, int last);646 int first, int last);
647extern void my_printf_warning (const char * format, ...);
645extern const char **my_error_unregister(int first, int last);648extern const char **my_error_unregister(int first, int last);
646extern void my_message(uint my_err, const char *str,myf MyFlags);649extern void my_message(uint my_err, const char *str,myf MyFlags);
647extern void my_message_stderr(uint my_err, const char *str, myf MyFlags);650extern void my_message_stderr(uint my_err, const char *str, myf MyFlags);
648651
=== modified file 'Percona-Server/include/mysql/service_my_snprintf.h'
--- Percona-Server/include/mysql/service_my_snprintf.h 2011-06-30 15:46:53 +0000
+++ Percona-Server/include/mysql/service_my_snprintf.h 2013-02-18 05:17:25 +0000
@@ -49,6 +49,7 @@
49 string will be quoted according to MySQL identifier quoting rules.49 string will be quoted according to MySQL identifier quoting rules.
5050
51 Both <width> and <precision> can be specified as numbers or '*'.51 Both <width> and <precision> can be specified as numbers or '*'.
52 If an asterisk is used, an argument of type int is consumed.
5253
53 <length modifier> can be 'l', 'll', or 'z'.54 <length modifier> can be 'l', 'll', or 'z'.
5455
5556
=== modified file 'Percona-Server/include/mysql/thread_pool_priv.h'
--- Percona-Server/include/mysql/thread_pool_priv.h 2012-08-28 14:13:03 +0000
+++ Percona-Server/include/mysql/thread_pool_priv.h 2013-02-18 05:17:25 +0000
@@ -61,6 +61,7 @@
61void thd_set_mysys_var(THD *thd, st_my_thread_var *mysys_var);61void thd_set_mysys_var(THD *thd, st_my_thread_var *mysys_var);
62ulong thd_get_net_wait_timeout(THD *thd);62ulong thd_get_net_wait_timeout(THD *thd);
63my_socket thd_get_fd(THD *thd);63my_socket thd_get_fd(THD *thd);
64int thd_store_globals(THD* thd);
6465
65THD *first_global_thread();66THD *first_global_thread();
66THD *next_global_thread(THD *thd);67THD *next_global_thread(THD *thd);
6768
=== modified file 'Percona-Server/include/welcome_copyright_notice.h'
--- Percona-Server/include/welcome_copyright_notice.h 2012-08-07 13:37:13 +0000
+++ Percona-Server/include/welcome_copyright_notice.h 2013-02-18 05:17:25 +0000
@@ -1,4 +1,4 @@
1/* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.1/* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
22
3 This program is free software; you can redistribute it and/or modify3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by4 it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
16#ifndef _welcome_copyright_notice_h_16#ifndef _welcome_copyright_notice_h_
17#define _welcome_copyright_notice_h_17#define _welcome_copyright_notice_h_
1818
19#define COPYRIGHT_NOTICE_CURRENT_YEAR "2012"19#define COPYRIGHT_NOTICE_CURRENT_YEAR "2013"
2020
21/*21/*
22 This define specifies copyright notice which is displayed by every MySQL22 This define specifies copyright notice which is displayed by every MySQL
2323
=== modified file 'Percona-Server/mysql-test/CMakeLists.txt'
--- Percona-Server/mysql-test/CMakeLists.txt 2012-02-16 09:48:16 +0000
+++ Percona-Server/mysql-test/CMakeLists.txt 2013-02-18 05:17:25 +0000
@@ -1,4 +1,4 @@
1# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.1# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
2# 2#
3# This program is free software; you can redistribute it and/or modify3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by4# it under the terms of the GNU General Public License as published by
@@ -150,8 +150,10 @@
150FILE(GLOB infiles "collections/*.in")150FILE(GLOB infiles "collections/*.in")
151FOREACH(collin ${infiles})151FOREACH(collin ${infiles})
152 STRING(REPLACE ".in" "" collection ${collin})152 STRING(REPLACE ".in" "" collection ${collin})
153 STRING(REPLACE ".in" ".done" colldone ${collin})
153 # Only generate file once154 # Only generate file once
154 IF(NOT EXISTS ${collection})155 IF(NOT EXISTS ${colldone})
155 PROCESS_COLLECTION_INCLUDE(${collin} ${collection})156 PROCESS_COLLECTION_INCLUDE(${collin} ${collection})
157 FILE(APPEND ${colldone} "${collin}\n")
156 ENDIF()158 ENDIF()
157ENDFOREACH()159ENDFOREACH()
158160
=== modified file 'Percona-Server/mysql-test/collections/default.daily'
--- Percona-Server/mysql-test/collections/default.daily 2011-03-11 09:12:58 +0000
+++ Percona-Server/mysql-test/collections/default.daily 2013-02-18 05:17:25 +0000
@@ -1,5 +1,5 @@
11
2perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features --skip-test-list=collections/disabled-daily.list --unit-tests2perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features --skip-test-list=collections/disabled-daily.list
3perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-daily.list3perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-daily.list
4perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=row --vardir=var-row --mysqld=--binlog-format=row --skip-test-list=collections/disabled-daily.list4perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=row --vardir=var-row --mysqld=--binlog-format=row --skip-test-list=collections/disabled-daily.list
5perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=ps_row --vardir=var-ps_row --mysqld=--binlog-format=row --ps-protocol --skip-test-list=collections/disabled-daily.list5perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=ps_row --vardir=var-ps_row --mysqld=--binlog-format=row --ps-protocol --skip-test-list=collections/disabled-daily.list
66
=== modified file 'Percona-Server/mysql-test/collections/default.experimental'
--- Percona-Server/mysql-test/collections/default.experimental 2012-02-03 14:23:33 +0000
+++ Percona-Server/mysql-test/collections/default.experimental 2013-02-18 05:17:25 +0000
@@ -18,9 +18,4 @@
18sys_vars.max_sp_recursion_depth_func @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun18sys_vars.max_sp_recursion_depth_func @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
19sys_vars.wait_timeout_func # Bug#11750645 2010-04-26 alik wait_timeout_func fails19sys_vars.wait_timeout_func # Bug#11750645 2010-04-26 alik wait_timeout_func fails
2020
21# BUG #59055 : All ndb tests should be removed from the repository
22# Leaving the sys_vars tests for now. sys_vars.all_vars.test fails on removing ndb tests
23sys_vars.ndb_log_update_as_write_basic
24sys_vars.have_ndbcluster_basic
25sys_vars.ndb_log_updated_only_basic
26sys_vars.rpl_init_slave_func # Bug#12535301 2011-05-09 andrei sys_vars.rpl_init_slave_func mismatches in daily-5.521sys_vars.rpl_init_slave_func # Bug#12535301 2011-05-09 andrei sys_vars.rpl_init_slave_func mismatches in daily-5.5
2722
=== modified file 'Percona-Server/mysql-test/collections/default.push'
--- Percona-Server/mysql-test/collections/default.push 2011-02-21 12:56:43 +0000
+++ Percona-Server/mysql-test/collections/default.push 2013-02-18 05:17:25 +0000
@@ -1,5 +1,6 @@
1perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests1perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-test-list=collections/disabled-per-push.list
2perl mysql-test-run.pl --timer --force --parallel=auto --comment=ps_row --vardir=var-ps_row --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list2perl mysql-test-run.pl --timer --force --parallel=auto --comment=ps_row --vardir=var-ps_row --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-test-list=collections/disabled-per-push.list
3perl mysql-test-run.pl --timer --force --parallel=auto --comment=embedded --vardir=var-emebbed --embedded --experimental=collections/default.experimental --skip-ndb3perl mysql-test-run.pl --timer --force --parallel=auto --comment=embedded --vardir=var-emebbed --embedded --experimental=collections/default.experimental
4perl mysql-test-run.pl --timer --force --parallel=auto --comment=rpl_binlog_row --vardir=var-rpl_binlog_row --suite=rpl,binlog --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list4perl mysql-test-run.pl --timer --force --parallel=auto --comment=rpl_binlog_row --vardir=var-rpl_binlog_row --suite=rpl,binlog --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-test-list=collections/disabled-per-push.list
5perl mysql-test-run.pl --timer --force --parallel=auto --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 --experimental=collections/default.experimental --skip-ndb5perl mysql-test-run.pl --timer --force --parallel=auto --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 --experimental=collections/default.experimental
6
67
=== modified file 'Percona-Server/mysql-test/collections/default.release.in'
--- Percona-Server/mysql-test/collections/default.release.in 2011-09-29 08:42:23 +0000
+++ Percona-Server/mysql-test/collections/default.release.in 2013-02-18 05:17:25 +0000
@@ -4,14 +4,14 @@
4# include default.daily4# include default.daily
5# include default.weekly5# include default.weekly
66
7perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=debug --vardir=var-debug --skip-ndbcluster --skip-rpl --report-features --debug-server7perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=debug --vardir=var-debug --skip-rpl --report-features --debug-server
8perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --skip-ndbcluster --report-features8perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features
9perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --skip-ndbcluster --ps-protocol9perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --ps-protocol
10perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs1+ps --vardir=var-funcs_1_ps --suite=funcs_1 --ps-protocol10perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs1+ps --vardir=var-funcs_1_ps --suite=funcs_1 --ps-protocol
11perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs2 --vardir=var-funcs2 --suite=funcs_211perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs2 --vardir=var-funcs2 --suite=funcs_2
12perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts12perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts
13perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=stress --vardir=var-stress --suite=stress13perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=stress --vardir=var-stress --suite=stress
14perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=jp --vardir=var-jp --suite=jp14perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=jp --vardir=var-jp --suite=jp
15perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded-server --skip-rpl --skip-ndbcluster15perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded-server --skip-rpl
16perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist --vardir=var-nist --suite=nist16perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist --vardir=var-nist --suite=nist
17perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-nist_ps --suite=nist --ps-protocol17perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-nist_ps --suite=nist --ps-protocol
1818
=== removed file 'Percona-Server/mysql-test/include/get_binlog_dump_thread_id.inc'
--- Percona-Server/mysql-test/include/get_binlog_dump_thread_id.inc 2007-02-26 08:16:22 +0000
+++ Percona-Server/mysql-test/include/get_binlog_dump_thread_id.inc 1970-01-01 00:00:00 +0000
@@ -1,22 +0,0 @@
1--exec $MYSQL test -e "show processlist" > $MYSQLTEST_VARDIR/tmp/bl_dump_thread_id
2--disable_warnings
3drop table if exists t999;
4--enable_warnings
5# Create a table to hold the process list
6create temporary table t999(
7 id int,
8 user char(255),
9 host char(255),
10 db char(255),
11 Command char(255),
12 time int,
13 State char(255),
14 info char(255)
15);
16# Load processlist into table, headers will create seom warnings
17--disable_warnings
18--replace_result $MYSQLTEST_VARDIR "."
19eval LOAD DATA INFILE "$MYSQLTEST_VARDIR/tmp/bl_dump_thread_id" into table t999;
20--enable_warnings
21let $id = `select Id from t999 where Command="Binlog Dump"`;
22drop table t999;
230
=== modified file 'Percona-Server/mysql-test/lib/My/SafeProcess/CMakeLists.txt'
--- Percona-Server/mysql-test/lib/My/SafeProcess/CMakeLists.txt 2011-01-18 10:21:37 +0000
+++ Percona-Server/mysql-test/lib/My/SafeProcess/CMakeLists.txt 2013-02-18 05:17:25 +0000
@@ -29,4 +29,4 @@
29IF(WIN32)29IF(WIN32)
30 INSTALL(TARGETS my_safe_kill DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test)30 INSTALL(TARGETS my_safe_kill DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test)
31ENDIF()31ENDIF()
32INSTALL(FILES safe_process.pl Base.pm DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test)32INSTALL(FILES Base.pm DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test)
3333
=== modified file 'Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.cc'
--- Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.cc 2012-10-09 10:50:16 +0000
+++ Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.cc 2013-02-18 05:17:25 +0000
@@ -152,15 +152,19 @@
152 pid_t own_pid= getpid();152 pid_t own_pid= getpid();
153 pid_t parent_pid= getppid();153 pid_t parent_pid= getppid();
154 bool nocore = false;154 bool nocore = false;
155 struct sigaction sigchld_action;155 struct sigaction sa,sa_abort;
156156
157 sigchld_action.sa_handler= handle_signal;157 sa.sa_handler= handle_signal;
158 sigchld_action.sa_flags= SA_NOCLDSTOP;158 sa.sa_flags= SA_NOCLDSTOP;
159 sigemptyset(&sa.sa_mask);
160
161 sa_abort.sa_handler= handle_abort;
162 sigemptyset(&sa_abort.sa_mask);
159 /* Install signal handlers */163 /* Install signal handlers */
160 signal(SIGTERM, handle_signal);164 sigaction(SIGTERM, &sa,NULL);
161 signal(SIGINT, handle_signal);165 sigaction(SIGINT, &sa,NULL);
162 sigaction(SIGCHLD, &sigchld_action, NULL);166 sigaction(SIGCHLD, &sa,NULL);
163 signal(SIGABRT, handle_abort);167 sigaction(SIGABRT, &sa_abort,NULL);
164168
165 sprintf(safe_process_name, "safe_process[%ld]", (long) own_pid);169 sprintf(safe_process_name, "safe_process[%ld]", (long) own_pid);
166170
167171
=== removed file 'Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.pl'
--- Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.pl 2011-07-03 23:48:19 +0000
+++ Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.pl 1970-01-01 00:00:00 +0000
@@ -1,166 +0,0 @@
1#!/usr/bin/perl
2# -*- cperl -*-
3
4# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; version 2 of the License.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19use strict;
20use warnings;
21
22use lib 'lib';
23use My::SafeProcess::Base;
24use POSIX qw(WNOHANG);
25
26###########################################################################
27# Util functions
28###########################################################################
29
30#
31#Print message to stderr
32#
33my $verbose= 0;
34sub message {
35 if ($verbose > 0){
36 use Time::localtime;
37 my $tm= localtime();
38 my $timestamp= sprintf("%02d%02d%02d %2d:%02d:%02d",
39 $tm->year % 100, $tm->mon+1, $tm->mday,
40 $tm->hour, $tm->min, $tm->sec);
41 print STDERR $timestamp, " monitor[$$]: ", @_, "\n";
42 }
43}
44
45
46###########################################################################
47# Main program
48###########################################################################
49
50my $terminated= 0;
51
52# Protect against being killed in the middle
53# of child creation, just set the terminated flag
54# to make sure the child will be killed off
55# when program is ready to do that
56$SIG{TERM}= sub { message("!Got signal @_"); $terminated= 1; };
57$SIG{INT}= sub { message("!Got signal @_"); $terminated= 1; };
58
59my $parent_pid= getppid();
60
61my $found_double_dash= 0;
62while (my $arg= shift(@ARGV)){
63
64 if ($arg =~ /^--$/){
65 $found_double_dash= 1;
66 last;
67 }
68 elsif ($arg =~ /^--verbose$/){
69 $verbose= 1;
70 }
71 else {
72 die "Unknown option: $arg";
73 }
74}
75
76my $path= shift(@ARGV); # Executable
77
78die "usage:\n" .
79 " safe_process.pl [opts] -- <path> [<args> [...<args_n>]]"
80 unless defined $path || $found_double_dash;
81
82
83message("started");
84#message("path: '$path'");
85message("parent: $parent_pid");
86
87# Start process to monitor
88my $child_pid=
89 create_process(
90 path => $path,
91 args => \@ARGV,
92 setpgrp => 1,
93 );
94message("Started child $child_pid");
95
96eval {
97 sub handle_signal {
98 $terminated= 1;
99 message("Got signal @_");
100
101 # Ignore all signals
102 foreach my $name (keys %SIG){
103 $SIG{$name}= 'IGNORE';
104 }
105
106 die "signaled\n";
107 };
108 local $SIG{TERM}= \&handle_signal;
109 local $SIG{INT}= \&handle_signal;
110 local $SIG{CHLD}= sub {
111 message("Got signal @_");
112 kill('KILL', -$child_pid);
113 my $ret= waitpid($child_pid, 0);
114 if ($? & 127){
115 exit(65); # Killed by signal
116 }
117 exit($? >> 8);
118 };
119
120 # Monitoring loop
121 while(!$terminated) {
122
123 # Check if parent is still alive
124 if (kill(0, $parent_pid) < 1){
125 message("Parent is not alive anymore");
126 last;
127 }
128
129 # Wait for child to terminate but wakeup every
130 # second to also check that parent is still alive
131 my $ret_pid;
132 $ret_pid= waitpid($child_pid, &WNOHANG);
133 if ($ret_pid == $child_pid) {
134 # Process has exited, collect return status
135 my $ret_code= $? >> 8;
136 message("Child exit: $ret_code");
137 # Exit with exit status of the child
138 exit ($ret_code);
139 }
140 sleep(1);
141 }
142};
143if ( $@ ) {
144 # The monitoring loop should have been
145 # broken by handle_signal
146 warn "Unexpected: $@" unless ( $@ =~ /signaled/ );
147}
148
149# Use negative pid in order to kill the whole
150# process group
151#
152my $ret= kill('KILL', -$child_pid);
153message("Killed child: $child_pid, ret: $ret");
154if ($ret > 0) {
155 message("Killed child: $child_pid");
156 # Wait blocking for the child to return
157 my $ret_pid= waitpid($child_pid, 0);
158 if ($ret_pid != $child_pid){
159 message("unexpected pid $ret_pid returned from waitpid($child_pid)");
160 }
161}
162
163message("DONE!");
164exit (1);
165
166
1670
=== modified file 'Percona-Server/mysql-test/lib/mtr_cases.pm'
--- Percona-Server/mysql-test/lib/mtr_cases.pm 2013-01-17 22:50:22 +0000
+++ Percona-Server/mysql-test/lib/mtr_cases.pm 2013-02-18 05:17:25 +0000
@@ -963,18 +963,11 @@
963 if ( $tinfo->{'ndb_test'} )963 if ( $tinfo->{'ndb_test'} )
964 {964 {
965 # This is a NDB test965 # This is a NDB test
966 if ( $::opt_skip_ndbcluster == 2 )966 if ( $::ndbcluster_enabled == 0)
967 {967 {
968 # Ndb is not supported, skip it968 # ndbcluster is disabled
969 $tinfo->{'skip'}= 1;969 $tinfo->{'skip'}= 1;
970 $tinfo->{'comment'}= "No ndbcluster support or ndb tests not enabled";970 $tinfo->{'comment'}= "ndbcluster disabled";
971 return $tinfo;
972 }
973 elsif ( $::opt_skip_ndbcluster )
974 {
975 # All ndb test's should be skipped
976 $tinfo->{'skip'}= 1;
977 $tinfo->{'comment'}= "No ndbcluster tests(--skip-ndbcluster)";
978 return $tinfo;971 return $tinfo;
979 }972 }
980 }973 }
981974
=== modified file 'Percona-Server/mysql-test/lib/mtr_report.pm'
--- Percona-Server/mysql-test/lib/mtr_report.pm 2012-05-10 07:49:14 +0000
+++ Percona-Server/mysql-test/lib/mtr_report.pm 2013-02-18 05:17:25 +0000
@@ -28,7 +28,7 @@
28 mtr_verbose_restart mtr_report_test_passed28 mtr_verbose_restart mtr_report_test_passed
29 mtr_report_test_skipped mtr_print29 mtr_report_test_skipped mtr_print
30 mtr_report_test_subunit30 mtr_report_test_subunit
31 mtr_report_test);31 mtr_report_test isotime);
3232
33use mtr_match;33use mtr_match;
34use Subunit;34use Subunit;
@@ -111,6 +111,8 @@
111 $tinfo->{'result'}= 'MTR_RES_PASSED';111 $tinfo->{'result'}= 'MTR_RES_PASSED';
112112
113 mtr_report_test($tinfo);113 mtr_report_test($tinfo);
114
115 resfile_global("endtime ", isotime (time));
114}116}
115117
116118
@@ -598,4 +600,12 @@
598}600}
599601
600602
603# Used by --result-file for for formatting times
604
605sub isotime($) {
606 my ($sec,$min,$hr,$day,$mon,$yr)= gmtime($_[0]);
607 return sprintf "%d-%02d-%02dT%02d:%02d:%02dZ",
608 $yr+1900, $mon+1, $day, $hr, $min, $sec;
609}
610
6011;6111;
602612
=== modified file 'Percona-Server/mysql-test/mysql-test-run.pl'
--- Percona-Server/mysql-test/mysql-test-run.pl 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/mysql-test-run.pl 2013-02-18 05:17:25 +0000
@@ -312,8 +312,9 @@
312312
313our $opt_warnings= 1;313our $opt_warnings= 1;
314314
315our $opt_include_ndbcluster= 0;315our $ndbcluster_enabled= 0;
316our $opt_skip_ndbcluster= 1;316my $opt_include_ndbcluster= 0;
317my $opt_skip_ndbcluster= 0;
317318
318my $exe_ndbd;319my $exe_ndbd;
319my $exe_ndbmtd;320my $exe_ndbmtd;
@@ -336,14 +337,6 @@
336select(STDOUT);337select(STDOUT);
337$| = 1; # Automatically flush STDOUT338$| = 1; # Automatically flush STDOUT
338339
339# Used by --result-file for for formatting times
340
341sub isotime($) {
342 my ($sec,$min,$hr,$day,$mon,$yr)= gmtime($_[0]);
343 return sprintf "%d-%02d-%02dT%02d:%02d:%02dZ",
344 $yr+1900, $mon+1, $day, $hr, $min, $sec;
345}
346
347main();340main();
348341
349342
@@ -367,26 +360,6 @@
367360
368 if (!$opt_suites) {361 if (!$opt_suites) {
369 $opt_suites= $DEFAULT_SUITES;362 $opt_suites= $DEFAULT_SUITES;
370
371 # Check for any extra suites to enable based on the path name
372 my %extra_suites=
373 (
374 "mysql-5.1-new-ndb" => "ndb_team",
375 "mysql-5.1-new-ndb-merge" => "ndb_team",
376 "mysql-5.1-telco-6.2" => "ndb_team",
377 "mysql-5.1-telco-6.2-merge" => "ndb_team",
378 "mysql-5.1-telco-6.3" => "ndb_team",
379 "mysql-6.0-ndb" => "ndb_team",
380 );
381
382 foreach my $dir ( reverse splitdir($basedir) ) {
383 my $extra_suite= $extra_suites{$dir};
384 if (defined $extra_suite) {
385 mtr_report("Found extra suite: $extra_suite");
386 $opt_suites= "$extra_suite,$opt_suites";
387 last;
388 }
389 }
390 }363 }
391 mtr_report("Using suites: $opt_suites") unless @opt_cases;364 mtr_report("Using suites: $opt_suites") unless @opt_cases;
392365
@@ -410,7 +383,6 @@
410 unshift(@$tests, $tinfo);383 unshift(@$tests, $tinfo);
411 }384 }
412385
413 print "vardir: $opt_vardir\n";
414 initialize_servers();386 initialize_servers();
415387
416 #######################################################################388 #######################################################################
@@ -727,6 +699,10 @@
727 else {699 else {
728 mtr_report("\nRetrying test $tname, ".700 mtr_report("\nRetrying test $tname, ".
729 "attempt($retries/$opt_retry)...\n");701 "attempt($retries/$opt_retry)...\n");
702 #saving the log file as filename.failed in case of retry
703 my $worker_logdir= $result->{savedir};
704 my $log_file_name=dirname($worker_logdir)."/".$result->{shortname}.".log";
705 rename $log_file_name,$log_file_name.".failed";
730 delete($result->{result});706 delete($result->{result});
731 $result->{retries}= $retries+1;707 $result->{retries}= $retries+1;
732 $result->write_test($sock, 'TESTCASE');708 $result->write_test($sock, 'TESTCASE');
@@ -1073,7 +1049,7 @@
1073 # Control what test suites or cases to run1049 # Control what test suites or cases to run
1074 'force' => \$opt_force,1050 'force' => \$opt_force,
1075 'with-ndbcluster-only' => \&collect_option,1051 'with-ndbcluster-only' => \&collect_option,
1076 'include-ndbcluster' => \$opt_include_ndbcluster,1052 'ndb|include-ndbcluster' => \$opt_include_ndbcluster,
1077 'skip-ndbcluster|skip-ndb' => \$opt_skip_ndbcluster,1053 'skip-ndbcluster|skip-ndb' => \$opt_skip_ndbcluster,
1078 'suite|suites=s' => \$opt_suites,1054 'suite|suites=s' => \$opt_suites,
1079 'skip-rpl' => \&collect_option,1055 'skip-rpl' => \&collect_option,
@@ -1523,7 +1499,6 @@
1523 }1499 }
1524 $ENV{'PATH'}= "$ENV{'PATH'}".$separator.$lib_mysqld;1500 $ENV{'PATH'}= "$ENV{'PATH'}".$separator.$lib_mysqld;
1525 }1501 }
1526 $opt_skip_ndbcluster= 1; # Turn off use of NDB cluster
1527 $opt_skip_ssl= 1; # Turn off use of SSL1502 $opt_skip_ssl= 1; # Turn off use of SSL
15281503
1529 # Turn off use of bin log1504 # Turn off use of bin log
@@ -2010,7 +1985,7 @@
20101985
2011 $exe_mysql_embedded= mtr_exe_maybe_exists("$basedir/libmysqld/examples/mysql_embedded");1986 $exe_mysql_embedded= mtr_exe_maybe_exists("$basedir/libmysqld/examples/mysql_embedded");
20121987
2013 if ( ! $opt_skip_ndbcluster )1988 if ( $ndbcluster_enabled )
2014 {1989 {
2015 # Look for single threaded NDB1990 # Look for single threaded NDB
2016 $exe_ndbd=1991 $exe_ndbd=
@@ -2281,7 +2256,7 @@
2281 # --------------------------------------------------------------------------2256 # --------------------------------------------------------------------------
2282 # Add the path where libndbclient can be found2257 # Add the path where libndbclient can be found
2283 # --------------------------------------------------------------------------2258 # --------------------------------------------------------------------------
2284 if ( !$opt_skip_ndbcluster )2259 if ( $ndbcluster_enabled )
2285 {2260 {
2286 push(@ld_library_paths, "$basedir/storage/ndb/src/.libs");2261 push(@ld_library_paths, "$basedir/storage/ndb/src/.libs");
2287 }2262 }
@@ -2369,7 +2344,7 @@
2369 # ----------------------------------------------------2344 # ----------------------------------------------------
2370 # Setup env for NDB2345 # Setup env for NDB
2371 # ----------------------------------------------------2346 # ----------------------------------------------------
2372 if ( ! $opt_skip_ndbcluster )2347 if ( $ndbcluster_enabled )
2373 {2348 {
2374 $ENV{'NDB_MGM'}=2349 $ENV{'NDB_MGM'}=
2375 my_find_bin($bindir,2350 my_find_bin($bindir,
@@ -2764,37 +2739,87 @@
2764sub check_ndbcluster_support ($) {2739sub check_ndbcluster_support ($) {
2765 my $mysqld_variables= shift;2740 my $mysqld_variables= shift;
27662741
2742 my $ndbcluster_supported = 0;
2743 if ($mysqld_variables{'ndb-connectstring'})
2744 {
2745 $ndbcluster_supported = 1;
2746 }
2747
2748 if ($opt_skip_ndbcluster && $opt_include_ndbcluster)
2749 {
2750 # User is ambivalent. Theoretically the arg which was
2751 # given last on command line should win, but that order is
2752 # unknown at this time.
2753 mtr_error("Ambigous command, both --include-ndbcluster " .
2754 " and --skip-ndbcluster was specified");
2755 }
2756
2767 # Check if this is MySQL Cluster, ie. mysql version string ends2757 # Check if this is MySQL Cluster, ie. mysql version string ends
2768 # with -ndb-Y.Y.Y[-status]2758 # with -ndb-Y.Y.Y[-status]
2769 if ( defined $mysql_version_extra &&2759 if ( defined $mysql_version_extra &&
2770 $mysql_version_extra =~ /^-ndb-/ )2760 $mysql_version_extra =~ /-ndb-([0-9]*)\.([0-9]*)\.([0-9]*)/ )
2771 {2761 {
2772 mtr_report(" - MySQL Cluster");2762 # MySQL Cluster tree
2773 # Enable ndb engine and add more test suites2763 mtr_report(" - MySQL Cluster detected");
2774 $opt_include_ndbcluster = 1;2764
2775 $DEFAULT_SUITES.=",ndb";2765 if ($opt_skip_ndbcluster)
2776 }2766 {
27772767 mtr_report(" - skipping ndbcluster(--skip-ndbcluster)");
2778 if ($opt_include_ndbcluster)2768 return;
2779 {2769 }
2780 $opt_skip_ndbcluster= 0;2770
2781 }2771 if (!$ndbcluster_supported)
27822772 {
2783 if ($opt_skip_ndbcluster)2773 # MySQL Cluster tree, but mysqld was not compiled with
2784 {2774 # ndbcluster -> fail unless --skip-ndbcluster was used
2785 mtr_report(" - skipping ndbcluster");2775 mtr_error("This is MySQL Cluster but mysqld does not " .
2786 return;2776 "support ndbcluster. Use --skip-ndbcluster to " .
2787 }2777 "force mtr to run without it.");
27882778 }
2789 if ( ! $mysqld_variables{'ndb-connectstring'} )2779
2790 {2780 # mysqld was compiled with ndbcluster -> auto enable
2791 mtr_report(" - skipping ndbcluster, mysqld not compiled with ndbcluster");2781 }
2792 $opt_skip_ndbcluster= 2;2782 else
2793 return;2783 {
2794 }2784 # Not a MySQL Cluster tree
27952785 if (!$ndbcluster_supported)
2796 mtr_report(" - using ndbcluster when necessary, mysqld supports it");2786 {
27972787 if ($opt_include_ndbcluster)
2788 {
2789 mtr_error("Could not detect ndbcluster support ".
2790 "requested with --include-ndbcluster");
2791 }
2792
2793 # Silently skip, mysqld was compiled without ndbcluster
2794 # which is the default case
2795 return;
2796 }
2797
2798 if ($opt_skip_ndbcluster)
2799 {
2800 # Compiled with ndbcluster but ndbcluster skipped
2801 mtr_report(" - skipping ndbcluster(--skip-ndbcluster)");
2802 return;
2803 }
2804
2805
2806 # Not a MySQL Cluster tree, enable ndbcluster
2807 # if --include-ndbcluster was used
2808 if ($opt_include_ndbcluster)
2809 {
2810 # enable ndbcluster
2811 }
2812 else
2813 {
2814 mtr_report(" - skipping ndbcluster(disabled by default)");
2815 return;
2816 }
2817 }
2818
2819 mtr_report(" - enabling ndbcluster");
2820 $ndbcluster_enabled= 1;
2821 # Add MySQL Cluster test suites
2822 $DEFAULT_SUITES.=",ndb,ndb_binlog,rpl_ndb,ndb_rpl,ndb_memcache";
2798 return;2823 return;
2799}2824}
28002825
28012826
=== modified file 'Percona-Server/mysql-test/r/ddl_i18n_koi8r.result'
--- Percona-Server/mysql-test/r/ddl_i18n_koi8r.result 2011-02-22 14:02:49 +0000
+++ Percona-Server/mysql-test/r/ddl_i18n_koi8r.result 2013-02-18 05:17:25 +0000
@@ -734,7 +734,7 @@
734/*!50003 SET @saved_sql_mode = @@sql_mode */ ;734/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
735/*!50003 SET sql_mode = '' */ ;735/*!50003 SET sql_mode = '' */ ;
736DELIMITER ;;736DELIMITER ;;
737/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p1`(737CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
738INOUT ÐÁÒÁÍ1 CHAR(10),738INOUT ÐÁÒÁÍ1 CHAR(10),
739OUT ÐÁÒÁÍ2 CHAR(10))739OUT ÐÁÒÁÍ2 CHAR(10))
740BEGIN740BEGIN
@@ -751,7 +751,7 @@
751@@character_set_client AS c8;751@@character_set_client AS c8;
752SET ÐÁÒÁÍ1 = 'a';752SET ÐÁÒÁÍ1 = 'a';
753SET ÐÁÒÁÍ2 = 'b';753SET ÐÁÒÁÍ2 = 'b';
754END */;;754END ;;
755DELIMITER ;755DELIMITER ;
756/*!50003 SET sql_mode = @saved_sql_mode */ ;756/*!50003 SET sql_mode = @saved_sql_mode */ ;
757/*!50003 SET character_set_client = @saved_cs_client */ ;757/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -768,7 +768,7 @@
768/*!50003 SET @saved_sql_mode = @@sql_mode */ ;768/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
769/*!50003 SET sql_mode = '' */ ;769/*!50003 SET sql_mode = '' */ ;
770DELIMITER ;;770DELIMITER ;;
771/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p2`(771CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
772INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,772INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
773OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)773OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
774BEGIN774BEGIN
@@ -785,7 +785,7 @@
785@@character_set_client AS c8;785@@character_set_client AS c8;
786SET ÐÁÒÁÍ1 = 'a';786SET ÐÁÒÁÍ1 = 'a';
787SET ÐÁÒÁÍ2 = 'b';787SET ÐÁÒÁÍ2 = 'b';
788END */;;788END ;;
789DELIMITER ;789DELIMITER ;
790/*!50003 SET sql_mode = @saved_sql_mode */ ;790/*!50003 SET sql_mode = @saved_sql_mode */ ;
791/*!50003 SET character_set_client = @saved_cs_client */ ;791/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -810,7 +810,7 @@
810/*!50003 SET @saved_sql_mode = @@sql_mode */ ;810/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
811/*!50003 SET sql_mode = '' */ ;811/*!50003 SET sql_mode = '' */ ;
812DELIMITER ;;812DELIMITER ;;
813/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p3`(813CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
814INOUT ÐÁÒÁÍ1 CHAR(10),814INOUT ÐÁÒÁÍ1 CHAR(10),
815OUT ÐÁÒÁÍ2 CHAR(10))815OUT ÐÁÒÁÍ2 CHAR(10))
816BEGIN816BEGIN
@@ -827,7 +827,7 @@
827@@character_set_client AS c8;827@@character_set_client AS c8;
828SET ÐÁÒÁÍ1 = 'a';828SET ÐÁÒÁÍ1 = 'a';
829SET ÐÁÒÁÍ2 = 'b';829SET ÐÁÒÁÍ2 = 'b';
830END */;;830END ;;
831DELIMITER ;831DELIMITER ;
832/*!50003 SET sql_mode = @saved_sql_mode */ ;832/*!50003 SET sql_mode = @saved_sql_mode */ ;
833/*!50003 SET character_set_client = @saved_cs_client */ ;833/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -844,7 +844,7 @@
844/*!50003 SET @saved_sql_mode = @@sql_mode */ ;844/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
845/*!50003 SET sql_mode = '' */ ;845/*!50003 SET sql_mode = '' */ ;
846DELIMITER ;;846DELIMITER ;;
847/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p4`(847CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
848INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,848INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
849OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)849OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
850BEGIN850BEGIN
@@ -861,7 +861,7 @@
861@@character_set_client AS c8;861@@character_set_client AS c8;
862SET ÐÁÒÁÍ1 = 'a';862SET ÐÁÒÁÍ1 = 'a';
863SET ÐÁÒÁÍ2 = 'b';863SET ÐÁÒÁÍ2 = 'b';
864END */;;864END ;;
865DELIMITER ;865DELIMITER ;
866/*!50003 SET sql_mode = @saved_sql_mode */ ;866/*!50003 SET sql_mode = @saved_sql_mode */ ;
867/*!50003 SET character_set_client = @saved_cs_client */ ;867/*!50003 SET character_set_client = @saved_cs_client */ ;
868868
=== modified file 'Percona-Server/mysql-test/r/ddl_i18n_utf8.result'
--- Percona-Server/mysql-test/r/ddl_i18n_utf8.result 2011-02-22 14:02:49 +0000
+++ Percona-Server/mysql-test/r/ddl_i18n_utf8.result 2013-02-18 05:17:25 +0000
@@ -734,7 +734,7 @@
734/*!50003 SET @saved_sql_mode = @@sql_mode */ ;734/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
735/*!50003 SET sql_mode = '' */ ;735/*!50003 SET sql_mode = '' */ ;
736DELIMITER ;;736DELIMITER ;;
737/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p1`(737CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
738INOUT парам1 CHAR(10),738INOUT парам1 CHAR(10),
739OUT парам2 CHAR(10))739OUT парам2 CHAR(10))
740BEGIN740BEGIN
@@ -751,7 +751,7 @@
751@@character_set_client AS c8;751@@character_set_client AS c8;
752SET парам1 = 'a';752SET парам1 = 'a';
753SET парам2 = 'b';753SET парам2 = 'b';
754END */;;754END ;;
755DELIMITER ;755DELIMITER ;
756/*!50003 SET sql_mode = @saved_sql_mode */ ;756/*!50003 SET sql_mode = @saved_sql_mode */ ;
757/*!50003 SET character_set_client = @saved_cs_client */ ;757/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -768,7 +768,7 @@
768/*!50003 SET @saved_sql_mode = @@sql_mode */ ;768/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
769/*!50003 SET sql_mode = '' */ ;769/*!50003 SET sql_mode = '' */ ;
770DELIMITER ;;770DELIMITER ;;
771/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p2`(771CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
772INOUT парам1 CHAR(10) CHARACTER SET utf8,772INOUT парам1 CHAR(10) CHARACTER SET utf8,
773OUT парам2 CHAR(10) CHARACTER SET utf8)773OUT парам2 CHAR(10) CHARACTER SET utf8)
774BEGIN774BEGIN
@@ -785,7 +785,7 @@
785@@character_set_client AS c8;785@@character_set_client AS c8;
786SET парам1 = 'a';786SET парам1 = 'a';
787SET парам2 = 'b';787SET парам2 = 'b';
788END */;;788END ;;
789DELIMITER ;789DELIMITER ;
790/*!50003 SET sql_mode = @saved_sql_mode */ ;790/*!50003 SET sql_mode = @saved_sql_mode */ ;
791/*!50003 SET character_set_client = @saved_cs_client */ ;791/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -810,7 +810,7 @@
810/*!50003 SET @saved_sql_mode = @@sql_mode */ ;810/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
811/*!50003 SET sql_mode = '' */ ;811/*!50003 SET sql_mode = '' */ ;
812DELIMITER ;;812DELIMITER ;;
813/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p3`(813CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
814INOUT парам1 CHAR(10),814INOUT парам1 CHAR(10),
815OUT парам2 CHAR(10))815OUT парам2 CHAR(10))
816BEGIN816BEGIN
@@ -827,7 +827,7 @@
827@@character_set_client AS c8;827@@character_set_client AS c8;
828SET парам1 = 'a';828SET парам1 = 'a';
829SET парам2 = 'b';829SET парам2 = 'b';
830END */;;830END ;;
831DELIMITER ;831DELIMITER ;
832/*!50003 SET sql_mode = @saved_sql_mode */ ;832/*!50003 SET sql_mode = @saved_sql_mode */ ;
833/*!50003 SET character_set_client = @saved_cs_client */ ;833/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -844,7 +844,7 @@
844/*!50003 SET @saved_sql_mode = @@sql_mode */ ;844/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
845/*!50003 SET sql_mode = '' */ ;845/*!50003 SET sql_mode = '' */ ;
846DELIMITER ;;846DELIMITER ;;
847/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p4`(847CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
848INOUT парам1 CHAR(10) CHARACTER SET utf8,848INOUT парам1 CHAR(10) CHARACTER SET utf8,
849OUT парам2 CHAR(10) CHARACTER SET utf8)849OUT парам2 CHAR(10) CHARACTER SET utf8)
850BEGIN850BEGIN
@@ -861,7 +861,7 @@
861@@character_set_client AS c8;861@@character_set_client AS c8;
862SET парам1 = 'a';862SET парам1 = 'a';
863SET парам2 = 'b';863SET парам2 = 'b';
864END */;;864END ;;
865DELIMITER ;865DELIMITER ;
866/*!50003 SET sql_mode = @saved_sql_mode */ ;866/*!50003 SET sql_mode = @saved_sql_mode */ ;
867/*!50003 SET character_set_client = @saved_cs_client */ ;867/*!50003 SET character_set_client = @saved_cs_client */ ;
868868
=== modified file 'Percona-Server/mysql-test/r/group_min_max_innodb.result'
--- Percona-Server/mysql-test/r/group_min_max_innodb.result 2011-10-19 12:07:14 +0000
+++ Percona-Server/mysql-test/r/group_min_max_innodb.result 2013-02-18 05:17:25 +0000
@@ -70,7 +70,7 @@
701 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary701 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
71explain select distinct f1, f2 from t1;71explain select distinct f1, f2 from t1;
72id select_type table type possible_keys key key_len ref rows Extra72id select_type table type possible_keys key key_len ref rows Extra
731 SIMPLE t1 range NULL PRIMARY 5 NULL 3 Using index for group-by; Using temporary731 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index
74drop table t1;74drop table t1;
75create table t1(pk int primary key) engine=innodb;75create table t1(pk int primary key) engine=innodb;
76create view v1 as select pk from t1 where pk < 20;76create view v1 as select pk from t1 where pk < 20;
7777
=== modified file 'Percona-Server/mysql-test/r/mysqlbinlog.result'
--- Percona-Server/mysql-test/r/mysqlbinlog.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/r/mysqlbinlog.result 2013-02-18 05:17:25 +0000
@@ -14,6 +14,7 @@
14flush logs;14flush logs;
1515
16--- Local --16--- Local --
17/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
17/*!40019 SET @@session.max_insert_delayed_threads=0*/;18/*!40019 SET @@session.max_insert_delayed_threads=0*/;
18/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;19/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
19DELIMITER /*!*/;20DELIMITER /*!*/;
@@ -95,8 +96,10 @@
95# End of log file96# End of log file
96ROLLBACK /* added by mysqlbinlog */;97ROLLBACK /* added by mysqlbinlog */;
97/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;98/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
99/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
98100
99--- Broken LOAD DATA --101--- Broken LOAD DATA --
102/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
100/*!40019 SET @@session.max_insert_delayed_threads=0*/;103/*!40019 SET @@session.max_insert_delayed_threads=0*/;
101/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;104/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
102DELIMITER /*!*/;105DELIMITER /*!*/;
@@ -131,8 +134,10 @@
131# End of log file134# End of log file
132ROLLBACK /* added by mysqlbinlog */;135ROLLBACK /* added by mysqlbinlog */;
133/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;136/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
137/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
134138
135--- --database --139--- --database --
140/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
136/*!40019 SET @@session.max_insert_delayed_threads=0*/;141/*!40019 SET @@session.max_insert_delayed_threads=0*/;
137/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;142/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
138DELIMITER /*!*/;143DELIMITER /*!*/;
@@ -186,8 +191,10 @@
186# End of log file191# End of log file
187ROLLBACK /* added by mysqlbinlog */;192ROLLBACK /* added by mysqlbinlog */;
188/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;193/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
194/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
189195
190--- --start-position --196--- --start-position --
197/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
191/*!40019 SET @@session.max_insert_delayed_threads=0*/;198/*!40019 SET @@session.max_insert_delayed_threads=0*/;
192/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;199/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
193DELIMITER /*!*/;200DELIMITER /*!*/;
@@ -213,8 +220,10 @@
213# End of log file220# End of log file
214ROLLBACK /* added by mysqlbinlog */;221ROLLBACK /* added by mysqlbinlog */;
215/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;222/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
223/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
216224
217--- Remote --225--- Remote --
226/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
218/*!40019 SET @@session.max_insert_delayed_threads=0*/;227/*!40019 SET @@session.max_insert_delayed_threads=0*/;
219/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;228/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
220DELIMITER /*!*/;229DELIMITER /*!*/;
@@ -296,8 +305,10 @@
296# End of log file305# End of log file
297ROLLBACK /* added by mysqlbinlog */;306ROLLBACK /* added by mysqlbinlog */;
298/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;307/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
308/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
299309
300--- Broken LOAD DATA --310--- Broken LOAD DATA --
311/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
301/*!40019 SET @@session.max_insert_delayed_threads=0*/;312/*!40019 SET @@session.max_insert_delayed_threads=0*/;
302/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;313/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
303DELIMITER /*!*/;314DELIMITER /*!*/;
@@ -332,8 +343,10 @@
332# End of log file343# End of log file
333ROLLBACK /* added by mysqlbinlog */;344ROLLBACK /* added by mysqlbinlog */;
334/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;345/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
346/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
335347
336--- --database --348--- --database --
349/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
337/*!40019 SET @@session.max_insert_delayed_threads=0*/;350/*!40019 SET @@session.max_insert_delayed_threads=0*/;
338/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;351/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
339DELIMITER /*!*/;352DELIMITER /*!*/;
@@ -387,8 +400,10 @@
387# End of log file400# End of log file
388ROLLBACK /* added by mysqlbinlog */;401ROLLBACK /* added by mysqlbinlog */;
389/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;402/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
403/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
390404
391--- --start-position --405--- --start-position --
406/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
392/*!40019 SET @@session.max_insert_delayed_threads=0*/;407/*!40019 SET @@session.max_insert_delayed_threads=0*/;
393/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;408/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
394DELIMITER /*!*/;409DELIMITER /*!*/;
@@ -414,8 +429,10 @@
414# End of log file429# End of log file
415ROLLBACK /* added by mysqlbinlog */;430ROLLBACK /* added by mysqlbinlog */;
416/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;431/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
432/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
417433
418--- reading stdin --434--- reading stdin --
435/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
419/*!40019 SET @@session.max_insert_delayed_threads=0*/;436/*!40019 SET @@session.max_insert_delayed_threads=0*/;
420/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;437/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
421DELIMITER /*!*/;438DELIMITER /*!*/;
@@ -435,6 +452,8 @@
435# End of log file452# End of log file
436ROLLBACK /* added by mysqlbinlog */;453ROLLBACK /* added by mysqlbinlog */;
437/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;454/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
455/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
456/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
438/*!40019 SET @@session.max_insert_delayed_threads=0*/;457/*!40019 SET @@session.max_insert_delayed_threads=0*/;
439/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;458/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
440DELIMITER /*!*/;459DELIMITER /*!*/;
@@ -453,6 +472,7 @@
453# End of log file472# End of log file
454ROLLBACK /* added by mysqlbinlog */;473ROLLBACK /* added by mysqlbinlog */;
455/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;474/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
475/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
456drop table t1,t2;476drop table t1,t2;
457flush logs;477flush logs;
458flush logs;478flush logs;
@@ -495,6 +515,7 @@
495drop procedure p1;515drop procedure p1;
496call p1();516call p1();
497ERROR 42000: PROCEDURE test.p1 does not exist517ERROR 42000: PROCEDURE test.p1 does not exist
518/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
498/*!40019 SET @@session.max_insert_delayed_threads=0*/;519/*!40019 SET @@session.max_insert_delayed_threads=0*/;
499/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;520/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
500DELIMITER /*!*/;521DELIMITER /*!*/;
@@ -517,6 +538,7 @@
517# End of log file538# End of log file
518ROLLBACK /* added by mysqlbinlog */;539ROLLBACK /* added by mysqlbinlog */;
519/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;540/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
541/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
520call p1();542call p1();
52115431
52215441
@@ -545,6 +567,7 @@
545D0AA567D0AA
546drop table t1;568drop table t1;
547flush logs;569flush logs;
570/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
548/*!40019 SET @@session.max_insert_delayed_threads=0*/;571/*!40019 SET @@session.max_insert_delayed_threads=0*/;
549/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;572/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
550DELIMITER /*!*/;573DELIMITER /*!*/;
@@ -634,6 +657,7 @@
634# End of log file657# End of log file
635ROLLBACK /* added by mysqlbinlog */;658ROLLBACK /* added by mysqlbinlog */;
636/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;659/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
660/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
637CREATE TABLE t1 (c1 CHAR(10));661CREATE TABLE t1 (c1 CHAR(10));
638FLUSH LOGS;662FLUSH LOGS;
639INSERT INTO t1 VALUES ('0123456789');663INSERT INTO t1 VALUES ('0123456789');
@@ -721,6 +745,7 @@
721FLUSH LOGS;745FLUSH LOGS;
722#746#
723# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified exists747# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified exists
748/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
724/*!40019 SET @@session.max_insert_delayed_threads=0*/;749/*!40019 SET @@session.max_insert_delayed_threads=0*/;
725/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;750/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
726DELIMITER /*!*/;751DELIMITER /*!*/;
@@ -772,8 +797,10 @@
772# End of log file797# End of log file
773ROLLBACK /* added by mysqlbinlog */;798ROLLBACK /* added by mysqlbinlog */;
774/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;799/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
800/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
775#801#
776# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified does not exist802# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified does not exist
803/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
777/*!40019 SET @@session.max_insert_delayed_threads=0*/;804/*!40019 SET @@session.max_insert_delayed_threads=0*/;
778/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;805/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
779DELIMITER /*!*/;806DELIMITER /*!*/;
@@ -806,8 +833,10 @@
806# End of log file833# End of log file
807ROLLBACK /* added by mysqlbinlog */;834ROLLBACK /* added by mysqlbinlog */;
808/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;835/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
836/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
809#837#
810# Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified exists838# Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified exists
839/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
811/*!40019 SET @@session.max_insert_delayed_threads=0*/;840/*!40019 SET @@session.max_insert_delayed_threads=0*/;
812/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;841/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
813DELIMITER /*!*/;842DELIMITER /*!*/;
@@ -849,8 +878,10 @@
849# End of log file878# End of log file
850ROLLBACK /* added by mysqlbinlog */;879ROLLBACK /* added by mysqlbinlog */;
851/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;880/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
881/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
852#882#
853# Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified does not exist883# Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified does not exist
884/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
854/*!40019 SET @@session.max_insert_delayed_threads=0*/;885/*!40019 SET @@session.max_insert_delayed_threads=0*/;
855/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;886/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
856DELIMITER /*!*/;887DELIMITER /*!*/;
@@ -877,6 +908,7 @@
877# End of log file908# End of log file
878ROLLBACK /* added by mysqlbinlog */;909ROLLBACK /* added by mysqlbinlog */;
879/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;910/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
911/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
880End of 5.0 tests912End of 5.0 tests
881End of 5.1 tests913End of 5.1 tests
882# Expect deprecation warning.914# Expect deprecation warning.
883915
=== modified file 'Percona-Server/mysql-test/r/mysqldump.result'
--- Percona-Server/mysql-test/r/mysqldump.result 2012-11-28 05:09:57 +0000
+++ Percona-Server/mysql-test/r/mysqldump.result 2013-02-18 05:17:25 +0000
@@ -2706,8 +2706,8 @@
2706/*!50003 SET @saved_sql_mode = @@sql_mode */ ;2706/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2707/*!50003 SET sql_mode = '' */ ;2707/*!50003 SET sql_mode = '' */ ;
2708DELIMITER ;;2708DELIMITER ;;
2709/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11)2709CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11)
2710RETURN a+b */;;2710RETURN a+b ;;
2711DELIMITER ;2711DELIMITER ;
2712/*!50003 SET sql_mode = @saved_sql_mode */ ;2712/*!50003 SET sql_mode = @saved_sql_mode */ ;
2713/*!50003 SET character_set_client = @saved_cs_client */ ;2713/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -2723,11 +2723,11 @@
2723/*!50003 SET @saved_sql_mode = @@sql_mode */ ;2723/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2724/*!50003 SET sql_mode = '' */ ;2724/*!50003 SET sql_mode = '' */ ;
2725DELIMITER ;;2725DELIMITER ;;
2726/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `bug9056_func2`(f1 char binary) RETURNS char(1) CHARSET latin12726CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func2`(f1 char binary) RETURNS char(1) CHARSET latin1
2727begin2727begin
2728set f1= concat( 'hello', f1 );2728set f1= concat( 'hello', f1 );
2729return f1;2729return f1;
2730end */;;2730end ;;
2731DELIMITER ;2731DELIMITER ;
2732/*!50003 SET sql_mode = @saved_sql_mode */ ;2732/*!50003 SET sql_mode = @saved_sql_mode */ ;
2733/*!50003 SET character_set_client = @saved_cs_client */ ;2733/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -2743,8 +2743,8 @@
2743/*!50003 SET @saved_sql_mode = @@sql_mode */ ;2743/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2744/*!50003 SET sql_mode = 'REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI' */ ;2744/*!50003 SET sql_mode = 'REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI' */ ;
2745DELIMITER ;;2745DELIMITER ;;
2746/*!50003 CREATE*/ /*!50020 DEFINER="root"@"localhost"*/ /*!50003 PROCEDURE "a'b"()2746CREATE DEFINER="root"@"localhost" PROCEDURE "a'b"()
2747select 1 */;;2747select 1 ;;
2748DELIMITER ;2748DELIMITER ;
2749/*!50003 SET sql_mode = @saved_sql_mode */ ;2749/*!50003 SET sql_mode = @saved_sql_mode */ ;
2750/*!50003 SET character_set_client = @saved_cs_client */ ;2750/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -2760,8 +2760,8 @@
2760/*!50003 SET @saved_sql_mode = @@sql_mode */ ;2760/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2761/*!50003 SET sql_mode = '' */ ;2761/*!50003 SET sql_mode = '' */ ;
2762DELIMITER ;;2762DELIMITER ;;
2763/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT)2763CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT)
2764BEGIN SELECT a+b INTO c; end */;;2764BEGIN SELECT a+b INTO c; end ;;
2765DELIMITER ;2765DELIMITER ;
2766/*!50003 SET sql_mode = @saved_sql_mode */ ;2766/*!50003 SET sql_mode = @saved_sql_mode */ ;
2767/*!50003 SET character_set_client = @saved_cs_client */ ;2767/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -2777,10 +2777,10 @@
2777/*!50003 SET @saved_sql_mode = @@sql_mode */ ;2777/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2778/*!50003 SET sql_mode = '' */ ;2778/*!50003 SET sql_mode = '' */ ;
2779DELIMITER ;;2779DELIMITER ;;
2780/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `bug9056_proc2`(OUT a INT)2780CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc2`(OUT a INT)
2781BEGIN2781BEGIN
2782select sum(id) from t1 into a;2782select sum(id) from t1 into a;
2783END */;;2783END ;;
2784DELIMITER ;2784DELIMITER ;
2785/*!50003 SET sql_mode = @saved_sql_mode */ ;2785/*!50003 SET sql_mode = @saved_sql_mode */ ;
2786/*!50003 SET character_set_client = @saved_cs_client */ ;2786/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -3766,8 +3766,8 @@
3766/*!50003 SET @saved_sql_mode = @@sql_mode */ ;3766/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
3767/*!50003 SET sql_mode = '' */ ;3767/*!50003 SET sql_mode = '' */ ;
3768DELIMITER ;;3768DELIMITER ;;
3769/*!50003 CREATE*/ /*!50020 DEFINER=`user1`@`%`*/ /*!50003 PROCEDURE `sp1`()3769CREATE DEFINER=`user1`@`%` PROCEDURE `sp1`()
3770select 'hello' */;;3770select 'hello' ;;
3771DELIMITER ;3771DELIMITER ;
3772/*!50003 SET sql_mode = @saved_sql_mode */ ;3772/*!50003 SET sql_mode = @saved_sql_mode */ ;
3773/*!50003 SET character_set_client = @saved_cs_client */ ;3773/*!50003 SET character_set_client = @saved_cs_client */ ;
@@ -5115,9 +5115,82 @@
5115# Note : In the following dump the transaction5115# Note : In the following dump the transaction
5116# should start only after the logs are5116# should start only after the logs are
5117# flushed, as 'flush logs' causes implicit5117# flushed, as 'flush logs' causes implicit
5118# commit starting 5.5.5118# commit starting 5.5.Also, as stderr is
5119# unbuffered, it is redirected to a different
5120# file to avoid diffs due to bad stdout/stderr
5121# order in the output.
51195122
5120#### Dump starts here ####5123#### Dump starts here ####
5124--
5125-- Host: localhost Database: b12809202_db
5126-- ------------------------------------------------------
5127
5128/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
5129/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
5130/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
5131/*!40101 SET NAMES utf8 */;
5132/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
5133/*!40103 SET TIME_ZONE='+00:00' */;
5134/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
5135/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
5136/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
5137/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
5138
5139--
5140-- Table structure for table `t1`
5141--
5142
5143DROP TABLE IF EXISTS `t1`;
5144/*!40101 SET @saved_cs_client = @@character_set_client */;
5145/*!40101 SET character_set_client = utf8 */;
5146CREATE TABLE `t1` (
5147 `c1` int(11) DEFAULT NULL
5148) ENGINE=MyISAM DEFAULT CHARSET=latin1;
5149/*!40101 SET character_set_client = @saved_cs_client */;
5150
5151--
5152-- Dumping data for table `t1`
5153--
5154
5155LOCK TABLES `t1` WRITE;
5156/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
5157INSERT INTO `t1` VALUES (1),(2),(3);
5158/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
5159UNLOCK TABLES;
5160
5161--
5162-- Table structure for table `t2`
5163--
5164
5165DROP TABLE IF EXISTS `t2`;
5166/*!40101 SET @saved_cs_client = @@character_set_client */;
5167/*!40101 SET character_set_client = utf8 */;
5168CREATE TABLE `t2` (
5169 `c1` int(11) DEFAULT NULL
5170) ENGINE=MyISAM DEFAULT CHARSET=latin1;
5171/*!40101 SET character_set_client = @saved_cs_client */;
5172
5173--
5174-- Dumping data for table `t2`
5175--
5176
5177LOCK TABLES `t2` WRITE;
5178/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
5179INSERT INTO `t2` VALUES (1),(2),(3);
5180/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
5181UNLOCK TABLES;
5182/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
5183
5184/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
5185/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
5186/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
5187/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
5188/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
5189/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5190/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5191
5192-- Dump completed
5193## stderr ##
5121-- Connecting to localhost...5194-- Connecting to localhost...
5122-- main : logs flushed successfully!5195-- main : logs flushed successfully!
5123-- Starting transaction...5196-- Starting transaction...
51245197
=== modified file 'Percona-Server/mysql-test/r/percona_innodb_version.result'
--- Percona-Server/mysql-test/r/percona_innodb_version.result 2012-04-18 23:26:42 +0000
+++ Percona-Server/mysql-test/r/percona_innodb_version.result 2013-02-18 05:17:25 +0000
@@ -1,3 +1,3 @@
1SELECT @@innodb_version;1SELECT @@innodb_version;
2@@innodb_version2@@innodb_version
31.1.x-x.x35.5.x-x.x
44
=== modified file 'Percona-Server/mysql-test/r/percona_server_variables_debug.result'
--- Percona-Server/mysql-test/r/percona_server_variables_debug.result 2013-01-30 09:55:26 +0000
+++ Percona-Server/mysql-test/r/percona_server_variables_debug.result 2013-02-18 05:17:25 +0000
@@ -127,6 +127,7 @@
127INNODB_KILL_IDLE_TRANSACTION127INNODB_KILL_IDLE_TRANSACTION
128INNODB_LARGE_PREFIX128INNODB_LARGE_PREFIX
129INNODB_LAZY_DROP_TABLE129INNODB_LAZY_DROP_TABLE
130INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG
130INNODB_LOCKING_FAKE_CHANGES131INNODB_LOCKING_FAKE_CHANGES
131INNODB_LOCKS_UNSAFE_FOR_BINLOG132INNODB_LOCKS_UNSAFE_FOR_BINLOG
132INNODB_LOCK_WAIT_TIMEOUT133INNODB_LOCK_WAIT_TIMEOUT
@@ -146,6 +147,7 @@
146INNODB_OPEN_FILES147INNODB_OPEN_FILES
147INNODB_PAGE_SIZE148INNODB_PAGE_SIZE
148INNODB_PERSISTENT_STATS_ROOT_PAGE149INNODB_PERSISTENT_STATS_ROOT_PAGE
150INNODB_PRINT_ALL_DEADLOCKS
149INNODB_PURGE_BATCH_SIZE151INNODB_PURGE_BATCH_SIZE
150INNODB_PURGE_THREADS152INNODB_PURGE_THREADS
151INNODB_RANDOM_READ_AHEAD153INNODB_RANDOM_READ_AHEAD
@@ -173,6 +175,7 @@
173INNODB_THREAD_CONCURRENCY_TIMER_BASED175INNODB_THREAD_CONCURRENCY_TIMER_BASED
174INNODB_THREAD_SLEEP_DELAY176INNODB_THREAD_SLEEP_DELAY
175INNODB_TRACK_CHANGED_PAGES177INNODB_TRACK_CHANGED_PAGES
178INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG
176INNODB_TRX_RSEG_N_SLOTS_DEBUG179INNODB_TRX_RSEG_N_SLOTS_DEBUG
177INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT180INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT
178INNODB_USE_NATIVE_AIO181INNODB_USE_NATIVE_AIO
@@ -290,6 +293,7 @@
290PROFILING_HISTORY_SIZE293PROFILING_HISTORY_SIZE
291PROTOCOL_VERSION294PROTOCOL_VERSION
292PROXY_USER295PROXY_USER
296PSEUDO_SLAVE_MODE
293PSEUDO_THREAD_ID297PSEUDO_THREAD_ID
294QUERY_ALLOC_BLOCK_SIZE298QUERY_ALLOC_BLOCK_SIZE
295QUERY_CACHE_LIMIT299QUERY_CACHE_LIMIT
296300
=== modified file 'Percona-Server/mysql-test/r/percona_server_variables_release.result'
--- Percona-Server/mysql-test/r/percona_server_variables_release.result 2013-01-30 09:55:26 +0000
+++ Percona-Server/mysql-test/r/percona_server_variables_release.result 2013-02-18 05:17:25 +0000
@@ -142,6 +142,7 @@
142INNODB_OLD_BLOCKS_TIME142INNODB_OLD_BLOCKS_TIME
143INNODB_OPEN_FILES143INNODB_OPEN_FILES
144INNODB_PAGE_SIZE144INNODB_PAGE_SIZE
145INNODB_PRINT_ALL_DEADLOCKS
145INNODB_PURGE_BATCH_SIZE146INNODB_PURGE_BATCH_SIZE
146INNODB_PURGE_THREADS147INNODB_PURGE_THREADS
147INNODB_RANDOM_READ_AHEAD148INNODB_RANDOM_READ_AHEAD
@@ -285,6 +286,7 @@
285PROFILING_HISTORY_SIZE286PROFILING_HISTORY_SIZE
286PROTOCOL_VERSION287PROTOCOL_VERSION
287PROXY_USER288PROXY_USER
289PSEUDO_SLAVE_MODE
288PSEUDO_THREAD_ID290PSEUDO_THREAD_ID
289QUERY_ALLOC_BLOCK_SIZE291QUERY_ALLOC_BLOCK_SIZE
290QUERY_CACHE_LIMIT292QUERY_CACHE_LIMIT
291293
=== modified file 'Percona-Server/mysql-test/r/user_var-binlog.result'
--- Percona-Server/mysql-test/r/user_var-binlog.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/r/user_var-binlog.result 2013-02-18 05:17:25 +0000
@@ -18,6 +18,7 @@
18master-bin.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2)18master-bin.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2)
19master-bin.000001 # Query # # COMMIT19master-bin.000001 # Query # # COMMIT
20flush logs;20flush logs;
21/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
21/*!40019 SET @@session.max_insert_delayed_threads=0*/;22/*!40019 SET @@session.max_insert_delayed_threads=0*/;
22/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;23/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
23DELIMITER /*!*/;24DELIMITER /*!*/;
@@ -56,4 +57,5 @@
56# End of log file57# End of log file
57ROLLBACK /* added by mysqlbinlog */;58ROLLBACK /* added by mysqlbinlog */;
58/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;59/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
60/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
59drop table t1;61drop table t1;
6062
=== modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_base64_flag.result'
--- Percona-Server/mysql-test/suite/binlog/r/binlog_base64_flag.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/binlog/r/binlog_base64_flag.result 2013-02-18 05:17:25 +0000
@@ -29,6 +29,7 @@
291291
303303
31==== Test --base64-output=never on a binlog with row events ====31==== Test --base64-output=never on a binlog with row events ====
32/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
32/*!40019 SET @@session.max_insert_delayed_threads=0*/;33/*!40019 SET @@session.max_insert_delayed_threads=0*/;
33/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;34/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
34DELIMITER /*!*/;35DELIMITER /*!*/;
@@ -51,6 +52,7 @@
51# End of log file52# End of log file
52ROLLBACK /* added by mysqlbinlog */;53ROLLBACK /* added by mysqlbinlog */;
53/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;54/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
55/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
54==== Test non-matching FD event and Row event ====56==== Test non-matching FD event and Row event ====
55BINLOG '57BINLOG '
564CdYRw8BAAAAYgAAAGYAAAAAAAQANS4xLjE1LW5kYi02LjEuMjQtZGVidWctbG9nAAAAAAAAAAAA584CdYRw8BAAAAYgAAAGYAAAAAAAQANS4xLjE1LW5kYi02LjEuMjQtZGVidWctbG9nAAAAAAAAAAAA
5759
=== modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog2.result'
--- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog2.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog2.result 2013-02-18 05:17:25 +0000
@@ -15,6 +15,7 @@
15insert into t1 values(null, "f");15insert into t1 values(null, "f");
1616
17--- Local --17--- Local --
18/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
18/*!40019 SET @@session.max_insert_delayed_threads=0*/;19/*!40019 SET @@session.max_insert_delayed_threads=0*/;
19/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;20/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
20DELIMITER /*!*/;21DELIMITER /*!*/;
@@ -85,8 +86,10 @@
85# End of log file86# End of log file
86ROLLBACK /* added by mysqlbinlog */;87ROLLBACK /* added by mysqlbinlog */;
87/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;88/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
89/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
8890
89--- offset --91--- offset --
92/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
90/*!40019 SET @@session.max_insert_delayed_threads=0*/;93/*!40019 SET @@session.max_insert_delayed_threads=0*/;
91/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;94/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
92DELIMITER /*!*/;95DELIMITER /*!*/;
@@ -154,8 +157,10 @@
154# End of log file157# End of log file
155ROLLBACK /* added by mysqlbinlog */;158ROLLBACK /* added by mysqlbinlog */;
156/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;159/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
160/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
157161
158--- start-position --162--- start-position --
163/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
159/*!40019 SET @@session.max_insert_delayed_threads=0*/;164/*!40019 SET @@session.max_insert_delayed_threads=0*/;
160/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;165/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
161DELIMITER /*!*/;166DELIMITER /*!*/;
@@ -203,8 +208,10 @@
203# End of log file208# End of log file
204ROLLBACK /* added by mysqlbinlog */;209ROLLBACK /* added by mysqlbinlog */;
205/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;210/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
211/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
206212
207--- stop-position --213--- stop-position --
214/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
208/*!40019 SET @@session.max_insert_delayed_threads=0*/;215/*!40019 SET @@session.max_insert_delayed_threads=0*/;
209/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;216/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
210DELIMITER /*!*/;217DELIMITER /*!*/;
@@ -245,8 +252,10 @@
245# End of log file252# End of log file
246ROLLBACK /* added by mysqlbinlog */;253ROLLBACK /* added by mysqlbinlog */;
247/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;254/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
255/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
248256
249--- start and stop positions ---257--- start and stop positions ---
258/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
250/*!40019 SET @@session.max_insert_delayed_threads=0*/;259/*!40019 SET @@session.max_insert_delayed_threads=0*/;
251/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;260/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
252DELIMITER /*!*/;261DELIMITER /*!*/;
@@ -271,8 +280,10 @@
271# End of log file280# End of log file
272ROLLBACK /* added by mysqlbinlog */;281ROLLBACK /* added by mysqlbinlog */;
273/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;282/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
283/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
274284
275--- start-datetime --285--- start-datetime --
286/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
276/*!40019 SET @@session.max_insert_delayed_threads=0*/;287/*!40019 SET @@session.max_insert_delayed_threads=0*/;
277/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;288/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
278DELIMITER /*!*/;289DELIMITER /*!*/;
@@ -320,8 +331,10 @@
320# End of log file331# End of log file
321ROLLBACK /* added by mysqlbinlog */;332ROLLBACK /* added by mysqlbinlog */;
322/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;333/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
334/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
323335
324--- stop-datetime --336--- stop-datetime --
337/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
325/*!40019 SET @@session.max_insert_delayed_threads=0*/;338/*!40019 SET @@session.max_insert_delayed_threads=0*/;
326/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;339/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
327DELIMITER /*!*/;340DELIMITER /*!*/;
@@ -362,9 +375,11 @@
362# End of log file375# End of log file
363ROLLBACK /* added by mysqlbinlog */;376ROLLBACK /* added by mysqlbinlog */;
364/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;377/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
378/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
365379
366--- Local with 2 binlogs on command line --380--- Local with 2 binlogs on command line --
367flush logs;381flush logs;
382/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
368/*!40019 SET @@session.max_insert_delayed_threads=0*/;383/*!40019 SET @@session.max_insert_delayed_threads=0*/;
369/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;384/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
370DELIMITER /*!*/;385DELIMITER /*!*/;
@@ -456,8 +471,10 @@
456# End of log file471# End of log file
457ROLLBACK /* added by mysqlbinlog */;472ROLLBACK /* added by mysqlbinlog */;
458/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;473/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
474/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
459475
460--- offset --476--- offset --
477/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
461/*!40019 SET @@session.max_insert_delayed_threads=0*/;478/*!40019 SET @@session.max_insert_delayed_threads=0*/;
462/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;479/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
463DELIMITER /*!*/;480DELIMITER /*!*/;
@@ -546,8 +563,10 @@
546# End of log file563# End of log file
547ROLLBACK /* added by mysqlbinlog */;564ROLLBACK /* added by mysqlbinlog */;
548/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;565/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
566/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
549567
550--- start-position --568--- start-position --
569/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
551/*!40019 SET @@session.max_insert_delayed_threads=0*/;570/*!40019 SET @@session.max_insert_delayed_threads=0*/;
552/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;571/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
553DELIMITER /*!*/;572DELIMITER /*!*/;
@@ -616,8 +635,10 @@
616# End of log file635# End of log file
617ROLLBACK /* added by mysqlbinlog */;636ROLLBACK /* added by mysqlbinlog */;
618/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;637/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
638/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
619639
620--- stop-position --640--- stop-position --
641/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
621/*!40019 SET @@session.max_insert_delayed_threads=0*/;642/*!40019 SET @@session.max_insert_delayed_threads=0*/;
622/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;643/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
623DELIMITER /*!*/;644DELIMITER /*!*/;
@@ -702,8 +723,10 @@
702# End of log file723# End of log file
703ROLLBACK /* added by mysqlbinlog */;724ROLLBACK /* added by mysqlbinlog */;
704/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;725/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
726/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
705727
706--- start-datetime --728--- start-datetime --
729/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
707/*!40019 SET @@session.max_insert_delayed_threads=0*/;730/*!40019 SET @@session.max_insert_delayed_threads=0*/;
708/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;731/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
709DELIMITER /*!*/;732DELIMITER /*!*/;
@@ -772,8 +795,10 @@
772# End of log file795# End of log file
773ROLLBACK /* added by mysqlbinlog */;796ROLLBACK /* added by mysqlbinlog */;
774/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;797/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
798/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
775799
776--- stop-datetime --800--- stop-datetime --
801/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
777/*!40019 SET @@session.max_insert_delayed_threads=0*/;802/*!40019 SET @@session.max_insert_delayed_threads=0*/;
778/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;803/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
779DELIMITER /*!*/;804DELIMITER /*!*/;
@@ -814,8 +839,10 @@
814# End of log file839# End of log file
815ROLLBACK /* added by mysqlbinlog */;840ROLLBACK /* added by mysqlbinlog */;
816/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;841/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
842/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
817843
818--- Remote --844--- Remote --
845/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
819/*!40019 SET @@session.max_insert_delayed_threads=0*/;846/*!40019 SET @@session.max_insert_delayed_threads=0*/;
820/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;847/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
821DELIMITER /*!*/;848DELIMITER /*!*/;
@@ -886,8 +913,10 @@
886# End of log file913# End of log file
887ROLLBACK /* added by mysqlbinlog */;914ROLLBACK /* added by mysqlbinlog */;
888/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;915/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
916/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
889917
890--- offset --918--- offset --
919/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
891/*!40019 SET @@session.max_insert_delayed_threads=0*/;920/*!40019 SET @@session.max_insert_delayed_threads=0*/;
892/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;921/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
893DELIMITER /*!*/;922DELIMITER /*!*/;
@@ -955,8 +984,10 @@
955# End of log file984# End of log file
956ROLLBACK /* added by mysqlbinlog */;985ROLLBACK /* added by mysqlbinlog */;
957/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;986/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
987/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
958988
959--- start-position --989--- start-position --
990/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
960/*!40019 SET @@session.max_insert_delayed_threads=0*/;991/*!40019 SET @@session.max_insert_delayed_threads=0*/;
961/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;992/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
962DELIMITER /*!*/;993DELIMITER /*!*/;
@@ -1003,8 +1034,10 @@
1003# End of log file1034# End of log file
1004ROLLBACK /* added by mysqlbinlog */;1035ROLLBACK /* added by mysqlbinlog */;
1005/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1036/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1037/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
10061038
1007--- stop-position --1039--- stop-position --
1040/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1008/*!40019 SET @@session.max_insert_delayed_threads=0*/;1041/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1009/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1042/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1010DELIMITER /*!*/;1043DELIMITER /*!*/;
@@ -1045,8 +1078,10 @@
1045# End of log file1078# End of log file
1046ROLLBACK /* added by mysqlbinlog */;1079ROLLBACK /* added by mysqlbinlog */;
1047/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1080/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1081/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
10481082
1049--- start and stop positions ---1083--- start and stop positions ---
1084/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1050/*!40019 SET @@session.max_insert_delayed_threads=0*/;1085/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1051/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1086/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1052DELIMITER /*!*/;1087DELIMITER /*!*/;
@@ -1070,8 +1105,10 @@
1070# End of log file1105# End of log file
1071ROLLBACK /* added by mysqlbinlog */;1106ROLLBACK /* added by mysqlbinlog */;
1072/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1107/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1108/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
10731109
1074--- start-datetime --1110--- start-datetime --
1111/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1075/*!40019 SET @@session.max_insert_delayed_threads=0*/;1112/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1076/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1113/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1077DELIMITER /*!*/;1114DELIMITER /*!*/;
@@ -1119,8 +1156,10 @@
1119# End of log file1156# End of log file
1120ROLLBACK /* added by mysqlbinlog */;1157ROLLBACK /* added by mysqlbinlog */;
1121/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1158/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1159/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
11221160
1123--- stop-datetime --1161--- stop-datetime --
1162/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1124/*!40019 SET @@session.max_insert_delayed_threads=0*/;1163/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1125/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1164/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1126DELIMITER /*!*/;1165DELIMITER /*!*/;
@@ -1161,8 +1200,10 @@
1161# End of log file1200# End of log file
1162ROLLBACK /* added by mysqlbinlog */;1201ROLLBACK /* added by mysqlbinlog */;
1163/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1202/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1203/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
11641204
1165--- Remote with 2 binlogs on command line --1205--- Remote with 2 binlogs on command line --
1206/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1166/*!40019 SET @@session.max_insert_delayed_threads=0*/;1207/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1167/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1208/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1168DELIMITER /*!*/;1209DELIMITER /*!*/;
@@ -1254,8 +1295,10 @@
1254# End of log file1295# End of log file
1255ROLLBACK /* added by mysqlbinlog */;1296ROLLBACK /* added by mysqlbinlog */;
1256/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1297/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1298/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
12571299
1258--- offset --1300--- offset --
1301/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1259/*!40019 SET @@session.max_insert_delayed_threads=0*/;1302/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1260/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1303/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1261DELIMITER /*!*/;1304DELIMITER /*!*/;
@@ -1344,8 +1387,10 @@
1344# End of log file1387# End of log file
1345ROLLBACK /* added by mysqlbinlog */;1388ROLLBACK /* added by mysqlbinlog */;
1346/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1389/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1390/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
13471391
1348--- start-position --1392--- start-position --
1393/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1349/*!40019 SET @@session.max_insert_delayed_threads=0*/;1394/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1350/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1395/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1351DELIMITER /*!*/;1396DELIMITER /*!*/;
@@ -1413,8 +1458,10 @@
1413# End of log file1458# End of log file
1414ROLLBACK /* added by mysqlbinlog */;1459ROLLBACK /* added by mysqlbinlog */;
1415/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1460/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1461/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
14161462
1417--- stop-position --1463--- stop-position --
1464/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1418/*!40019 SET @@session.max_insert_delayed_threads=0*/;1465/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1419/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1466/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1420DELIMITER /*!*/;1467DELIMITER /*!*/;
@@ -1498,8 +1545,10 @@
1498# End of log file1545# End of log file
1499ROLLBACK /* added by mysqlbinlog */;1546ROLLBACK /* added by mysqlbinlog */;
1500/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1547/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1548/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
15011549
1502--- start-datetime --1550--- start-datetime --
1551/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1503/*!40019 SET @@session.max_insert_delayed_threads=0*/;1552/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1504/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1553/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1505DELIMITER /*!*/;1554DELIMITER /*!*/;
@@ -1568,8 +1617,10 @@
1568# End of log file1617# End of log file
1569ROLLBACK /* added by mysqlbinlog */;1618ROLLBACK /* added by mysqlbinlog */;
1570/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1619/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1620/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
15711621
1572--- stop-datetime --1622--- stop-datetime --
1623/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1573/*!40019 SET @@session.max_insert_delayed_threads=0*/;1624/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1574/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1625/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1575DELIMITER /*!*/;1626DELIMITER /*!*/;
@@ -1610,8 +1661,10 @@
1610# End of log file1661# End of log file
1611ROLLBACK /* added by mysqlbinlog */;1662ROLLBACK /* added by mysqlbinlog */;
1612/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1663/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1664/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
16131665
1614--- to-last-log --1666--- to-last-log --
1667/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
1615/*!40019 SET @@session.max_insert_delayed_threads=0*/;1668/*!40019 SET @@session.max_insert_delayed_threads=0*/;
1616/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;1669/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
1617DELIMITER /*!*/;1670DELIMITER /*!*/;
@@ -1692,6 +1745,7 @@
1692# End of log file1745# End of log file
1693ROLLBACK /* added by mysqlbinlog */;1746ROLLBACK /* added by mysqlbinlog */;
1694/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1747/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1748/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
16951749
1696--- end of test --1750--- end of test --
1697drop table t1;1751drop table t1;
16981752
=== modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result'
--- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result 2013-02-18 05:17:25 +0000
@@ -328,6 +328,7 @@
328UPDATE t1, t2 SET t1.a=10, t2.a=20;328UPDATE t1, t2 SET t1.a=10, t2.a=20;
329DROP TABLE t1,t2;329DROP TABLE t1,t2;
330flush logs;330flush logs;
331/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
331/*!40019 SET @@session.max_insert_delayed_threads=0*/;332/*!40019 SET @@session.max_insert_delayed_threads=0*/;
332/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;333/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
333DELIMITER /*!*/;334DELIMITER /*!*/;
@@ -4135,3 +4136,4 @@
4135# End of log file4136# End of log file
4136ROLLBACK /* added by mysqlbinlog */;4137ROLLBACK /* added by mysqlbinlog */;
4137/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;4138/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
4139/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
41384140
=== modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result'
--- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result 2013-02-18 05:17:25 +0000
@@ -2245,6 +2245,7 @@
2245#2245#
2246# Call mysqlbinlog to display the log file contents.2246# Call mysqlbinlog to display the log file contents.
2247#2247#
2248/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
2248/*!40019 SET @@session.max_insert_delayed_threads=0*/;2249/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2249/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;2250/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2250DELIMITER /*!*/;2251DELIMITER /*!*/;
@@ -3786,6 +3787,7 @@
3786# End of log file3787# End of log file
3787ROLLBACK /* added by mysqlbinlog */;3788ROLLBACK /* added by mysqlbinlog */;
3788/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;3789/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
3790/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
3789#3791#
3790# Cleanup.3792# Cleanup.
3791#3793#
@@ -3868,6 +3870,7 @@
3868#3870#
3869# Call mysqlbinlog to display the log file contents.3871# Call mysqlbinlog to display the log file contents.
3870#3872#
3873/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
3871/*!40019 SET @@session.max_insert_delayed_threads=0*/;3874/*!40019 SET @@session.max_insert_delayed_threads=0*/;
3872/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;3875/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
3873DELIMITER /*!*/;3876DELIMITER /*!*/;
@@ -4077,6 +4080,7 @@
4077# End of log file4080# End of log file
4078ROLLBACK /* added by mysqlbinlog */;4081ROLLBACK /* added by mysqlbinlog */;
4079/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;4082/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
4083/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
4080#4084#
4081# Cleanup.4085# Cleanup.
4082#4086#
@@ -4235,6 +4239,7 @@
4235#4239#
4236# Call mysqlbinlog to display the log file contents.4240# Call mysqlbinlog to display the log file contents.
4237#4241#
4242/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
4238/*!40019 SET @@session.max_insert_delayed_threads=0*/;4243/*!40019 SET @@session.max_insert_delayed_threads=0*/;
4239/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;4244/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
4240DELIMITER /*!*/;4245DELIMITER /*!*/;
@@ -4746,6 +4751,7 @@
4746# End of log file4751# End of log file
4747ROLLBACK /* added by mysqlbinlog */;4752ROLLBACK /* added by mysqlbinlog */;
4748/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;4753/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
4754/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
4749#4755#
4750# Cleanup.4756# Cleanup.
4751#4757#
@@ -4796,6 +4802,7 @@
4796#4802#
4797# Call mysqlbinlog to display the log file contents.4803# Call mysqlbinlog to display the log file contents.
4798#4804#
4805/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
4799/*!40019 SET @@session.max_insert_delayed_threads=0*/;4806/*!40019 SET @@session.max_insert_delayed_threads=0*/;
4800/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;4807/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
4801DELIMITER /*!*/;4808DELIMITER /*!*/;
@@ -4853,6 +4860,7 @@
4853# End of log file4860# End of log file
4854ROLLBACK /* added by mysqlbinlog */;4861ROLLBACK /* added by mysqlbinlog */;
4855/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;4862/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
4863/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
4856#4864#
4857# Cleanup.4865# Cleanup.
4858#4866#
48594867
=== modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result'
--- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result 2013-02-18 05:17:25 +0000
@@ -2245,6 +2245,7 @@
2245#2245#
2246# Call mysqlbinlog to display the log file contents.2246# Call mysqlbinlog to display the log file contents.
2247#2247#
2248/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
2248/*!40019 SET @@session.max_insert_delayed_threads=0*/;2249/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2249/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;2250/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2250DELIMITER /*!*/;2251DELIMITER /*!*/;
@@ -3808,6 +3809,7 @@
3808# End of log file3809# End of log file
3809ROLLBACK /* added by mysqlbinlog */;3810ROLLBACK /* added by mysqlbinlog */;
3810/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;3811/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
3812/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
3811#3813#
3812# Cleanup.3814# Cleanup.
3813#3815#
@@ -3890,6 +3892,7 @@
3890#3892#
3891# Call mysqlbinlog to display the log file contents.3893# Call mysqlbinlog to display the log file contents.
3892#3894#
3895/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
3893/*!40019 SET @@session.max_insert_delayed_threads=0*/;3896/*!40019 SET @@session.max_insert_delayed_threads=0*/;
3894/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;3897/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
3895DELIMITER /*!*/;3898DELIMITER /*!*/;
@@ -4105,6 +4108,7 @@
4105# End of log file4108# End of log file
4106ROLLBACK /* added by mysqlbinlog */;4109ROLLBACK /* added by mysqlbinlog */;
4107/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;4110/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
4111/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
4108#4112#
4109# Cleanup.4113# Cleanup.
4110#4114#
@@ -4263,6 +4267,7 @@
4263#4267#
4264# Call mysqlbinlog to display the log file contents.4268# Call mysqlbinlog to display the log file contents.
4265#4269#
4270/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
4266/*!40019 SET @@session.max_insert_delayed_threads=0*/;4271/*!40019 SET @@session.max_insert_delayed_threads=0*/;
4267/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;4272/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
4268DELIMITER /*!*/;4273DELIMITER /*!*/;
@@ -4784,6 +4789,7 @@
4784# End of log file4789# End of log file
4785ROLLBACK /* added by mysqlbinlog */;4790ROLLBACK /* added by mysqlbinlog */;
4786/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;4791/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
4792/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
4787#4793#
4788# Cleanup.4794# Cleanup.
4789#4795#
@@ -4834,6 +4840,7 @@
4834#4840#
4835# Call mysqlbinlog to display the log file contents.4841# Call mysqlbinlog to display the log file contents.
4836#4842#
4843/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
4837/*!40019 SET @@session.max_insert_delayed_threads=0*/;4844/*!40019 SET @@session.max_insert_delayed_threads=0*/;
4838/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;4845/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
4839DELIMITER /*!*/;4846DELIMITER /*!*/;
@@ -4893,6 +4900,7 @@
4893# End of log file4900# End of log file
4894ROLLBACK /* added by mysqlbinlog */;4901ROLLBACK /* added by mysqlbinlog */;
4895/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;4902/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
4903/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
4896#4904#
4897# Cleanup.4905# Cleanup.
4898#4906#
48994907
=== modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_trans.result'
--- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_trans.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_trans.result 2013-02-18 05:17:25 +0000
@@ -124,6 +124,7 @@
124#124#
125# Call mysqlbinlog to display the log file contents.125# Call mysqlbinlog to display the log file contents.
126#126#
127/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
127/*!40019 SET @@session.max_insert_delayed_threads=0*/;128/*!40019 SET @@session.max_insert_delayed_threads=0*/;
128/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;129/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
129DELIMITER /*!*/;130DELIMITER /*!*/;
@@ -463,6 +464,7 @@
463# End of log file464# End of log file
464ROLLBACK /* added by mysqlbinlog */;465ROLLBACK /* added by mysqlbinlog */;
465/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;466/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
467/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
466#468#
467# Cleanup.469# Cleanup.
468#470#
469471
=== modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_row_ctype_ucs.result'
--- Percona-Server/mysql-test/suite/binlog/r/binlog_row_ctype_ucs.result 2009-11-03 13:54:41 +0000
+++ Percona-Server/mysql-test/suite/binlog/r/binlog_row_ctype_ucs.result 2013-02-18 05:17:25 +0000
@@ -10,6 +10,7 @@
10master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F10master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
11master-bin.000001 # Query # # COMMIT11master-bin.000001 # Query # # COMMIT
12flush logs;12flush logs;
13/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
13/*!40019 SET @@session.max_insert_delayed_threads=0*/;14/*!40019 SET @@session.max_insert_delayed_threads=0*/;
14/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;15/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
15DELIMITER /*!*/;16DELIMITER /*!*/;
@@ -32,4 +33,5 @@
32# End of log file33# End of log file
33ROLLBACK /* added by mysqlbinlog */;34ROLLBACK /* added by mysqlbinlog */;
34/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;35/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
36/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
35drop table t2;37drop table t2;
3638
=== modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_stm_ctype_ucs.result'
--- Percona-Server/mysql-test/suite/binlog/r/binlog_stm_ctype_ucs.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/binlog/r/binlog_stm_ctype_ucs.result 2013-02-18 05:17:25 +0000
@@ -10,6 +10,7 @@
10master-bin.000001 # Query # # use `test`; insert into t2 values (@v)10master-bin.000001 # Query # # use `test`; insert into t2 values (@v)
11master-bin.000001 # Query # # COMMIT11master-bin.000001 # Query # # COMMIT
12flush logs;12flush logs;
13/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
13/*!40019 SET @@session.max_insert_delayed_threads=0*/;14/*!40019 SET @@session.max_insert_delayed_threads=0*/;
14/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;15/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
15DELIMITER /*!*/;16DELIMITER /*!*/;
@@ -37,4 +38,5 @@
37# End of log file38# End of log file
38ROLLBACK /* added by mysqlbinlog */;39ROLLBACK /* added by mysqlbinlog */;
39/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;40/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
41/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
40drop table t2;42drop table t2;
4143
=== modified file 'Percona-Server/mysql-test/suite/engines/funcs/r/rpl_row_until.result'
--- Percona-Server/mysql-test/suite/engines/funcs/r/rpl_row_until.result 2011-01-05 06:53:05 +0000
+++ Percona-Server/mysql-test/suite/engines/funcs/r/rpl_row_until.result 2013-02-18 05:17:25 +0000
@@ -1,212 +1,60 @@
1stop slave;1include/master-slave.inc
2drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;2[connection master]
3reset master;3CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
4reset slave;4INSERT INTO t1 VALUES (1),(2),(3),(4);
5drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;5DROP TABLE t1;
6start slave;6CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
7stop slave;7INSERT INTO t2 VALUES (1),(2);
8create table t1(n int not null auto_increment primary key);8INSERT INTO t2 VALUES (3),(4);
9insert into t1 values (1),(2),(3),(4);9DROP TABLE t2;
10drop table t1;10include/stop_slave.inc
11create table t2(n int not null auto_increment primary key);11RESET SLAVE;
12insert into t2 values (1),(2);12START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_drop_t1
13insert into t2 values (3),(4);13include/wait_for_slave_sql_to_stop.inc
14drop table t2;14SELECT * FROM t1;
15start slave until master_log_file='master-bin.000001', master_log_pos=311;15n
16select * from t1;161
17n172
181183
192194
20320include/check_slave_param.inc [Exec_Master_Log_Pos]
21421START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
22show slave status;22include/wait_for_slave_sql_to_stop.inc
23Slave_IO_State #23SELECT * FROM t1;
24Master_Host 127.0.0.124n
25Master_User root251
26Master_Port MASTER_MYPORT262
27Connect_Retry 1273
28Master_Log_File master-bin.000001284
29Read_Master_Log_Pos #29include/check_slave_param.inc [Exec_Master_Log_Pos]
30Relay_Log_File slave-relay-bin.00000430START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2
31Relay_Log_Pos #31include/wait_for_slave_sql_to_stop.inc
32Relay_Master_Log_File master-bin.00000132SELECT * FROM t2;
33Slave_IO_Running #33n
34Slave_SQL_Running No341
35Replicate_Do_DB 352
36Replicate_Ignore_DB 36include/check_slave_param.inc [Exec_Master_Log_Pos]
37Replicate_Do_Table 37START SLAVE;
38Replicate_Ignore_Table 38include/wait_for_slave_to_start.inc
39Replicate_Wild_Do_Table 39include/stop_slave.inc
40Replicate_Wild_Ignore_Table 40START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_create_t2
41Last_Errno 041include/wait_for_slave_param.inc [Until_Log_Pos]
42Last_Error 42include/wait_for_slave_sql_to_stop.inc
43Skip_Counter 043include/check_slave_param.inc [Exec_Master_Log_Pos]
44Exec_Master_Log_Pos #44START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=MASTER_LOG_POS;
45Relay_Log_Space #45ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
46Until_Condition Master46START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS, RELAY_LOG_POS=RELAY_LOG_POS;
47Until_Log_File master-bin.00000147ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
48Until_Log_Pos 31148START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001';
49Master_SSL_Allowed No49ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
50Master_SSL_CA_File 50START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009';
51Master_SSL_CA_Path 51ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
52Master_SSL_Cert 52START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=MASTER_LOG_POS;
53Master_SSL_Cipher 53ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
54Master_SSL_Key 54START SLAVE;
55Seconds_Behind_Master #55START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
56Master_SSL_Verify_Server_Cert No
57Last_IO_Errno 0
58Last_IO_Error
59Last_SQL_Errno 0
60Last_SQL_Error
61Replicate_Ignore_Server_Ids
62Master_Server_Id 1
63start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;
64select * from t1;
65n 1
66n 2
67n 3
68n 4
69show slave status;
70Slave_IO_State #
71Master_Host 127.0.0.1
72Master_User root
73Master_Port MASTER_MYPORT
74Connect_Retry 1
75Master_Log_File master-bin.000001
76Read_Master_Log_Pos #
77Relay_Log_File slave-relay-bin.000004
78Relay_Log_Pos #
79Relay_Master_Log_File master-bin.000001
80Slave_IO_Running #
81Slave_SQL_Running No
82Replicate_Do_DB
83Replicate_Ignore_DB
84Replicate_Do_Table
85Replicate_Ignore_Table
86Replicate_Wild_Do_Table
87Replicate_Wild_Ignore_Table
88Last_Errno 0
89Last_Error
90Skip_Counter 0
91Exec_Master_Log_Pos #
92Relay_Log_Space #
93Until_Condition Master
94Until_Log_File master-no-such-bin.000001
95Until_Log_Pos 291
96Master_SSL_Allowed No
97Master_SSL_CA_File
98Master_SSL_CA_Path
99Master_SSL_Cert
100Master_SSL_Cipher
101Master_SSL_Key
102Seconds_Behind_Master #
103Master_SSL_Verify_Server_Cert No
104Last_IO_Errno 0
105Last_IO_Error
106Last_SQL_Errno 0
107Last_SQL_Error
108Replicate_Ignore_Server_Ids
109Master_Server_Id 1
110start slave until relay_log_file='slave-relay-bin.000004', relay_log_pos=728;
111select * from t2;
112show slave status;
113Slave_IO_State #
114Master_Host 127.0.0.1
115Master_User root
116Master_Port MASTER_MYPORT
117Connect_Retry 1
118Master_Log_File master-bin.000001
119Read_Master_Log_Pos #
120Relay_Log_File slave-relay-bin.000004
121Relay_Log_Pos #
122Relay_Master_Log_File master-bin.000001
123Slave_IO_Running #
124Slave_SQL_Running No
125Replicate_Do_DB
126Replicate_Ignore_DB
127Replicate_Do_Table
128Replicate_Ignore_Table
129Replicate_Wild_Do_Table
130Replicate_Wild_Ignore_Table
131Last_Errno 0
132Last_Error
133Skip_Counter 0
134Exec_Master_Log_Pos #
135Relay_Log_Space #
136Until_Condition Relay
137Until_Log_File slave-relay-bin.000004
138Until_Log_Pos 728
139Master_SSL_Allowed No
140Master_SSL_CA_File
141Master_SSL_CA_Path
142Master_SSL_Cert
143Master_SSL_Cipher
144Master_SSL_Key
145Seconds_Behind_Master #
146Master_SSL_Verify_Server_Cert No
147Last_IO_Errno 0
148Last_IO_Error
149Last_SQL_Errno 0
150Last_SQL_Error
151Replicate_Ignore_Server_Ids
152Master_Server_Id 1
153start slave;
154stop slave;
155start slave until master_log_file='master-bin.000001', master_log_pos=740;
156show slave status;
157Slave_IO_State #
158Master_Host 127.0.0.1
159Master_User root
160Master_Port MASTER_MYPORT
161Connect_Retry 1
162Master_Log_File master-bin.000001
163Read_Master_Log_Pos #
164Relay_Log_File slave-relay-bin.000004
165Relay_Log_Pos #
166Relay_Master_Log_File master-bin.000001
167Slave_IO_Running Yes
168Slave_SQL_Running No
169Replicate_Do_DB
170Replicate_Ignore_DB
171Replicate_Do_Table
172Replicate_Ignore_Table
173Replicate_Wild_Do_Table
174Replicate_Wild_Ignore_Table
175Last_Errno 0
176Last_Error
177Skip_Counter 0
178Exec_Master_Log_Pos #
179Relay_Log_Space #
180Until_Condition Master
181Until_Log_File master-bin.000001
182Until_Log_Pos 740
183Master_SSL_Allowed No
184Master_SSL_CA_File
185Master_SSL_CA_Path
186Master_SSL_Cert
187Master_SSL_Cipher
188Master_SSL_Key
189Seconds_Behind_Master #
190Master_SSL_Verify_Server_Cert No
191Last_IO_Errno 0
192Last_IO_Error
193Last_SQL_Errno 0
194Last_SQL_Error
195Replicate_Ignore_Server_Ids
196Master_Server_Id 1
197start slave until master_log_file='master-bin', master_log_pos=561;
198ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
199start slave until master_log_file='master-bin.000001', master_log_pos=561, relay_log_pos=12;
200ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
201start slave until master_log_file='master-bin.000001';
202ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
203start slave until relay_log_file='slave-relay-bin.000002';
204ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
205start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561;
206ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
207start slave sql_thread;
208start slave until master_log_file='master-bin.000001', master_log_pos=740;
209Warnings:56Warnings:
210Level Note57Note 1254 Slave is already running
211Code 125458include/stop_slave.inc
212Message Slave is already running59RESET SLAVE;
60include/rpl_end.inc
21361
=== modified file 'Percona-Server/mysql-test/suite/engines/funcs/t/disabled.def'
--- Percona-Server/mysql-test/suite/engines/funcs/t/disabled.def 2011-01-05 06:53:05 +0000
+++ Percona-Server/mysql-test/suite/engines/funcs/t/disabled.def 2013-02-18 05:17:25 +0000
@@ -70,7 +70,6 @@
70rpl000017 : Result Difference Due To Change In .inc file70rpl000017 : Result Difference Due To Change In .inc file
71rpl_skip_error : Result Difference Due To Change In .inc file71rpl_skip_error : Result Difference Due To Change In .inc file
7272
73rpl_row_until : Test Present in rpl suite as well . Test Fails table with t2 table not found.
74rpl_loaddata_s : Test Present in rpl suite as well . Test Fails due to bin log truncation.73rpl_loaddata_s : Test Present in rpl suite as well . Test Fails due to bin log truncation.
75rpl_log_pos : Test Present in rpl suite as well . Test Fails due to bin log truncation.74rpl_log_pos : Test Present in rpl suite as well . Test Fails due to bin log truncation.
76rpl_row_NOW : Result Difference Due To Change In .inc file75rpl_row_NOW : Result Difference Due To Change In .inc file
@@ -96,4 +95,3 @@
96rpl_row_inexist_tbl : Result Difference Due To Change In .inc file95rpl_row_inexist_tbl : Result Difference Due To Change In .inc file
97rpl_sp : Result Difference Due To Change In .inc file96rpl_sp : Result Difference Due To Change In .inc file
98rpl_rbr_to_sbr : Result Difference Due To Change In .inc file97rpl_rbr_to_sbr : Result Difference Due To Change In .inc file
99rpl_row_until : Test Timesout
10098
=== modified file 'Percona-Server/mysql-test/suite/engines/funcs/t/rpl_row_until.test'
--- Percona-Server/mysql-test/suite/engines/funcs/t/rpl_row_until.test 2011-01-05 06:53:05 +0000
+++ Percona-Server/mysql-test/suite/engines/funcs/t/rpl_row_until.test 2013-02-18 05:17:25 +0000
@@ -2,90 +2,126 @@
2-- source include/have_binlog_format_row.inc2-- source include/have_binlog_format_row.inc
3-- source include/master-slave.inc3-- source include/master-slave.inc
44
5# Test is dependent on binlog positions5# Note: The test is dependent on binlog positions
66
7# prepare version for substitutions7# Create some events on master
8let $VERSION=`select version()`;8connection master;
99CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
10# stop slave before he will start replication also sync with master10INSERT INTO t1 VALUES (1),(2),(3),(4);
11# for avoiding undetermenistic behaviour11DROP TABLE t1;
12save_master_pos;12# Save master log position for query DROP TABLE t1
13connection slave;13save_master_pos;
14sync_with_master;14let $master_pos_drop_t1= query_get_value(SHOW BINLOG EVENTS, Pos, 7);
15stop slave;15let $master_log_file= query_get_value(SHOW BINLOG EVENTS, Log_name, 7);
1616
17connection master;17CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
18# create some events on master18# Save master log position for query CREATE TABLE t2
19create table t1(n int not null auto_increment primary key);19save_master_pos;
20insert into t1 values (1),(2),(3),(4);20let $master_pos_create_t2= query_get_value(SHOW BINLOG EVENTS, Pos, 8);
21drop table t1;21
22create table t2(n int not null auto_increment primary key);22INSERT INTO t2 VALUES (1),(2);
23insert into t2 values (1),(2);23save_master_pos;
24insert into t2 values (3),(4);24# Save master log position for query INSERT INTO t2 VALUES (1),(2);
25drop table t2;25let $master_pos_insert1_t2= query_get_value(SHOW BINLOG EVENTS, End_log_pos, 12);
2626sync_slave_with_master;
27# try to replicate all queries until drop of t127
28connection slave;28# Save relay log position for query INSERT INTO t2 VALUES (1),(2);
29start slave until master_log_file='master-bin.000001', master_log_pos=311;29let $relay_pos_insert1_t2= query_get_value(show slave status, Relay_Log_Pos, 1);
30sleep 2;30
31wait_for_slave_to_stop;31connection master;
32# here table should be still not deleted32INSERT INTO t2 VALUES (3),(4);
33select * from t1;33DROP TABLE t2;
34--vertical_results34# Save master log position for query INSERT INTO t2 VALUES (1),(2);
35--replace_result $MASTER_MYPORT MASTER_MYPORT35let $master_pos_drop_t2= query_get_value(SHOW BINLOG EVENTS, End_log_pos, 17);
36--replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 #36sync_slave_with_master;
37show slave status;37
3838--source include/stop_slave.inc
39# this should fail right after start39# Reset slave.
40start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;40RESET SLAVE;
41--disable_query_log
42eval CHANGE MASTER TO MASTER_USER='root', MASTER_CONNECT_RETRY=1, MASTER_HOST='127.0.0.1', MASTER_PORT=$MASTER_MYPORT;
43--enable_query_log
44
45# Try to replicate all queries until drop of t1
46connection slave;
47echo START SLAVE UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=master_pos_drop_t1;
48--disable_query_log
49eval START SLAVE UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=$master_pos_drop_t1;
50--enable_query_log
51--source include/wait_for_slave_sql_to_stop.inc
52
53# Here table should be still not deleted
54SELECT * FROM t1;
55--let $slave_param= Exec_Master_Log_Pos
56--let $slave_param_value= $master_pos_drop_t1
57--source include/check_slave_param.inc
58
59# This should fail right after start
60--replace_result 291 MASTER_LOG_POS
61START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=291;
62--source include/wait_for_slave_sql_to_stop.inc
41# again this table should be still not deleted63# again this table should be still not deleted
42select * from t1;64SELECT * FROM t1;
43sleep 2;65
44wait_for_slave_to_stop;66--let $slave_param= Exec_Master_Log_Pos
45--vertical_results67--let $slave_param_value= $master_pos_drop_t1
46--replace_result $MASTER_MYPORT MASTER_MYPORT68--source include/check_slave_param.inc
47--replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 #69
48show slave status;70# Try replicate all up to and not including the second insert to t2;
4971echo START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2;
50# try replicate all up to and not including the second insert to t2;72--disable_query_log
51start slave until relay_log_file='slave-relay-bin.000004', relay_log_pos=728;73eval START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=$relay_pos_insert1_t2;
52sleep 2;74--enable_query_log
53wait_for_slave_to_stop;75--source include/wait_for_slave_sql_to_stop.inc
54select * from t2;76SELECT * FROM t2;
55--vertical_results77
56--replace_result $MASTER_MYPORT MASTER_MYPORT78--let $slave_param= Exec_Master_Log_Pos
57--replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 #79--let $slave_param_value= $master_pos_insert1_t2
58show slave status;80--source include/check_slave_param.inc
5981
60# clean up82# clean up
61start slave;83START SLAVE;
84--source include/wait_for_slave_to_start.inc
62connection master;85connection master;
63save_master_pos;86sync_slave_with_master;
64connection slave;87--source include/stop_slave.inc
65sync_with_master;
66stop slave;
6788
68# this should stop immediately as we are already there89# This should stop immediately as we are already there
69start slave until master_log_file='master-bin.000001', master_log_pos=740;90echo START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=master_pos_create_t2;
70sleep 2;91--disable_query_log
71wait_for_slave_to_stop;92eval START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=$master_pos_create_t2;
93--enable_query_log
94let $slave_param= Until_Log_Pos;
95let $slave_param_value= $master_pos_create_t2;
96--source include/wait_for_slave_param.inc
97--source include/wait_for_slave_sql_to_stop.inc
72# here the sql slave thread should be stopped98# here the sql slave thread should be stopped
73--vertical_results99--let $slave_param= Exec_Master_Log_Pos
74--replace_result $MASTER_MYPORT MASTER_MYPORT bin.000005 bin.000004 bin.000006 bin.000004 bin.000007 bin.000004100--let $slave_param_value= $master_pos_drop_t2
75--replace_column 1 # 7 # 9 # 22 # 23 # 33 #101--source include/check_slave_param.inc
76show slave status;
77102
78#testing various error conditions103#testing various error conditions
79--error 1277104--replace_result 561 MASTER_LOG_POS
80start slave until master_log_file='master-bin', master_log_pos=561;105--error 1277
81--error 1277106START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=561;
82start slave until master_log_file='master-bin.000001', master_log_pos=561, relay_log_pos=12;107--replace_result 561 MASTER_LOG_POS 12 RELAY_LOG_POS
83--error 1277108--error 1277
84start slave until master_log_file='master-bin.000001';109START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=561, RELAY_LOG_POS=12;
85--error 1277110--error 1277
86start slave until relay_log_file='slave-relay-bin.000002';111START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001';
87--error 1277112--error 1277
88start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561;113START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009';
114--replace_result 561 MASTER_LOG_POS
115--error 1277
116START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=561;
89# Warning should be given for second command117# Warning should be given for second command
90start slave sql_thread;118START SLAVE;
91start slave until master_log_file='master-bin.000001', master_log_pos=740;119--replace_result 740 MASTER_LOG_POS
120START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=740;
121
122--source include/stop_slave.inc
123# Clear slave IO error.
124RESET SLAVE;
125
126--let $rpl_only_running_threads= 1
127--source include/rpl_end.inc
92128
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb-index.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb-index.result 2012-09-01 05:57:53 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb-index.result 2013-02-18 05:17:25 +0000
@@ -956,7 +956,7 @@
956test.t1 check status OK956test.t1 check status OK
957explain select * from t1 where b like 'adfd%';957explain select * from t1 where b like 'adfd%';
958id select_type table type possible_keys key key_len ref rows Extra958id select_type table type possible_keys key key_len ref rows Extra
9591 SIMPLE t1 ALL b NULL NULL NULL 15 Using where9591 SIMPLE t1 range b b 769 NULL 11 Using where
960drop table t1;960drop table t1;
961set global innodb_file_per_table=on;961set global innodb_file_per_table=on;
962set global innodb_file_format='Barracuda';962set global innodb_file_format='Barracuda';
963963
=== added file 'Percona-Server/mysql-test/suite/innodb/r/innodb_bug14147491.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb_bug14147491.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb_bug14147491.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,17 @@
1CALL mtr.add_suppression("InnoDB: Error: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts");
2CALL mtr.add_suppression("InnoDB: Warning: database page corruption or a failed");
3# Create and populate the table to be corrupted
4CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ENGINE=InnoDB;
5INSERT INTO t1 (b) VALUES ('corrupt me');
6INSERT INTO t1 (b) VALUES ('corrupt me');
7# Restart server to flush buffers
8# Corrupt the table
9Munged a string.
10Munged a string.
11# Write file to make mysql-test-run.pl expect crash and restart
12SELECT * FROM t1;
13ERROR HY000: Lost connection to MySQL server during query
14# Turn on reconnect
15# Wait for server to fully start
16# Cleanup
17DROP TABLE t1;
018
=== added file 'Percona-Server/mysql-test/suite/innodb/r/innodb_bug14676111.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb_bug14676111.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb_bug14676111.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,53 @@
1drop table if exists t1;
2CREATE TABLE t1 (a int not null primary key) engine=InnoDB;
3set global innodb_limit_optimistic_insert_debug = 2;
4insert into t1 values (1);
5insert into t1 values (5);
6insert into t1 values (4);
7insert into t1 values (3);
8insert into t1 values (2);
9analyze table t1;
10Table Op Msg_type Msg_text
11test.t1 analyze status OK
12select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
13DATA_LENGTH / 16384
1410.0000
15delete from t1 where a=4;
16analyze table t1;
17Table Op Msg_type Msg_text
18test.t1 analyze status OK
19select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
20DATA_LENGTH / 16384
218.0000
22delete from t1 where a=5;
23analyze table t1;
24Table Op Msg_type Msg_text
25test.t1 analyze status OK
26select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
27DATA_LENGTH / 16384
285.0000
29set global innodb_limit_optimistic_insert_debug = 10000;
30delete from t1 where a=2;
31analyze table t1;
32Table Op Msg_type Msg_text
33test.t1 analyze status OK
34select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
35DATA_LENGTH / 16384
363.0000
37insert into t1 values (2);
38delete from t1 where a=2;
39analyze table t1;
40Table Op Msg_type Msg_text
41test.t1 analyze status OK
42select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
43DATA_LENGTH / 16384
442.0000
45insert into t1 values (2);
46delete from t1 where a=2;
47analyze table t1;
48Table Op Msg_type Msg_text
49test.t1 analyze status OK
50select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
51DATA_LENGTH / 16384
521.0000
53drop table t1;
054
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb_mysql.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb_mysql.result 2011-05-26 15:50:06 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb_mysql.result 2013-02-18 05:17:25 +0000
@@ -343,7 +343,7 @@
3431 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary3431 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
344explain select distinct f1, f2 from t1;344explain select distinct f1, f2 from t1;
345id select_type table type possible_keys key key_len ref rows Extra345id select_type table type possible_keys key key_len ref rows Extra
3461 SIMPLE t1 range NULL PRIMARY 5 NULL 3 Using index for group-by; Using temporary3461 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index
347drop table t1;347drop table t1;
348CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20),348CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20),
349INDEX (name));349INDEX (name));
@@ -1738,7 +1738,7 @@
1738FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x;1738FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x;
1739id select_type table type possible_keys key key_len ref rows Extra1739id select_type table type possible_keys key key_len ref rows Extra
17401 PRIMARY <derived2> system NULL NULL NULL NULL 1 17401 PRIMARY <derived2> system NULL NULL NULL NULL 1
17412 DERIVED t1 ALL c3,c2 c3 5 5 Using filesort17412 DERIVED t1 ALL c3,c2 c3 5 5 Using where; Using filesort
1742DROP TABLE t1;1742DROP TABLE t1;
1743CREATE TABLE t1 (c1 REAL, c2 REAL, c3 REAL, KEY (c3), KEY (c2, c3))1743CREATE TABLE t1 (c1 REAL, c2 REAL, c3 REAL, KEY (c3), KEY (c2, c3))
1744ENGINE=InnoDB;1744ENGINE=InnoDB;
@@ -1752,7 +1752,7 @@
1752FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x;1752FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x;
1753id select_type table type possible_keys key key_len ref rows Extra1753id select_type table type possible_keys key key_len ref rows Extra
17541 PRIMARY <derived2> system NULL NULL NULL NULL 1 17541 PRIMARY <derived2> system NULL NULL NULL NULL 1
17552 DERIVED t1 ALL c3,c2 c3 9 5 Using filesort17552 DERIVED t1 ALL c3,c2 c3 9 5 Using where; Using filesort
1756DROP TABLE t1;1756DROP TABLE t1;
1757CREATE TABLE t1 (c1 DECIMAL(12,2), c2 DECIMAL(12,2), c3 DECIMAL(12,2), 1757CREATE TABLE t1 (c1 DECIMAL(12,2), c2 DECIMAL(12,2), c3 DECIMAL(12,2),
1758KEY (c3), KEY (c2, c3))1758KEY (c3), KEY (c2, c3))
@@ -1767,7 +1767,7 @@
1767FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x;1767FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x;
1768id select_type table type possible_keys key key_len ref rows Extra1768id select_type table type possible_keys key key_len ref rows Extra
17691 PRIMARY <derived2> system NULL NULL NULL NULL 1 17691 PRIMARY <derived2> system NULL NULL NULL NULL 1
17702 DERIVED t1 ALL c3,c2 c3 7 5 Using filesort17702 DERIVED t1 ALL c3,c2 c3 7 5 Using where; Using filesort
1771DROP TABLE t1;1771DROP TABLE t1;
1772End of 5.1 tests1772End of 5.1 tests
1773#1773#
17741774
=== added file 'Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491-master.opt'
--- Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491-master.opt 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491-master.opt 2013-02-18 05:17:25 +0000
@@ -0,0 +1,1 @@
1--innodb_file_per_table=1 --skip-stack-trace --skip-core-file
02
=== added file 'Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491.test'
--- Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,75 @@
1#
2# Test opening a corrupted table.
3#
4
5# Don't test under valgrind, memory leaks will occur
6source include/not_valgrind.inc;
7# Avoid CrashReporter popup on Mac
8source include/not_crashrep.inc;
9# Don't test under embedded
10source include/not_embedded.inc;
11# Require InnoDB
12source include/have_innodb.inc;
13
14CALL mtr.add_suppression("InnoDB: Error: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts");
15CALL mtr.add_suppression("InnoDB: Warning: database page corruption or a failed");
16
17--echo # Create and populate the table to be corrupted
18CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ENGINE=InnoDB;
19INSERT INTO t1 (b) VALUES ('corrupt me');
20--disable_query_log
21--let $i = 10
22while ($i)
23{
24 INSERT INTO t1 (b) VALUES (REPEAT('abcdefghijklmnopqrstuvwxyz', 100));
25 dec $i;
26}
27--enable_query_log
28INSERT INTO t1 (b) VALUES ('corrupt me');
29
30--echo # Restart server to flush buffers
31source include/restart_mysqld.inc;
32
33--echo # Corrupt the table
34let $MYSQLD_DATADIR=`select @@datadir`;
35let t1_IBD = $MYSQLD_DATADIR/test/t1.ibd;
36
37perl;
38use strict;
39use warnings;
40use Fcntl qw(:DEFAULT :seek);
41
42my $ibd_file = $ENV{'t1_IBD'};
43
44my $chunk;
45my $len;
46
47sysopen IBD_FILE, $ibd_file, O_RDWR || die "Unable to open $ibd_file";
48
49while ($len = sysread IBD_FILE, $chunk, 1024)
50{
51 if ($chunk =~ s/corrupt me/korrupt me/)
52 {
53 print "Munged a string.\n";
54 sysseek IBD_FILE, -$len, SEEK_CUR;
55 syswrite IBD_FILE, $chunk, $len;
56 }
57}
58
59close IBD_FILE;
60EOF
61
62--echo # Write file to make mysql-test-run.pl expect crash and restart
63--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
64
65--error 2013
66SELECT * FROM t1;
67
68--echo # Turn on reconnect
69--enable_reconnect
70
71--echo # Wait for server to fully start
72--source include/wait_until_connected_again.inc
73
74--echo # Cleanup
75DROP TABLE t1;
076
=== added file 'Percona-Server/mysql-test/suite/innodb/t/innodb_bug14676111.test'
--- Percona-Server/mysql-test/suite/innodb/t/innodb_bug14676111.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/innodb/t/innodb_bug14676111.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,128 @@
1# Test for bug #14676111: WRONG PAGE_LEVEL WRITTEN FOR UPPER THAN FATHER PAGE AT BTR_LIFT_PAGE_UP()
2
3-- source include/have_innodb.inc
4-- source include/have_debug.inc
5
6if (`select count(*)=0 from information_schema.global_variables where variable_name = 'INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG'`)
7{
8 --skip Test requires InnoDB built with UNIV_DEBUG definition.
9}
10
11--disable_query_log
12set @old_innodb_limit_optimistic_insert_debug = @@innodb_limit_optimistic_insert_debug;
13--enable_query_log
14--disable_warnings
15drop table if exists t1;
16--enable_warnings
17
18CREATE TABLE t1 (a int not null primary key) engine=InnoDB;
19
20let $wait_condition=
21 SELECT VARIABLE_VALUE < 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS
22 WHERE VARIABLE_NAME = 'INNODB_PURGE_TRX_ID_AGE';
23
24#
25# make 4 leveled straight tree
26#
27set global innodb_limit_optimistic_insert_debug = 2;
28insert into t1 values (1);
29insert into t1 values (5);
30#current tree form
31# (1, 5)
32
33insert into t1 values (4);
34#records in a page is limited to 2 artificially. root rise occurs
35#current tree form
36# (1, 5)
37#(1, 4) (5)
38
39insert into t1 values (3);
40#current tree form
41# (1, 5)
42# (1, 4) (5)
43#(1, 3) (4) (5)
44
45insert into t1 values (2);
46#current tree form
47# (1, 5)
48# (1, 4) (5)
49# (1, 3) (4) (5)
50#(1, 2) (3) (4) (5)
51
52analyze table t1;
53select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
54
55delete from t1 where a=4;
56--source include/wait_condition.inc
57#deleting 1 record of 2 records don't cause merge artificially.
58#current tree form
59# (1, 5)
60# (1) (5)
61# (1, 3) (5)
62#(1, 2) (3) (5)
63
64analyze table t1;
65select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
66
67delete from t1 where a=5;
68--source include/wait_condition.inc
69#deleting 1 record of 2 records don't cause merge artificially.
70#current tree form
71# (1)
72# (1)
73# (1, 3) <- lift up this level next, when deleting node ptr
74#(1, 2) (3) <- merged next
75
76analyze table t1;
77select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
78
79#
80# cause merge at level 0
81#
82
83#disable the artificial limitation of records in a page
84set global innodb_limit_optimistic_insert_debug = 10000;
85delete from t1 where a=2;
86--source include/wait_condition.inc
87#merge page occurs. and lift up occurs.
88#current tree form
89# (1)
90# (1)
91# (1, 3)
92
93analyze table t1;
94select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
95
96insert into t1 values (2);
97#current tree form
98# (1)
99# (1) <- lift up this level next, because it is not root
100# (1, 2, 3)
101
102delete from t1 where a=2;
103--source include/wait_condition.inc
104#current tree form
105# (1)
106# (1, 3)
107
108analyze table t1;
109select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
110
111insert into t1 values (2);
112#current tree form
113# (1)
114# (1, 2, 3) <- lift up this level next, because the father is root
115
116delete from t1 where a=2;
117--source include/wait_condition.inc
118#current tree form
119# (1, 3)
120
121analyze table t1;
122select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
123
124drop table t1;
125
126--disable_query_log
127set global innodb_limit_optimistic_insert_debug = @old_innodb_limit_optimistic_insert_debug;
128--enable_query_log
0129
=== modified file 'Percona-Server/mysql-test/suite/parts/r/partition_alter4_innodb.result'
--- Percona-Server/mysql-test/suite/parts/r/partition_alter4_innodb.result 2008-11-04 07:43:21 +0000
+++ Percona-Server/mysql-test/suite/parts/r/partition_alter4_innodb.result 2013-02-18 05:17:25 +0000
@@ -37566,7 +37566,7 @@
37566WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;37566WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
37567ALTER TABLE t1 OPTIMIZE PARTITION part_1;37567ALTER TABLE t1 OPTIMIZE PARTITION part_1;
37568Table Op Msg_type Msg_text37568Table Op Msg_type Msg_text
37569test.t1 optimize note Table does not support optimize, doing recreate + analyze instead37569test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
37570test.t1 optimize status OK37570test.t1 optimize status OK
37571INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)37571INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
37572SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template37572SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -38026,7 +38026,7 @@
38026WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;38026WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
38027ALTER TABLE t1 OPTIMIZE PARTITION part_1;38027ALTER TABLE t1 OPTIMIZE PARTITION part_1;
38028Table Op Msg_type Msg_text38028Table Op Msg_type Msg_text
38029test.t1 optimize note Table does not support optimize, doing recreate + analyze instead38029test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
38030test.t1 optimize status OK38030test.t1 optimize status OK
38031INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)38031INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
38032SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template38032SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -38497,7 +38497,7 @@
38497WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;38497WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
38498ALTER TABLE t1 OPTIMIZE PARTITION part_1;38498ALTER TABLE t1 OPTIMIZE PARTITION part_1;
38499Table Op Msg_type Msg_text38499Table Op Msg_type Msg_text
38500test.t1 optimize note Table does not support optimize, doing recreate + analyze instead38500test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
38501test.t1 optimize status OK38501test.t1 optimize status OK
38502INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)38502INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
38503SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template38503SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -38969,7 +38969,7 @@
38969WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;38969WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
38970ALTER TABLE t1 OPTIMIZE PARTITION part_1;38970ALTER TABLE t1 OPTIMIZE PARTITION part_1;
38971Table Op Msg_type Msg_text38971Table Op Msg_type Msg_text
38972test.t1 optimize note Table does not support optimize, doing recreate + analyze instead38972test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
38973test.t1 optimize status OK38973test.t1 optimize status OK
38974INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)38974INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
38975SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template38975SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -39435,7 +39435,7 @@
39435WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;39435WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
39436ALTER TABLE t1 OPTIMIZE PARTITION part_1;39436ALTER TABLE t1 OPTIMIZE PARTITION part_1;
39437Table Op Msg_type Msg_text39437Table Op Msg_type Msg_text
39438test.t1 optimize note Table does not support optimize, doing recreate + analyze instead39438test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
39439test.t1 optimize status OK39439test.t1 optimize status OK
39440INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)39440INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
39441SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template39441SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -39907,7 +39907,7 @@
39907WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;39907WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
39908ALTER TABLE t1 OPTIMIZE PARTITION part_1;39908ALTER TABLE t1 OPTIMIZE PARTITION part_1;
39909Table Op Msg_type Msg_text39909Table Op Msg_type Msg_text
39910test.t1 optimize note Table does not support optimize, doing recreate + analyze instead39910test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
39911test.t1 optimize status OK39911test.t1 optimize status OK
39912INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)39912INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
39913SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template39913SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -40384,7 +40384,7 @@
40384WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;40384WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
40385ALTER TABLE t1 OPTIMIZE PARTITION part_1;40385ALTER TABLE t1 OPTIMIZE PARTITION part_1;
40386Table Op Msg_type Msg_text40386Table Op Msg_type Msg_text
40387test.t1 optimize note Table does not support optimize, doing recreate + analyze instead40387test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
40388test.t1 optimize status OK40388test.t1 optimize status OK
40389INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)40389INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
40390SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template40390SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -40859,7 +40859,7 @@
40859WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;40859WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
40860ALTER TABLE t1 OPTIMIZE PARTITION part_1;40860ALTER TABLE t1 OPTIMIZE PARTITION part_1;
40861Table Op Msg_type Msg_text40861Table Op Msg_type Msg_text
40862test.t1 optimize note Table does not support optimize, doing recreate + analyze instead40862test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
40863test.t1 optimize status OK40863test.t1 optimize status OK
40864INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)40864INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
40865SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template40865SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -41324,7 +41324,7 @@
41324WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;41324WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
41325ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;41325ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
41326Table Op Msg_type Msg_text41326Table Op Msg_type Msg_text
41327test.t1 optimize note Table does not support optimize, doing recreate + analyze instead41327test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
41328test.t1 optimize status OK41328test.t1 optimize status OK
41329INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)41329INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
41330SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template41330SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -41784,7 +41784,7 @@
41784WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;41784WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
41785ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;41785ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
41786Table Op Msg_type Msg_text41786Table Op Msg_type Msg_text
41787test.t1 optimize note Table does not support optimize, doing recreate + analyze instead41787test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
41788test.t1 optimize status OK41788test.t1 optimize status OK
41789INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)41789INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
41790SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template41790SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -42255,7 +42255,7 @@
42255WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;42255WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
42256ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;42256ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
42257Table Op Msg_type Msg_text42257Table Op Msg_type Msg_text
42258test.t1 optimize note Table does not support optimize, doing recreate + analyze instead42258test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
42259test.t1 optimize status OK42259test.t1 optimize status OK
42260INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)42260INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
42261SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template42261SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -42727,7 +42727,7 @@
42727WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;42727WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
42728ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;42728ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
42729Table Op Msg_type Msg_text42729Table Op Msg_type Msg_text
42730test.t1 optimize note Table does not support optimize, doing recreate + analyze instead42730test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
42731test.t1 optimize status OK42731test.t1 optimize status OK
42732INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)42732INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
42733SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template42733SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -43193,7 +43193,7 @@
43193WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;43193WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
43194ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;43194ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
43195Table Op Msg_type Msg_text43195Table Op Msg_type Msg_text
43196test.t1 optimize note Table does not support optimize, doing recreate + analyze instead43196test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
43197test.t1 optimize status OK43197test.t1 optimize status OK
43198INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)43198INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
43199SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template43199SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -43665,7 +43665,7 @@
43665WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;43665WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
43666ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;43666ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
43667Table Op Msg_type Msg_text43667Table Op Msg_type Msg_text
43668test.t1 optimize note Table does not support optimize, doing recreate + analyze instead43668test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
43669test.t1 optimize status OK43669test.t1 optimize status OK
43670INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)43670INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
43671SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template43671SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -44142,7 +44142,7 @@
44142WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;44142WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
44143ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;44143ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
44144Table Op Msg_type Msg_text44144Table Op Msg_type Msg_text
44145test.t1 optimize note Table does not support optimize, doing recreate + analyze instead44145test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
44146test.t1 optimize status OK44146test.t1 optimize status OK
44147INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)44147INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
44148SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template44148SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -44617,7 +44617,7 @@
44617WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;44617WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
44618ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;44618ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
44619Table Op Msg_type Msg_text44619Table Op Msg_type Msg_text
44620test.t1 optimize note Table does not support optimize, doing recreate + analyze instead44620test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
44621test.t1 optimize status OK44621test.t1 optimize status OK
44622INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)44622INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
44623SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template44623SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -52582,7 +52582,7 @@
52582WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;52582WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
52583ALTER TABLE t1 OPTIMIZE PARTITION ALL;52583ALTER TABLE t1 OPTIMIZE PARTITION ALL;
52584Table Op Msg_type Msg_text52584Table Op Msg_type Msg_text
52585test.t1 optimize note Table does not support optimize, doing recreate + analyze instead52585test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
52586test.t1 optimize status OK52586test.t1 optimize status OK
52587INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)52587INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
52588SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template52588SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -53042,7 +53042,7 @@
53042WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;53042WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
53043ALTER TABLE t1 OPTIMIZE PARTITION ALL;53043ALTER TABLE t1 OPTIMIZE PARTITION ALL;
53044Table Op Msg_type Msg_text53044Table Op Msg_type Msg_text
53045test.t1 optimize note Table does not support optimize, doing recreate + analyze instead53045test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
53046test.t1 optimize status OK53046test.t1 optimize status OK
53047INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)53047INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
53048SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template53048SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -53513,7 +53513,7 @@
53513WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;53513WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
53514ALTER TABLE t1 OPTIMIZE PARTITION ALL;53514ALTER TABLE t1 OPTIMIZE PARTITION ALL;
53515Table Op Msg_type Msg_text53515Table Op Msg_type Msg_text
53516test.t1 optimize note Table does not support optimize, doing recreate + analyze instead53516test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
53517test.t1 optimize status OK53517test.t1 optimize status OK
53518INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)53518INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
53519SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template53519SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -53985,7 +53985,7 @@
53985WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;53985WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
53986ALTER TABLE t1 OPTIMIZE PARTITION ALL;53986ALTER TABLE t1 OPTIMIZE PARTITION ALL;
53987Table Op Msg_type Msg_text53987Table Op Msg_type Msg_text
53988test.t1 optimize note Table does not support optimize, doing recreate + analyze instead53988test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
53989test.t1 optimize status OK53989test.t1 optimize status OK
53990INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)53990INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
53991SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template53991SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -54451,7 +54451,7 @@
54451WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;54451WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
54452ALTER TABLE t1 OPTIMIZE PARTITION ALL;54452ALTER TABLE t1 OPTIMIZE PARTITION ALL;
54453Table Op Msg_type Msg_text54453Table Op Msg_type Msg_text
54454test.t1 optimize note Table does not support optimize, doing recreate + analyze instead54454test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
54455test.t1 optimize status OK54455test.t1 optimize status OK
54456INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)54456INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
54457SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template54457SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -54923,7 +54923,7 @@
54923WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;54923WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
54924ALTER TABLE t1 OPTIMIZE PARTITION ALL;54924ALTER TABLE t1 OPTIMIZE PARTITION ALL;
54925Table Op Msg_type Msg_text54925Table Op Msg_type Msg_text
54926test.t1 optimize note Table does not support optimize, doing recreate + analyze instead54926test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
54927test.t1 optimize status OK54927test.t1 optimize status OK
54928INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)54928INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
54929SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template54929SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -55400,7 +55400,7 @@
55400WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;55400WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
55401ALTER TABLE t1 OPTIMIZE PARTITION ALL;55401ALTER TABLE t1 OPTIMIZE PARTITION ALL;
55402Table Op Msg_type Msg_text55402Table Op Msg_type Msg_text
55403test.t1 optimize note Table does not support optimize, doing recreate + analyze instead55403test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
55404test.t1 optimize status OK55404test.t1 optimize status OK
55405INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)55405INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
55406SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template55406SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
@@ -55875,7 +55875,7 @@
55875WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;55875WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
55876ALTER TABLE t1 OPTIMIZE PARTITION ALL;55876ALTER TABLE t1 OPTIMIZE PARTITION ALL;
55877Table Op Msg_type Msg_text55877Table Op Msg_type Msg_text
55878test.t1 optimize note Table does not support optimize, doing recreate + analyze instead55878test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
55879test.t1 optimize status OK55879test.t1 optimize status OK
55880INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)55880INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
55881SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template55881SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
5588255882
=== added file 'Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history.result'
--- Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,63 @@
1show databases;
2Database
3information_schema
4mtr
5mysql
6performance_schema
7test
8select count(*) from performance_schema.performance_timers;
9count(*)
105
11select count(*) from performance_schema.setup_consumers;
12count(*)
138
14select count(*) > 0 from performance_schema.setup_instruments;
15count(*) > 0
161
17select count(*) from performance_schema.setup_timers;
18count(*)
191
20select * from performance_schema.cond_instances;
21select * from performance_schema.events_waits_current;
22select * from performance_schema.events_waits_history;
23select * from performance_schema.events_waits_history_long;
24select * from performance_schema.events_waits_summary_by_instance;
25select * from performance_schema.events_waits_summary_by_thread_by_event_name;
26select * from performance_schema.events_waits_summary_global_by_event_name;
27select * from performance_schema.file_instances;
28select * from performance_schema.file_summary_by_event_name;
29select * from performance_schema.file_summary_by_instance;
30select * from performance_schema.mutex_instances;
31select * from performance_schema.performance_timers;
32select * from performance_schema.rwlock_instances;
33select * from performance_schema.setup_consumers;
34select * from performance_schema.setup_instruments;
35select * from performance_schema.setup_timers;
36select * from performance_schema.threads;
37show variables like "performance_schema%";
38Variable_name Value
39performance_schema ON
40performance_schema_events_waits_history_long_size 10000
41performance_schema_events_waits_history_size 0
42performance_schema_max_cond_classes 80
43performance_schema_max_cond_instances 1000
44performance_schema_max_file_classes 50
45performance_schema_max_file_handles 32768
46performance_schema_max_file_instances 10000
47performance_schema_max_mutex_classes 200
48performance_schema_max_mutex_instances 10000
49performance_schema_max_rwlock_classes 30
50performance_schema_max_rwlock_instances 10000
51performance_schema_max_table_handles 1000
52performance_schema_max_table_instances 500
53performance_schema_max_thread_classes 50
54performance_schema_max_thread_instances 1000
55show engine PERFORMANCE_SCHEMA status;
56show status like "performance_schema%";
57show variables like "performance_schema_events_waits_history_size";
58Variable_name Value
59performance_schema_events_waits_history_size 0
60select count(*) from performance_schema.events_waits_history;
61count(*)
620
63truncate table performance_schema.events_waits_history;
064
=== added file 'Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result'
--- Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,63 @@
1show databases;
2Database
3information_schema
4mtr
5mysql
6performance_schema
7test
8select count(*) from performance_schema.performance_timers;
9count(*)
105
11select count(*) from performance_schema.setup_consumers;
12count(*)
138
14select count(*) > 0 from performance_schema.setup_instruments;
15count(*) > 0
161
17select count(*) from performance_schema.setup_timers;
18count(*)
191
20select * from performance_schema.cond_instances;
21select * from performance_schema.events_waits_current;
22select * from performance_schema.events_waits_history;
23select * from performance_schema.events_waits_history_long;
24select * from performance_schema.events_waits_summary_by_instance;
25select * from performance_schema.events_waits_summary_by_thread_by_event_name;
26select * from performance_schema.events_waits_summary_global_by_event_name;
27select * from performance_schema.file_instances;
28select * from performance_schema.file_summary_by_event_name;
29select * from performance_schema.file_summary_by_instance;
30select * from performance_schema.mutex_instances;
31select * from performance_schema.performance_timers;
32select * from performance_schema.rwlock_instances;
33select * from performance_schema.setup_consumers;
34select * from performance_schema.setup_instruments;
35select * from performance_schema.setup_timers;
36select * from performance_schema.threads;
37show variables like "performance_schema%";
38Variable_name Value
39performance_schema ON
40performance_schema_events_waits_history_long_size 0
41performance_schema_events_waits_history_size 10
42performance_schema_max_cond_classes 80
43performance_schema_max_cond_instances 1000
44performance_schema_max_file_classes 50
45performance_schema_max_file_handles 32768
46performance_schema_max_file_instances 10000
47performance_schema_max_mutex_classes 200
48performance_schema_max_mutex_instances 10000
49performance_schema_max_rwlock_classes 30
50performance_schema_max_rwlock_instances 10000
51performance_schema_max_table_handles 1000
52performance_schema_max_table_instances 500
53performance_schema_max_thread_classes 50
54performance_schema_max_thread_instances 1000
55show engine PERFORMANCE_SCHEMA status;
56show status like "performance_schema%";
57show variables like "performance_schema_events_waits_history_long_size";
58Variable_name Value
59performance_schema_events_waits_history_long_size 0
60select count(*) from performance_schema.events_waits_history_long;
61count(*)
620
63truncate table performance_schema.events_waits_history_long;
064
=== added file 'Percona-Server/mysql-test/suite/perfschema/r/start_server_nothing.result'
--- Percona-Server/mysql-test/suite/perfschema/r/start_server_nothing.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/r/start_server_nothing.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,122 @@
1show databases;
2Database
3information_schema
4mtr
5mysql
6performance_schema
7test
8select count(*) from performance_schema.performance_timers;
9count(*)
105
11select count(*) from performance_schema.setup_consumers;
12count(*)
138
14select count(*) > 0 from performance_schema.setup_instruments;
15count(*) > 0
160
17select count(*) from performance_schema.setup_timers;
18count(*)
191
20select * from performance_schema.cond_instances;
21select * from performance_schema.events_waits_current;
22select * from performance_schema.events_waits_history;
23select * from performance_schema.events_waits_history_long;
24select * from performance_schema.events_waits_summary_by_instance;
25select * from performance_schema.events_waits_summary_by_thread_by_event_name;
26select * from performance_schema.events_waits_summary_global_by_event_name;
27select * from performance_schema.file_instances;
28select * from performance_schema.file_summary_by_event_name;
29select * from performance_schema.file_summary_by_instance;
30select * from performance_schema.mutex_instances;
31select * from performance_schema.performance_timers;
32select * from performance_schema.rwlock_instances;
33select * from performance_schema.setup_consumers;
34select * from performance_schema.setup_instruments;
35select * from performance_schema.setup_timers;
36select * from performance_schema.threads;
37show variables like "performance_schema%";
38Variable_name Value
39performance_schema ON
40performance_schema_events_waits_history_long_size 0
41performance_schema_events_waits_history_size 0
42performance_schema_max_cond_classes 0
43performance_schema_max_cond_instances 0
44performance_schema_max_file_classes 0
45performance_schema_max_file_handles 0
46performance_schema_max_file_instances 0
47performance_schema_max_mutex_classes 0
48performance_schema_max_mutex_instances 0
49performance_schema_max_rwlock_classes 0
50performance_schema_max_rwlock_instances 0
51performance_schema_max_table_handles 1000
52performance_schema_max_table_instances 500
53performance_schema_max_thread_classes 0
54performance_schema_max_thread_instances 0
55show engine PERFORMANCE_SCHEMA status;
56show status like "performance_schema%";
57show variables like "performance_schema%";
58Variable_name Value
59performance_schema ON
60performance_schema_events_waits_history_long_size 0
61performance_schema_events_waits_history_size 0
62performance_schema_max_cond_classes 0
63performance_schema_max_cond_instances 0
64performance_schema_max_file_classes 0
65performance_schema_max_file_handles 0
66performance_schema_max_file_instances 0
67performance_schema_max_mutex_classes 0
68performance_schema_max_mutex_instances 0
69performance_schema_max_rwlock_classes 0
70performance_schema_max_rwlock_instances 0
71performance_schema_max_table_handles 1000
72performance_schema_max_table_instances 500
73performance_schema_max_thread_classes 0
74performance_schema_max_thread_instances 0
75select * from performance_schema.setup_instruments;
76NAME ENABLED TIMED
77select TIMER_NAME from performance_schema.performance_timers;
78TIMER_NAME
79CYCLE
80NANOSECOND
81MICROSECOND
82MILLISECOND
83TICK
84select * from performance_schema.setup_consumers;
85NAME ENABLED
86events_waits_current YES
87events_waits_history YES
88events_waits_history_long YES
89events_waits_summary_by_thread_by_event_name YES
90events_waits_summary_by_event_name YES
91events_waits_summary_by_instance YES
92file_summary_by_event_name YES
93file_summary_by_instance YES
94select NAME from performance_schema.setup_timers;
95NAME
96wait
97select * from performance_schema.cond_instances;
98NAME OBJECT_INSTANCE_BEGIN
99select * from performance_schema.events_waits_current;
100THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
101select * from performance_schema.events_waits_history;
102THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
103select * from performance_schema.events_waits_history_long;
104THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
105select * from performance_schema.events_waits_summary_by_instance;
106EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
107select * from performance_schema.events_waits_summary_by_thread_by_event_name;
108THREAD_ID EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
109select * from performance_schema.events_waits_summary_global_by_event_name;
110EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
111select * from performance_schema.file_instances;
112FILE_NAME EVENT_NAME OPEN_COUNT
113select * from performance_schema.file_summary_by_event_name;
114EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
115select * from performance_schema.file_summary_by_instance;
116FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
117select * from performance_schema.mutex_instances;
118NAME OBJECT_INSTANCE_BEGIN LOCKED_BY_THREAD_ID
119select * from performance_schema.rwlock_instances;
120NAME OBJECT_INSTANCE_BEGIN WRITE_LOCKED_BY_THREAD_ID READ_LOCKED_BY_COUNT
121select * from performance_schema.threads;
122THREAD_ID PROCESSLIST_ID NAME
0123
=== added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history-master.opt'
--- Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history-master.opt 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history-master.opt 2013-02-18 05:17:25 +0000
@@ -0,0 +1,2 @@
1--loose-enable-performance-schema
2--loose-performance_schema_events_waits_history_size=0
03
=== added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history.test'
--- Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,14 @@
1# Tests for PERFORMANCE_SCHEMA
2
3--source include/not_embedded.inc
4--source include/have_perfschema.inc
5
6--source ../include/start_server_common.inc
7
8# Expect no history
9show variables like "performance_schema_events_waits_history_size";
10select count(*) from performance_schema.events_waits_history;
11
12# Valid operation, edge case
13truncate table performance_schema.events_waits_history;
14
015
=== added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long-master.opt'
--- Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long-master.opt 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long-master.opt 2013-02-18 05:17:25 +0000
@@ -0,0 +1,2 @@
1--loose-enable-performance-schema
2--loose-performance_schema_events_waits_history_long_size=0
03
=== added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long.test'
--- Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,14 @@
1# Tests for PERFORMANCE_SCHEMA
2
3--source include/not_embedded.inc
4--source include/have_perfschema.inc
5
6--source ../include/start_server_common.inc
7
8# Expect no history long
9show variables like "performance_schema_events_waits_history_long_size";
10select count(*) from performance_schema.events_waits_history_long;
11
12# Valid operation, edge case
13truncate table performance_schema.events_waits_history_long;
14
015
=== added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing-master.opt'
--- Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing-master.opt 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing-master.opt 2013-02-18 05:17:25 +0000
@@ -0,0 +1,19 @@
1--loose-enable-performance-schema
2
3--loose-performance_schema_events_waits_history_long_size=0
4--loose-performance_schema_events_waits_history_size=0
5
6--loose-performance_schema_max_mutex_classes=0
7--loose-performance_schema_max_rwlock_classes=0
8--loose-performance_schema_max_cond_classes=0
9--loose-performance_schema_max_file_classes=0
10--loose-performance_schema_max_thread_classes=0
11
12--loose-performance_schema_max_mutex_instances=0
13--loose-performance_schema_max_rwlock_instances=0
14--loose-performance_schema_max_cond_instances=0
15--loose-performance_schema_max_file_instances=0
16--loose-performance_schema_max_thread_instances=0
17
18--loose-performance_schema_max_file_handles=0
19
020
=== added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing.test'
--- Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,30 @@
1# Tests for PERFORMANCE_SCHEMA
2
3--source include/not_embedded.inc
4--source include/have_perfschema.inc
5
6--source ../include/start_server_common.inc
7
8show variables like "performance_schema%";
9
10# Not empty
11select * from performance_schema.setup_instruments;
12select TIMER_NAME from performance_schema.performance_timers;
13select * from performance_schema.setup_consumers;
14select NAME from performance_schema.setup_timers;
15
16# All empty
17select * from performance_schema.cond_instances;
18select * from performance_schema.events_waits_current;
19select * from performance_schema.events_waits_history;
20select * from performance_schema.events_waits_history_long;
21select * from performance_schema.events_waits_summary_by_instance;
22select * from performance_schema.events_waits_summary_by_thread_by_event_name;
23select * from performance_schema.events_waits_summary_global_by_event_name;
24select * from performance_schema.file_instances;
25select * from performance_schema.file_summary_by_event_name;
26select * from performance_schema.file_summary_by_instance;
27select * from performance_schema.mutex_instances;
28select * from performance_schema.rwlock_instances;
29select * from performance_schema.threads;
30
031
=== modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_bug31076.result'
--- Percona-Server/mysql-test/suite/rpl/r/rpl_bug31076.result 2010-12-19 17:15:12 +0000
+++ Percona-Server/mysql-test/suite/rpl/r/rpl_bug31076.result 2013-02-18 05:17:25 +0000
@@ -35,6 +35,7 @@
35KEY `visit_id` (`visit_id`),35KEY `visit_id` (`visit_id`),
36KEY `data` (`data`)36KEY `data` (`data`)
37) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1;37) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1;
38/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
38/*!40019 SET @@session.max_insert_delayed_threads=0*/;39/*!40019 SET @@session.max_insert_delayed_threads=0*/;
39/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;40/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
40BINLOG '41BINLOG '
@@ -47,6 +48,7 @@
47TC00LjEvbXlzcWwtNC4xLjEyYS13aW4zMi56aXBPaAIC48TC00LjEvbXlzcWwtNC4xLjEyYS13aW4zMi56aXBPaAIC
48'/*!*/;49'/*!*/;
49SET INSERT_ID=21231039/*!*/;50SET INSERT_ID=21231039/*!*/;
51/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
50use track/*!*/;52use track/*!*/;
51SET TIMESTAMP=1190087942/*!*/;53SET TIMESTAMP=1190087942/*!*/;
52SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;54SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
5355
=== modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_mdev382.result'
--- Percona-Server/mysql-test/suite/rpl/r/rpl_mdev382.result 2012-10-10 20:32:32 +0000
+++ Percona-Server/mysql-test/suite/rpl/r/rpl_mdev382.result 2013-02-18 05:17:25 +0000
@@ -154,6 +154,7 @@
154master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#154master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#
155master-bin.000001 # Execute_load_query # # use `test`; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/f\'le.txt' INTO TABLE `db1``; SELECT 'oops!'`.`t``1` FIELDS TERMINATED BY ',' ENCLOSED BY '\'' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a``1`, `b``2`) SET `c``3`= concat('|', "b""a'z", "!") ;file_id=#155master-bin.000001 # Execute_load_query # # use `test`; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/f\'le.txt' INTO TABLE `db1``; SELECT 'oops!'`.`t``1` FIELDS TERMINATED BY ',' ENCLOSED BY '\'' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a``1`, `b``2`) SET `c``3`= concat('|', "b""a'z", "!") ;file_id=#
156master-bin.000001 # Xid # # COMMIT /* XID */156master-bin.000001 # Xid # # COMMIT /* XID */
157/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
157/*!40019 SET @@session.max_insert_delayed_threads=0*/;158/*!40019 SET @@session.max_insert_delayed_threads=0*/;
158/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;159/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
159DELIMITER /*!*/;160DELIMITER /*!*/;
@@ -193,6 +194,7 @@
193# End of log file194# End of log file
194ROLLBACK /* added by mysqlbinlog */;195ROLLBACK /* added by mysqlbinlog */;
195/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;196/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
197/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
196SELECT * FROM `db1``; SELECT 'oops!'`.`t``1`;198SELECT * FROM `db1``; SELECT 'oops!'`.`t``1`;
197a`1 b`2 c`3199a`1 b`2 c`3
198fo\o bar |b"a'z!200fo\o bar |b"a'z!
@@ -242,6 +244,7 @@
242master-bin.000001 # User var # # @```d```=_latin1 0x78787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878 COLLATE latin1_swedish_ci244master-bin.000001 # User var # # @```d```=_latin1 0x78787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878 COLLATE latin1_swedish_ci
243master-bin.000001 # Query # # use `db1``; SELECT 'oops!'`; INSERT INTO t1 VALUES (@`a``1`+1, @`a``2`*100, @`a``3`-1, @`a``4`-1, @`b```/2, @```c`, substr(@```d```, 2, 98))245master-bin.000001 # Query # # use `db1``; SELECT 'oops!'`; INSERT INTO t1 VALUES (@`a``1`+1, @`a``2`*100, @`a``3`-1, @`a``4`-1, @`b```/2, @```c`, substr(@```d```, 2, 98))
244master-bin.000001 # Xid # # COMMIT /* XID */246master-bin.000001 # Xid # # COMMIT /* XID */
247/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
245/*!40019 SET @@session.max_insert_delayed_threads=0*/;248/*!40019 SET @@session.max_insert_delayed_threads=0*/;
246/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;249/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
247DELIMITER /*!*/;250DELIMITER /*!*/;
@@ -283,6 +286,7 @@
283# End of log file286# End of log file
284ROLLBACK /* added by mysqlbinlog */;287ROLLBACK /* added by mysqlbinlog */;
285/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;288/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
289/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
286SELECT * FROM `db1``; SELECT 'oops!'`.t1 ORDER BY a1;290SELECT * FROM `db1``; SELECT 'oops!'`.t1 ORDER BY a1;
287a1 a2 a3 a4 b c d291a1 a2 a3 a4 b c d
288-9223372036854775808 42 9223372036854775807 18446744073709551615 -1.234560123456789e125 -1234501234567890123456789012345678901234567890123456789.0123456789 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx292-9223372036854775808 42 9223372036854775807 18446744073709551615 -1.234560123456789e125 -1234501234567890123456789012345678901234567890123456789.0123456789 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
289293
=== modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_report_port.result'
--- Percona-Server/mysql-test/suite/rpl/r/rpl_report_port.result 2012-04-26 14:04:03 +0000
+++ Percona-Server/mysql-test/suite/rpl/r/rpl_report_port.result 2013-02-18 05:17:25 +0000
@@ -2,10 +2,12 @@
2[connection master]2[connection master]
3include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000]3include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000]
4include/start_slave.inc4include/start_slave.inc
5include/wait_for_slave_param.inc [Slave_IO_State]
5[Slave restarted with the report-port set to some value]6[Slave restarted with the report-port set to some value]
6include/assert.inc [The value shown for the slave's port number is user specified port number which is the value set for report-port.]7include/assert.inc [The value shown for the slave's port number is user specified port number which is the value set for report-port.]
7include/rpl_restart_server.inc [server_number=2]8include/rpl_restart_server.inc [server_number=2]
8include/start_slave.inc9include/start_slave.inc
10include/wait_for_slave_param.inc [Slave_IO_State]
9[Slave restarted with the report-port set to the value of slave's port number]11[Slave restarted with the report-port set to the value of slave's port number]
10include/assert.inc [The default value shown for the slave's port number is the actual port number of the slave.]12include/assert.inc [The default value shown for the slave's port number is the actual port number of the slave.]
11include/rpl_end.inc13include/rpl_end.inc
1214
=== modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_rotate_logs.result'
--- Percona-Server/mysql-test/suite/rpl/r/rpl_rotate_logs.result 2012-02-09 17:58:33 +0000
+++ Percona-Server/mysql-test/suite/rpl/r/rpl_rotate_logs.result 2013-02-18 05:17:25 +0000
@@ -17,10 +17,8 @@
17Master_Log_File = 'master-bin.000001'17Master_Log_File = 'master-bin.000001'
18Relay_Master_Log_File = 'master-bin.000001'18Relay_Master_Log_File = 'master-bin.000001'
19include/check_slave_is_running.inc19include/check_slave_is_running.inc
20select * from t1;20include/assert.inc [Table t1 should contain the first inserted line]
21s21include/assert.inc [Table t1 should contain the second inserted line]
22Could not break slave
23Tried hard
24flush logs;22flush logs;
25create table t2(m int not null auto_increment primary key);23create table t2(m int not null auto_increment primary key);
26insert into t2 values (34),(67),(123);24insert into t2 values (34),(67),(123);
@@ -31,9 +29,7 @@
31master-bin.000002 #29master-bin.000002 #
32master-bin.000003 #30master-bin.000003 #
33create table t3 select * from temp_table;31create table t3 select * from temp_table;
34select * from t3;32include/assert.inc [Data in t3 should be equal to temp_table]
35a
36testing temporary tables
37drop table temp_table, t3;33drop table temp_table, t3;
38insert into t2 values(1234);34insert into t2 values(1234);
39set insert_id=1234;35set insert_id=1234;
@@ -60,19 +56,15 @@
60Master_Log_File = 'master-bin.000003'56Master_Log_File = 'master-bin.000003'
61Relay_Master_Log_File = 'master-bin.000003'57Relay_Master_Log_File = 'master-bin.000003'
62include/check_slave_is_running.inc58include/check_slave_is_running.inc
63select * from t2;59include/assert.inc [Table t2 should still contain the first inserted line after creation]
64m60include/assert.inc [Table t2 should contain the line inserted after the purge]
653461include/assert.inc [Table t2 should still contain the second insert line after creation]
666562include/assert.inc [Table t2 should still contain the third inserted line after creation]
676763include/assert.inc [Table t2 should still contain the line from the duplicated key test]
68123
691234
70create temporary table temp_table (a char(80) not null);64create temporary table temp_table (a char(80) not null);
71insert into temp_table values ("testing temporary tables part 2");65insert into temp_table values ("testing temporary tables part 2");
72create table t3 (n int);66create table t3 (n int);
73select count(*) from t3 where n >= 4;67include/assert.inc [Table t3 should contain 100 lines on the master]
74count(*)
75100
76create table t4 select * from temp_table;68create table t4 select * from temp_table;
77show binary logs;69show binary logs;
78Log_name File_size70Log_name File_size
@@ -85,16 +77,12 @@
85show master status;77show master status;
86File Position Binlog_Do_DB Binlog_Ignore_DB78File Position Binlog_Do_DB Binlog_Ignore_DB
87master-bin.000008 # <Binlog_Do_DB> <Binlog_Ignore_DB>79master-bin.000008 # <Binlog_Do_DB> <Binlog_Ignore_DB>
88select * from t4;80include/assert.inc [Data in t4 should be equal to temp_table]
89a
90testing temporary tables part 2
91Master_Log_File = 'master-bin.000008'81Master_Log_File = 'master-bin.000008'
92Relay_Master_Log_File = 'master-bin.000008'82Relay_Master_Log_File = 'master-bin.000008'
93include/check_slave_is_running.inc83include/check_slave_is_running.inc
94lock tables t3 read;84lock tables t3 read;
95select count(*) from t3 where n >= 4;85include/assert.inc [Table t3 should contain 100 lines on the slave]
96count(*)
97100
98unlock tables;86unlock tables;
99drop table if exists t1,t2,t3,t4;87drop table if exists t1,t2,t3,t4;
100End of 4.1 tests88End of 4.1 tests
10189
=== modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_row_mysqlbinlog.result'
--- Percona-Server/mysql-test/suite/rpl/r/rpl_row_mysqlbinlog.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/rpl/r/rpl_row_mysqlbinlog.result 2013-02-18 05:17:25 +0000
@@ -150,6 +150,7 @@
1505 2006-02-22 00:00:00 Tested in Texas 111505 2006-02-22 00:00:00 Tested in Texas 11
151151
152--- Test 2 position test --152--- Test 2 position test --
153/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
153/*!40019 SET @@session.max_insert_delayed_threads=0*/;154/*!40019 SET @@session.max_insert_delayed_threads=0*/;
154/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;155/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
155DELIMITER /*!*/;156DELIMITER /*!*/;
@@ -170,8 +171,10 @@
170# End of log file171# End of log file
171ROLLBACK /* added by mysqlbinlog */;172ROLLBACK /* added by mysqlbinlog */;
172/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;173/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
174/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
173175
174--- Test 3 First Remote test --176--- Test 3 First Remote test --
177/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
175/*!40019 SET @@session.max_insert_delayed_threads=0*/;178/*!40019 SET @@session.max_insert_delayed_threads=0*/;
176/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;179/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
177DELIMITER /*!*/;180DELIMITER /*!*/;
@@ -201,6 +204,7 @@
201# End of log file204# End of log file
202ROLLBACK /* added by mysqlbinlog */;205ROLLBACK /* added by mysqlbinlog */;
203/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;206/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
207/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
204208
205--- Test 4 Second Remote test --209--- Test 4 Second Remote test --
206DROP TABLE t1;210DROP TABLE t1;
@@ -274,6 +278,7 @@
2745 2006-02-22 00:00:00 Tested in Texas 112785 2006-02-22 00:00:00 Tested in Texas 11
275279
276--- Test 5 LOAD DATA --280--- Test 5 LOAD DATA --
281/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
277/*!40019 SET @@session.max_insert_delayed_threads=0*/;282/*!40019 SET @@session.max_insert_delayed_threads=0*/;
278/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;283/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
279DELIMITER /*!*/;284DELIMITER /*!*/;
@@ -281,8 +286,10 @@
281# End of log file286# End of log file
282ROLLBACK /* added by mysqlbinlog */;287ROLLBACK /* added by mysqlbinlog */;
283/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;288/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
289/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
284290
285--- Test 6 reading stdin --291--- Test 6 reading stdin --
292/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
286/*!40019 SET @@session.max_insert_delayed_threads=0*/;293/*!40019 SET @@session.max_insert_delayed_threads=0*/;
287/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;294/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
288DELIMITER /*!*/;295DELIMITER /*!*/;
@@ -312,8 +319,10 @@
312# End of log file319# End of log file
313ROLLBACK /* added by mysqlbinlog */;320ROLLBACK /* added by mysqlbinlog */;
314/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;321/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
322/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
315323
316--- Test 7 reading stdin w/position --324--- Test 7 reading stdin w/position --
325/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
317/*!40019 SET @@session.max_insert_delayed_threads=0*/;326/*!40019 SET @@session.max_insert_delayed_threads=0*/;
318/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;327/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
319DELIMITER /*!*/;328DELIMITER /*!*/;
@@ -334,6 +343,7 @@
334# End of log file343# End of log file
335ROLLBACK /* added by mysqlbinlog */;344ROLLBACK /* added by mysqlbinlog */;
336/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;345/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
346/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
337347
338--- Test 8 switch internal charset --348--- Test 8 switch internal charset --
339stop slave;349stop slave;
340350
=== modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_sp.result'
--- Percona-Server/mysql-test/suite/rpl/r/rpl_sp.result 2013-01-09 23:45:25 +0000
+++ Percona-Server/mysql-test/suite/rpl/r/rpl_sp.result 2013-02-18 05:17:25 +0000
@@ -652,6 +652,7 @@
652Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation652Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
653test mysqltestbug36570_f1 FUNCTION root@localhost t t DEFINER latin1 latin1_swedish_ci latin1_swedish_ci653test mysqltestbug36570_f1 FUNCTION root@localhost t t DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
654flush logs;654flush logs;
655/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
655/*!40019 SET @@session.max_insert_delayed_threads=0*/;656/*!40019 SET @@session.max_insert_delayed_threads=0*/;
656/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;657/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
657DELIMITER /*!*/;658DELIMITER /*!*/;
@@ -1178,6 +1179,7 @@
1178# End of log file1179# End of log file
1179ROLLBACK /* added by mysqlbinlog */;1180ROLLBACK /* added by mysqlbinlog */;
1180/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;1181/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
1182/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
1181use test;1183use test;
1182drop procedure mysqltestbug36570_p1;1184drop procedure mysqltestbug36570_p1;
1183drop procedure ` mysqltestbug36570_p2`;1185drop procedure ` mysqltestbug36570_p2`;
11841186
=== modified file 'Percona-Server/mysql-test/suite/rpl/t/disabled.def'
--- Percona-Server/mysql-test/suite/rpl/t/disabled.def 2011-05-24 06:40:38 +0000
+++ Percona-Server/mysql-test/suite/rpl/t/disabled.def 2013-02-18 05:17:25 +0000
@@ -13,5 +13,4 @@
13rpl_row_create_table : Bug#11759274 2010-02-27 andrei failed different way than earlier with bug#4557613rpl_row_create_table : Bug#11759274 2010-02-27 andrei failed different way than earlier with bug#45576
14rpl_spec_variables : BUG#11755836 2009-10-27 jasonh rpl_spec_variables fails on PB2 hpux14rpl_spec_variables : BUG#11755836 2009-10-27 jasonh rpl_spec_variables fails on PB2 hpux
15rpl_get_master_version_and_clock : Bug#11766137 Jan 05 2011 joro Valgrind warnings rpl_get_master_version_and_clock15rpl_get_master_version_and_clock : Bug#11766137 Jan 05 2011 joro Valgrind warnings rpl_get_master_version_and_clock
16rpl_row_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out
17rpl_stm_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out16rpl_stm_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out
1817
=== modified file 'Percona-Server/mysql-test/suite/rpl/t/rpl_bug31076.test'
--- Percona-Server/mysql-test/suite/rpl/t/rpl_bug31076.test 2010-12-19 17:15:12 +0000
+++ Percona-Server/mysql-test/suite/rpl/t/rpl_bug31076.test 2013-02-18 05:17:25 +0000
@@ -40,6 +40,7 @@
40 KEY `data` (`data`)40 KEY `data` (`data`)
41) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1;41) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1;
4242
43/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
43/*!40019 SET @@session.max_insert_delayed_threads=0*/;44/*!40019 SET @@session.max_insert_delayed_threads=0*/;
44/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;45/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
45--delimiter /*!*/;46--delimiter /*!*/;
@@ -119,6 +120,7 @@
119# 9c90ded 2d 63 6f 6e 6e 65 63 74 6f 72 2d 6a 61 76 61 2d |.connector.java.|120# 9c90ded 2d 63 6f 6e 6e 65 63 74 6f 72 2d 6a 61 76 61 2d |.connector.java.|
120# 9c90dfd 33 2e 30 2e 31 37 2d 67 61 2e 7a 69 70 |3.0.17.ga.zip|121# 9c90dfd 33 2e 30 2e 31 37 2d 67 61 2e 7a 69 70 |3.0.17.ga.zip|
121# Query thread_id=28278824 exec_time=0 error_code=0122# Query thread_id=28278824 exec_time=0 error_code=0
123/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
122use track/*!*/;124use track/*!*/;
123SET TIMESTAMP=1190087942/*!*/;125SET TIMESTAMP=1190087942/*!*/;
124SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;126SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
125127
=== modified file 'Percona-Server/mysql-test/suite/rpl/t/rpl_report_port.test'
--- Percona-Server/mysql-test/suite/rpl/t/rpl_report_port.test 2012-04-26 14:04:03 +0000
+++ Percona-Server/mysql-test/suite/rpl/t/rpl_report_port.test 2013-02-18 05:17:25 +0000
@@ -32,6 +32,9 @@
3232
33connection slave;33connection slave;
34--source include/start_slave.inc34--source include/start_slave.inc
35--let $slave_param= Slave_IO_State
36--let $slave_param_value= Waiting for master to send event
37--source include/wait_for_slave_param.inc
3538
36--echo [Slave restarted with the report-port set to some value]39--echo [Slave restarted with the report-port set to some value]
37connection master;40connection master;
@@ -52,6 +55,9 @@
5255
53connection slave;56connection slave;
54--source include/start_slave.inc57--source include/start_slave.inc
58--let $slave_param= Slave_IO_State
59--let $slave_param_value= Waiting for master to send event
60--source include/wait_for_slave_param.inc
5561
56connection master;62connection master;
57sync_slave_with_master;63sync_slave_with_master;
5864
=== modified file 'Percona-Server/mysql-test/suite/rpl/t/rpl_rotate_logs.test'
--- Percona-Server/mysql-test/suite/rpl/t/rpl_rotate_logs.test 2012-02-09 17:58:33 +0000
+++ Percona-Server/mysql-test/suite/rpl/t/rpl_rotate_logs.test 2013-02-18 05:17:25 +0000
@@ -66,7 +66,17 @@
66let $status_items= Master_Log_File, Relay_Master_Log_File;66let $status_items= Master_Log_File, Relay_Master_Log_File;
67source include/show_slave_status.inc;67source include/show_slave_status.inc;
68source include/check_slave_is_running.inc;68source include/check_slave_is_running.inc;
69select * from t1;69
70--let $assert_text= Table t1 should contain the first inserted line
71--let $query_result= query_get_value(select * from t1, "s", 1)
72--let $assert_cond= "$query_result" = "Could not break slave"
73--source include/assert.inc
74
75--let $assert_text= Table t1 should contain the second inserted line
76--let $query_result= query_get_value(select * from t1, "s", 2)
77--let $assert_cond= "$query_result" = "Tried hard"
78--source include/assert.inc
79
70connection master;80connection master;
71flush logs;81flush logs;
72create table t2(m int not null auto_increment primary key);82create table t2(m int not null auto_increment primary key);
@@ -77,7 +87,11 @@
7787
78sync_slave_with_master;88sync_slave_with_master;
7989
80select * from t3;90--let $query_result= query_get_value(select * from t3, "a", 1)
91--let $assert_text= Data in t3 should be equal to temp_table
92--let $assert_cond= "$query_result" = "testing temporary tables"
93--source include/assert.inc
94
81connection master;95connection master;
82drop table temp_table, t3;96drop table temp_table, t3;
8397
@@ -136,11 +150,30 @@
136sync_slave_with_master;150sync_slave_with_master;
137source include/show_slave_status.inc;151source include/show_slave_status.inc;
138source include/check_slave_is_running.inc;152source include/check_slave_is_running.inc;
139select * from t2;153
154--let $assert_text= Table t2 should still contain the first inserted line after creation
155--let $assert_cond= [select * from t2,"m",1] = 34
156--source include/assert.inc
157
158--let $assert_text= Table t2 should contain the line inserted after the purge
159--let $assert_cond= [select * from t2,"m",2] = 65
160--source include/assert.inc
161
162--let $assert_text= Table t2 should still contain the second insert line after creation
163--let $assert_cond= [select * from t2,"m",3] = 67
164--source include/assert.inc
165
166--let $assert_text= Table t2 should still contain the third inserted line after creation
167--let $assert_cond= [select * from t2,"m",4] = 123
168--source include/assert.inc
169
170--let $assert_text= Table t2 should still contain the line from the duplicated key test
171--let $assert_cond= [select * from t2,"m",5] = 1234
172--source include/assert.inc
140173
141#174#
142# Test forcing the replication log to rotate175# Test forcing the replication log to rotate
143# 176#
144177
145connection master;178connection master;
146create temporary table temp_table (a char(80) not null);179create temporary table temp_table (a char(80) not null);
@@ -156,19 +189,31 @@
156 dec $1;189 dec $1;
157}190}
158enable_query_log;191enable_query_log;
159select count(*) from t3 where n >= 4;192
193--let $assert_text= Table t3 should contain 100 lines on the master
194--let $assert_cond= [select count(*) from t3 where n >= 4,"count(*)",1] = 100
195--source include/assert.inc
196
160create table t4 select * from temp_table;197create table t4 select * from temp_table;
161source include/show_binary_logs.inc;198source include/show_binary_logs.inc;
162source include/show_master_status.inc;199source include/show_master_status.inc;
163sync_slave_with_master;200sync_slave_with_master;
164select * from t4;201
202--let $query_result= query_get_value(select * from t4, "a", 1)
203--let $assert_text= Data in t4 should be equal to temp_table
204--let $assert_cond= "$query_result" = "testing temporary tables part 2"
205--source include/assert.inc
165206
166source include/show_slave_status.inc;207source include/show_slave_status.inc;
167source include/check_slave_is_running.inc;208source include/check_slave_is_running.inc;
168# because of concurrent insert, the table may not be up to date209# because of concurrent insert, the table may not be up to date
169# if we do not lock210# if we do not lock
170lock tables t3 read;211lock tables t3 read;
171select count(*) from t3 where n >= 4;212
213--let $assert_text= Table t3 should contain 100 lines on the slave
214--let $assert_cond= [select count(*) from t3 where n >= 4,"count(*)",1] = 100
215--source include/assert.inc
216
172unlock tables;217unlock tables;
173#clean up218#clean up
174connection master;219connection master;
175220
=== added file 'Percona-Server/mysql-test/suite/sys_vars/r/innodb_limit_optimistic_insert_debug_basic.result'
--- Percona-Server/mysql-test/suite/sys_vars/r/innodb_limit_optimistic_insert_debug_basic.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/r/innodb_limit_optimistic_insert_debug_basic.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,58 @@
1SET @start_global_value = @@global.innodb_limit_optimistic_insert_debug;
2SELECT @start_global_value;
3@start_global_value
40
5select @@global.innodb_limit_optimistic_insert_debug;
6@@global.innodb_limit_optimistic_insert_debug
70
8select @@session.innodb_limit_optimistic_insert_debug;
9ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable
10show global variables like 'innodb_limit_optimistic_insert_debug';
11Variable_name Value
12innodb_limit_optimistic_insert_debug 0
13show session variables like 'innodb_limit_optimistic_insert_debug';
14Variable_name Value
15innodb_limit_optimistic_insert_debug 0
16select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
17VARIABLE_NAME VARIABLE_VALUE
18INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0
19select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
20VARIABLE_NAME VARIABLE_VALUE
21INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0
22set global innodb_limit_optimistic_insert_debug=1;
23select @@global.innodb_limit_optimistic_insert_debug;
24@@global.innodb_limit_optimistic_insert_debug
251
26select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
27VARIABLE_NAME VARIABLE_VALUE
28INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 1
29select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
30VARIABLE_NAME VARIABLE_VALUE
31INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 1
32set @@global.innodb_limit_optimistic_insert_debug=0;
33select @@global.innodb_limit_optimistic_insert_debug;
34@@global.innodb_limit_optimistic_insert_debug
350
36select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
37VARIABLE_NAME VARIABLE_VALUE
38INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0
39select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
40VARIABLE_NAME VARIABLE_VALUE
41INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0
42set session innodb_limit_optimistic_insert_debug='some';
43ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable and should be set with SET GLOBAL
44set @@session.innodb_limit_optimistic_insert_debug='some';
45ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable and should be set with SET GLOBAL
46set global innodb_limit_optimistic_insert_debug=1.1;
47ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug'
48set global innodb_limit_optimistic_insert_debug='foo';
49ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug'
50set global innodb_limit_optimistic_insert_debug=-2;
51Warnings:
52Warning 1292 Truncated incorrect innodb_limit_optimistic_insert_d value: '-2'
53set global innodb_limit_optimistic_insert_debug=1e1;
54ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug'
55SET @@global.innodb_limit_optimistic_insert_debug = @start_global_value;
56SELECT @@global.innodb_limit_optimistic_insert_debug;
57@@global.innodb_limit_optimistic_insert_debug
580
059
=== added file 'Percona-Server/mysql-test/suite/sys_vars/r/innodb_print_all_deadlocks_basic.result'
--- Percona-Server/mysql-test/suite/sys_vars/r/innodb_print_all_deadlocks_basic.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/r/innodb_print_all_deadlocks_basic.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,22 @@
1SELECT @@innodb_print_all_deadlocks;
2@@innodb_print_all_deadlocks
30
4SET GLOBAL innodb_print_all_deadlocks=1;
5CREATE TABLE t1 (c1 INT, PRIMARY KEY (c1)) ENGINE=INNODB;
6INSERT INTO t1 VALUES (123);
7CREATE TABLE t2 (c2 INT, PRIMARY KEY (c2)) ENGINE=INNODB;
8INSERT INTO t2 VALUES (456);
9BEGIN;
10SELECT * FROM t1 FOR UPDATE;
11c1
12123
13BEGIN;
14SELECT * FROM t2 FOR UPDATE;
15c2
16456
17SELECT * FROM t2 FOR UPDATE;
18SELECT * FROM t1 FOR UPDATE;
19ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
20DROP TABLE t2;
21DROP TABLE t1;
22SET GLOBAL innodb_print_all_deadlocks=default;
023
=== added file 'Percona-Server/mysql-test/suite/sys_vars/r/innodb_trx_purge_view_update_only_debug_basic.result'
--- Percona-Server/mysql-test/suite/sys_vars/r/innodb_trx_purge_view_update_only_debug_basic.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/r/innodb_trx_purge_view_update_only_debug_basic.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,61 @@
1SET @start_global_value = @@global.innodb_trx_purge_view_update_only_debug;
2SELECT @start_global_value;
3@start_global_value
40
5select @@global.innodb_trx_purge_view_update_only_debug in (0, 1);
6@@global.innodb_trx_purge_view_update_only_debug in (0, 1)
71
8select @@global.innodb_trx_purge_view_update_only_debug;
9@@global.innodb_trx_purge_view_update_only_debug
100
11select @@session.innodb_trx_purge_view_update_only_debug;
12ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable
13show global variables like 'innodb_trx_purge_view_update_only_debug';
14Variable_name Value
15innodb_trx_purge_view_update_only_debug OFF
16show session variables like 'innodb_trx_purge_view_update_only_debug';
17Variable_name Value
18innodb_trx_purge_view_update_only_debug OFF
19select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
20VARIABLE_NAME VARIABLE_VALUE
21INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF
22select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
23VARIABLE_NAME VARIABLE_VALUE
24INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF
25set global innodb_trx_purge_view_update_only_debug=1;
26select @@global.innodb_trx_purge_view_update_only_debug;
27@@global.innodb_trx_purge_view_update_only_debug
281
29select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
30VARIABLE_NAME VARIABLE_VALUE
31INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG ON
32select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
33VARIABLE_NAME VARIABLE_VALUE
34INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG ON
35set @@global.innodb_trx_purge_view_update_only_debug=0;
36select @@global.innodb_trx_purge_view_update_only_debug;
37@@global.innodb_trx_purge_view_update_only_debug
380
39select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
40VARIABLE_NAME VARIABLE_VALUE
41INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF
42select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
43VARIABLE_NAME VARIABLE_VALUE
44INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF
45set session innodb_trx_purge_view_update_only_debug='some';
46ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable and should be set with SET GLOBAL
47set @@session.innodb_trx_purge_view_update_only_debug='some';
48ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable and should be set with SET GLOBAL
49set global innodb_trx_purge_view_update_only_debug=1.1;
50ERROR 42000: Incorrect argument type to variable 'innodb_trx_purge_view_update_only_debug'
51set global innodb_trx_purge_view_update_only_debug='foo';
52ERROR 42000: Variable 'innodb_trx_purge_view_update_only_debug' can't be set to the value of 'foo'
53set global innodb_trx_purge_view_update_only_debug=-2;
54set global innodb_trx_purge_view_update_only_debug=1e1;
55ERROR 42000: Incorrect argument type to variable 'innodb_trx_purge_view_update_only_debug'
56set global innodb_trx_purge_view_update_only_debug=2;
57ERROR 42000: Variable 'innodb_trx_purge_view_update_only_debug' can't be set to the value of '2'
58SET @@global.innodb_trx_purge_view_update_only_debug = @start_global_value;
59SELECT @@global.innodb_trx_purge_view_update_only_debug;
60@@global.innodb_trx_purge_view_update_only_debug
610
062
=== removed file 'Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_update_as_write_basic.result'
--- Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_update_as_write_basic.result 2008-12-19 15:12:15 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_update_as_write_basic.result 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
1SET @global_start_value = @@global.ndb_log_update_as_write;
2ERROR HY000: Unknown system variable 'ndb_log_update_as_write'
3SELECT @@global.ndb_log_update_as_write;
4ERROR HY000: Unknown system variable 'ndb_log_update_as_write'
5'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
6'#--------------------FN_DYNVARS_102_01------------------------#'
7'#---------------------FN_DYNVARS_102_02-------------------------#'
8'#--------------------FN_DYNVARS_102_03------------------------#'
9'#--------------------FN_DYNVARS_102_04-------------------------#'
10'#-------------------FN_DYNVARS_102_05----------------------------#'
11'#----------------------FN_DYNVARS_102_06------------------------#'
12'#----------------------FN_DYNVARS_102_07------------------------#'
13'#---------------------FN_DYNVARS_102_08-------------------------#'
14'#---------------------FN_DYNVARS_102_09----------------------#'
150
=== removed file 'Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_updated_only_basic.result'
--- Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_updated_only_basic.result 2008-12-19 15:12:15 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_updated_only_basic.result 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
1SET @global_start_value = @@global.ndb_log_updated_only;
2ERROR HY000: Unknown system variable 'ndb_log_updated_only'
3SELECT @@global.ndb_log_updated_only;
4ERROR HY000: Unknown system variable 'ndb_log_updated_only'
5'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
6'#--------------------FN_DYNVARS_103_01------------------------#'
7'#---------------------FN_DYNVARS_103_02-------------------------#'
8'#--------------------FN_DYNVARS_103_03------------------------#'
9'#--------------------FN_DYNVARS_103_04-------------------------#'
10'#-------------------FN_DYNVARS_103_05----------------------------#'
11'#----------------------FN_DYNVARS_103_06------------------------#'
12'#----------------------FN_DYNVARS_103_07------------------------#'
13'#---------------------FN_DYNVARS_103_08-------------------------#'
14'#---------------------FN_DYNVARS_103_09----------------------#'
150
=== added file 'Percona-Server/mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result'
--- Percona-Server/mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result 2013-02-18 05:17:25 +0000
@@ -0,0 +1,119 @@
1SET @session_start_value = @@session.pseudo_slave_mode;
2SELECT @session_start_value;
3@session_start_value
40
5'#--------------------FN_DYNVARS_156_01------------------------#'
6SET @@session.pseudo_slave_mode = 0;
7Warnings:
8Warning 1231 'pseudo_slave_mode' change was ineffective.
9SET @@session.pseudo_slave_mode = DEFAULT;
10Warnings:
11Warning 1231 'pseudo_slave_mode' change was ineffective.
12SELECT @@session.pseudo_slave_mode;
13@@session.pseudo_slave_mode
140
15SET @@session.pseudo_slave_mode = 1;
16SET @@session.pseudo_slave_mode = DEFAULT;
17Warnings:
18Warning 1231 Slave applier execution mode not active, statement ineffective.
19SELECT @@session.pseudo_slave_mode;
20@@session.pseudo_slave_mode
210
22'#---------------------FN_DYNVARS_156_02-------------------------#'
23SET pseudo_slave_mode = 1;
24SELECT @@pseudo_slave_mode;
25@@pseudo_slave_mode
261
27SELECT session.pseudo_slave_mode;
28ERROR 42S02: Unknown table 'session' in field list
29SELECT local.pseudo_slave_mode;
30ERROR 42S02: Unknown table 'local' in field list
31SET session pseudo_slave_mode = 0;
32Warnings:
33Warning 1231 Slave applier execution mode not active, statement ineffective.
34SELECT @@session.pseudo_slave_mode;
35@@session.pseudo_slave_mode
360
37'#--------------------FN_DYNVARS_156_03------------------------#'
38SET @@session.pseudo_slave_mode = 0;
39Warnings:
40Warning 1231 'pseudo_slave_mode' change was ineffective.
41SELECT @@session.pseudo_slave_mode;
42@@session.pseudo_slave_mode
430
44SET @@session.pseudo_slave_mode = 1;
45SELECT @@session.pseudo_slave_mode;
46@@session.pseudo_slave_mode
471
48'#--------------------FN_DYNVARS_156_04-------------------------#'
49SET @@session.pseudo_slave_mode = -1;
50ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '-1'
51SET @@session.pseudo_slave_mode = 2;
52ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '2'
53SET @@session.pseudo_slave_mode = "T";
54ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'T'
55SET @@session.pseudo_slave_mode = "Y";
56ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'Y'
57SET @@session.pseudo_slave_mode = TRÜE;
58ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'TRÜE'
59SET @@session.pseudo_slave_mode = ÕN;
60ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'ÕN'
61SET @@session.pseudo_slave_mode = OF;
62ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'OF'
63SET @@session.pseudo_slave_mode = ÓFF;
64ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'ÓFF'
65SET @@session.pseudo_slave_mode = '¹';
66ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '¹'
67SET @@session.pseudo_slave_mode = NO;
68ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'NO'
69'#-------------------FN_DYNVARS_156_05----------------------------#'
70SET @@global.pseudo_slave_mode = 0;
71ERROR HY000: Variable 'pseudo_slave_mode' is a SESSION variable and can't be used with SET GLOBAL
72SELECT @@global.pseudo_slave_mode;
73ERROR HY000: Variable 'pseudo_slave_mode' is a SESSION variable
74'#----------------------FN_DYNVARS_156_06------------------------#'
75SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='pseudo_slave_mode';
76count(VARIABLE_VALUE)
771
78'#----------------------FN_DYNVARS_156_07------------------------#'
79SELECT IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE
80FROM INFORMATION_SCHEMA.SESSION_VARIABLES
81WHERE VARIABLE_NAME='pseudo_slave_mode';
82IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE
831
84SELECT @@session.pseudo_slave_mode;
85@@session.pseudo_slave_mode
861
87SELECT VARIABLE_VALUE
88FROM INFORMATION_SCHEMA.SESSION_VARIABLES
89WHERE VARIABLE_NAME='pseudo_slave_mode';
90VARIABLE_VALUE
91ON
92'#---------------------FN_DYNVARS_156_08-------------------------#'
93SET @@session.pseudo_slave_mode = OFF;
94Warnings:
95Warning 1231 Slave applier execution mode not active, statement ineffective.
96SELECT @@session.pseudo_slave_mode;
97@@session.pseudo_slave_mode
980
99SET @@session.pseudo_slave_mode = ON;
100SELECT @@session.pseudo_slave_mode;
101@@session.pseudo_slave_mode
1021
103'#---------------------FN_DYNVARS_156_09----------------------#'
104SET @@session.pseudo_slave_mode = TRUE;
105SELECT @@session.pseudo_slave_mode;
106@@session.pseudo_slave_mode
1071
108SET @@session.pseudo_slave_mode = FALSE;
109Warnings:
110Warning 1231 Slave applier execution mode not active, statement ineffective.
111SELECT @@session.pseudo_slave_mode;
112@@session.pseudo_slave_mode
1130
114SET @@session.pseudo_slave_mode = @session_start_value;
115Warnings:
116Warning 1231 'pseudo_slave_mode' change was ineffective.
117SELECT @@session.pseudo_slave_mode;
118@@session.pseudo_slave_mode
1190
0120
=== added file 'Percona-Server/mysql-test/suite/sys_vars/t/innodb_limit_optimistic_insert_debug_basic.test'
--- Percona-Server/mysql-test/suite/sys_vars/t/innodb_limit_optimistic_insert_debug_basic.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/t/innodb_limit_optimistic_insert_debug_basic.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,50 @@
1--source include/have_innodb.inc
2--source include/have_debug.inc
3
4SET @start_global_value = @@global.innodb_limit_optimistic_insert_debug;
5SELECT @start_global_value;
6
7#
8# exists as global only
9#
10select @@global.innodb_limit_optimistic_insert_debug;
11--error ER_INCORRECT_GLOBAL_LOCAL_VAR
12select @@session.innodb_limit_optimistic_insert_debug;
13show global variables like 'innodb_limit_optimistic_insert_debug';
14show session variables like 'innodb_limit_optimistic_insert_debug';
15select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
16select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
17
18#
19# show that it's writable
20#
21set global innodb_limit_optimistic_insert_debug=1;
22select @@global.innodb_limit_optimistic_insert_debug;
23select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
24select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
25set @@global.innodb_limit_optimistic_insert_debug=0;
26select @@global.innodb_limit_optimistic_insert_debug;
27select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
28select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
29--error ER_GLOBAL_VARIABLE
30set session innodb_limit_optimistic_insert_debug='some';
31--error ER_GLOBAL_VARIABLE
32set @@session.innodb_limit_optimistic_insert_debug='some';
33
34#
35# incorrect types
36#
37--error ER_WRONG_TYPE_FOR_VAR
38set global innodb_limit_optimistic_insert_debug=1.1;
39--error ER_WRONG_TYPE_FOR_VAR
40set global innodb_limit_optimistic_insert_debug='foo';
41set global innodb_limit_optimistic_insert_debug=-2;
42--error ER_WRONG_TYPE_FOR_VAR
43set global innodb_limit_optimistic_insert_debug=1e1;
44
45#
46# Cleanup
47#
48
49SET @@global.innodb_limit_optimistic_insert_debug = @start_global_value;
50SELECT @@global.innodb_limit_optimistic_insert_debug;
051
=== added file 'Percona-Server/mysql-test/suite/sys_vars/t/innodb_print_all_deadlocks_basic.test'
--- Percona-Server/mysql-test/suite/sys_vars/t/innodb_print_all_deadlocks_basic.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/t/innodb_print_all_deadlocks_basic.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,48 @@
1#
2# innodb_print_all_deadlocks
3#
4
5-- source include/have_innodb.inc
6
7SELECT @@innodb_print_all_deadlocks;
8
9SET GLOBAL innodb_print_all_deadlocks=1;
10
11CREATE TABLE t1 (c1 INT, PRIMARY KEY (c1)) ENGINE=INNODB;
12INSERT INTO t1 VALUES (123);
13
14CREATE TABLE t2 (c2 INT, PRIMARY KEY (c2)) ENGINE=INNODB;
15INSERT INTO t2 VALUES (456);
16
17-- connect (con1,localhost,root,,)
18-- connect (con2,localhost,root,,)
19
20-- connection con1
21BEGIN;
22SELECT * FROM t1 FOR UPDATE;
23
24-- connection con2
25BEGIN;
26SELECT * FROM t2 FOR UPDATE;
27
28-- connection con1
29-- send
30SELECT * FROM t2 FOR UPDATE;
31
32-- connection con2
33let $wait_condition=
34SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST
35WHERE state = 'Sending data' AND info = 'SELECT * FROM t2 FOR UPDATE';
36-- source include/wait_condition.inc
37-- error ER_LOCK_DEADLOCK
38SELECT * FROM t1 FOR UPDATE;
39
40-- connection default
41
42-- disconnect con1
43-- disconnect con2
44
45DROP TABLE t2;
46DROP TABLE t1;
47
48SET GLOBAL innodb_print_all_deadlocks=default;
049
=== added file 'Percona-Server/mysql-test/suite/sys_vars/t/innodb_trx_purge_view_update_only_debug_basic.test'
--- Percona-Server/mysql-test/suite/sys_vars/t/innodb_trx_purge_view_update_only_debug_basic.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/t/innodb_trx_purge_view_update_only_debug_basic.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,53 @@
1--source include/have_innodb.inc
2--source include/have_debug.inc
3
4SET @start_global_value = @@global.innodb_trx_purge_view_update_only_debug;
5SELECT @start_global_value;
6
7#
8# exists as global only
9#
10select @@global.innodb_trx_purge_view_update_only_debug in (0, 1);
11select @@global.innodb_trx_purge_view_update_only_debug;
12--error ER_INCORRECT_GLOBAL_LOCAL_VAR
13select @@session.innodb_trx_purge_view_update_only_debug;
14show global variables like 'innodb_trx_purge_view_update_only_debug';
15show session variables like 'innodb_trx_purge_view_update_only_debug';
16select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
17select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
18
19#
20# show that it's writable
21#
22set global innodb_trx_purge_view_update_only_debug=1;
23select @@global.innodb_trx_purge_view_update_only_debug;
24select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
25select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
26set @@global.innodb_trx_purge_view_update_only_debug=0;
27select @@global.innodb_trx_purge_view_update_only_debug;
28select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
29select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
30--error ER_GLOBAL_VARIABLE
31set session innodb_trx_purge_view_update_only_debug='some';
32--error ER_GLOBAL_VARIABLE
33set @@session.innodb_trx_purge_view_update_only_debug='some';
34
35#
36# incorrect types
37#
38--error ER_WRONG_TYPE_FOR_VAR
39set global innodb_trx_purge_view_update_only_debug=1.1;
40--error ER_WRONG_VALUE_FOR_VAR
41set global innodb_trx_purge_view_update_only_debug='foo';
42set global innodb_trx_purge_view_update_only_debug=-2;
43--error ER_WRONG_TYPE_FOR_VAR
44set global innodb_trx_purge_view_update_only_debug=1e1;
45--error ER_WRONG_VALUE_FOR_VAR
46set global innodb_trx_purge_view_update_only_debug=2;
47
48#
49# Cleanup
50#
51
52SET @@global.innodb_trx_purge_view_update_only_debug = @start_global_value;
53SELECT @@global.innodb_trx_purge_view_update_only_debug;
054
=== removed file 'Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_update_as_write_basic.test'
--- Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_update_as_write_basic.test 2010-07-15 11:13:30 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_update_as_write_basic.test 1970-01-01 00:00:00 +0000
@@ -1,216 +0,0 @@
1############## mysql-test\t\ndb_log_update_as_write_basic.test ###############
2# #
3# Variable Name: ndb_log_update_as_write #
4# Scope: GLOBAL #
5# Access Type: Dynamic #
6# Data Type: boolean #
7# Default Value: #
8# Range: #
9# #
10# #
11# Creation Date: 2008-02-07 #
12# Author: Rizwan #
13# #
14# Description: Test Cases of Dynamic System Variable ndb_log_update_as_write #
15# that checks the behavior of this variable in the following ways#
16# * Default Value #
17# * Valid & Invalid values #
18# * Scope & Access method #
19# * Data Integrity #
20# #
21# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
22# server-system-variables.html #
23# #
24###############################################################################
25############## mysql-test\t\ndb_log_update_as_write_basic.test ################
26# #
27# Variable Name: ndb_log_update_as_write #
28# Scope: GLOBAL & SESSION #
29# Access Type: Dynamic #
30# Data Type: Numeric #
31# Default Value: 1 #
32# Range: 1 - 65536 #
33# #
34# #
35# Creation Date: 2008-02-07 #
36# Author: Rizwan Maredia #
37# #
38# Description: Test Cases of Dynamic System Variable ndb_log_update_as_write #
39# that checks the behavior of this variable in the following ways #
40# * Default Value #
41# * Valid & Invalid values #
42# * Scope & Access method #
43# * Data Integrity #
44# #
45# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
46# server-system-variables.html #
47# #
48################################################################################
49################# mysql-test\t\ndb_log_update_as_write_basic.test ######
50# #
51# #
52# Creation Date: 2008-02-07 #
53# Author: Rizwan Maredia #
54# #
55# Description: Test Cases of Dynamic System Variable #
56# ndb_log_update_as_write that check behavior of this #
57# variable with valid values, invalid values, #
58# accessing variable with scope that is #
59# allowed and with scope that is now allowed. #
60# Scope: Global #
61# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-system #
62# -variables.html #
63# #
64########################################################################
65
66--source include/load_sysvars.inc
67
68########################################################################
69# START OF ndb_log_update_as_write TESTS #
70########################################################################
71
72
73################################################################################
74# Saving initial value of ndb_log_update_as_write in a temporary variable #
75################################################################################
76
77
78--Error ER_UNKNOWN_SYSTEM_VARIABLE
79SET @global_start_value = @@global.ndb_log_update_as_write;
80--Error ER_UNKNOWN_SYSTEM_VARIABLE
81SELECT @@global.ndb_log_update_as_write;
82
83--echo 'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
84
85
86--echo '#--------------------FN_DYNVARS_102_01------------------------#'
87########################################################################
88# Display the DEFAULT value of ndb_log_update_as_write #
89########################################################################
90
91#SET @@ndb_log_update_as_write = 0;
92#SET @@ndb_log_update_as_write = DEFAULT;
93#SELECT @@ndb_log_update_as_write;
94#
95#SET @@ndb_log_update_as_write = 1;
96#SET @@ndb_log_update_as_write = DEFAULT;
97#SELECT @@ndb_log_update_as_write;
98
99
100--echo '#---------------------FN_DYNVARS_102_02-------------------------#'
101#############################################################################
102# Check if ndb_log_update_as_write can be accessed with and without @@ sign #
103#############################################################################
104
105#SET ndb_log_update_as_write = 1;
106#SELECT @@ndb_log_update_as_write;
107#--Error ER_UNKNOWN_TABLE
108#SELECT global.ndb_log_update_as_write;
109#
110#SET global ndb_log_update_as_write = 1;
111#SELECT @@global.ndb_log_update_as_write;
112
113
114--echo '#--------------------FN_DYNVARS_102_03------------------------#'
115########################################################################
116# Change the value of ndb_log_update_as_write to a valid value #
117########################################################################
118
119#SET @@global.ndb_log_update_as_write = 0;
120#SELECT @@global.ndb_log_update_as_write;
121#SET @@global.ndb_log_update_as_write = 1;
122#SELECT @@global.ndb_log_update_as_write;
123## a value of 2 is used to just flush logs and then shutdown cold.
124#SET @@global.ndb_log_update_as_write = 2;
125#SELECT @@global.ndb_log_update_as_write;
126
127--echo '#--------------------FN_DYNVARS_102_04-------------------------#'
128###########################################################################
129# Change the value of ndb_log_update_as_write to invalid value #
130###########################################################################
131
132#--Error ER_WRONG_VALUE_FOR_VAR
133#SET @@global.ndb_log_update_as_write = -1;
134#--Error ER_WRONG_VALUE_FOR_VAR
135#SET @@global.ndb_log_update_as_write = TRU;
136#--Error ER_WRONG_VALUE_FOR_VAR
137#SET @@global.ndb_log_update_as_write = TRUE_F;
138#--Error ER_WRONG_VALUE_FOR_VAR
139#SET @@global.ndb_log_update_as_write = FALS;
140#--Error ER_WRONG_VALUE_FOR_VAR
141#SET @@global.ndb_log_update_as_write = OON;
142#--Error ER_WRONG_VALUE_FOR_VAR
143#SET @@global.ndb_log_update_as_write = ONN;
144#--Error ER_WRONG_VALUE_FOR_VAR
145#SET @@global.ndb_log_update_as_write = OOFF;
146#--Error ER_WRONG_VALUE_FOR_VAR
147#SET @@global.ndb_log_update_as_write = 0FF;
148#--Error ER_WRONG_VALUE_FOR_VAR
149#SET @@global.ndb_log_update_as_write = ' 1';
150#--Error ER_WRONG_VALUE_FOR_VAR
151#SET @@global.ndb_log_update_as_write = "0 ";
152
153
154
155--echo '#-------------------FN_DYNVARS_102_05----------------------------#'
156###########################################################################
157# Test if accessing session ndb_log_update_as_write gives error #
158###########################################################################
159
160#--Error ER_LOCAL_VARIABLE
161#SET @@session.ndb_log_update_as_write = 0;
162#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
163#SET @@ndb_log_update_as_write = 0;
164#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
165#SET @@local.ndb_log_update_as_write = 0;
166#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
167#SELECT @@session.ndb_log_update_as_write;
168#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
169#SELECT @@local.ndb_log_update_as_write;
170
171--echo '#----------------------FN_DYNVARS_102_06------------------------#'
172#########################################################################
173# Check if the value in SESSION Table contains variable value #
174#########################################################################
175
176#SELECT count(VARIABLE_VALUE) AS res_is_0 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='ndb_log_update_as_write';
177
178
179--echo '#----------------------FN_DYNVARS_102_07------------------------#'
180#########################################################################
181# Check if the value in GLOBAL Table matches value in variable #
182#########################################################################
183
184#SELECT @@global.ndb_log_update_as_write = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='ndb_log_update_as_write';
185
186
187--echo '#---------------------FN_DYNVARS_102_08-------------------------#'
188###################################################################
189# Check if ON and OFF values can be used on variable #
190###################################################################
191
192#SET @@ndb_log_update_as_write = OFF;
193#SELECT @@ndb_log_update_as_write;
194#SET @@ndb_log_update_as_write = ON;
195#SELECT @@ndb_log_update_as_write;
196
197--echo '#---------------------FN_DYNVARS_102_09----------------------#'
198###################################################################
199# Check if TRUE and FALSE values can be used on variable #
200###################################################################
201
202#SET @@ndb_log_update_as_write = TRUE;
203#SELECT @@ndb_log_update_as_write;
204#SET @@ndb_log_update_as_write = 'FALSE';
205#SELECT @@ndb_log_update_as_write;
206
207##############################
208# Restore initial value #
209##############################
210
211#SET @@ndb_log_update_as_write = @global_start_value;
212#SELECT @@ndb_log_update_as_write;
213
214########################################################################
215# END OF ndb_log_update_as_write TESTS #
216########################################################################
2170
=== removed file 'Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_updated_only_basic.test'
--- Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_updated_only_basic.test 2010-07-15 11:13:30 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_updated_only_basic.test 1970-01-01 00:00:00 +0000
@@ -1,216 +0,0 @@
1############## mysql-test\t\ndb_log_updated_only_basic.test ###############
2# #
3# Variable Name: ndb_log_updated_only #
4# Scope: GLOBAL #
5# Access Type: Dynamic #
6# Data Type: boolean #
7# Default Value: #
8# Range: #
9# #
10# #
11# Creation Date: 2008-02-07 #
12# Author: Rizwan #
13# #
14# Description: Test Cases of Dynamic System Variable ndb_log_updated_only #
15# that checks the behavior of this variable in the following ways#
16# * Default Value #
17# * Valid & Invalid values #
18# * Scope & Access method #
19# * Data Integrity #
20# #
21# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
22# server-system-variables.html #
23# #
24###############################################################################
25############## mysql-test\t\ndb_log_updated_only_basic.test ################
26# #
27# Variable Name: ndb_log_updated_only #
28# Scope: GLOBAL & SESSION #
29# Access Type: Dynamic #
30# Data Type: Numeric #
31# Default Value: 1 #
32# Range: 1 - 65536 #
33# #
34# #
35# Creation Date: 2008-02-07 #
36# Author: Rizwan Maredia #
37# #
38# Description: Test Cases of Dynamic System Variable ndb_log_updated_only #
39# that checks the behavior of this variable in the following ways #
40# * Default Value #
41# * Valid & Invalid values #
42# * Scope & Access method #
43# * Data Integrity #
44# #
45# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
46# server-system-variables.html #
47# #
48################################################################################
49################# mysql-test\t\ndb_log_updated_only_basic.test #########
50# #
51# #
52# Creation Date: 2008-02-07 #
53# Author: Rizwan Maredia #
54# #
55# Description: Test Cases of Dynamic System Variable #
56# ndb_log_updated_only that check behavior of this #
57# variable with valid values, invalid values, #
58# accessing variable with scope that is #
59# allowed and with scope that is now allowed. #
60# Scope: Global #
61# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-system #
62# -variables.html #
63# #
64########################################################################
65
66--source include/load_sysvars.inc
67
68########################################################################
69# START OF ndb_log_updated_only TESTS #
70########################################################################
71
72
73################################################################################
74# Saving initial value of ndb_log_updated_only in a temporary variable #
75################################################################################
76
77
78--Error ER_UNKNOWN_SYSTEM_VARIABLE
79SET @global_start_value = @@global.ndb_log_updated_only;
80--Error ER_UNKNOWN_SYSTEM_VARIABLE
81SELECT @@global.ndb_log_updated_only;
82
83--echo 'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
84
85
86--echo '#--------------------FN_DYNVARS_103_01------------------------#'
87########################################################################
88# Display the DEFAULT value of ndb_log_updated_only #
89########################################################################
90
91#SET @@ndb_log_updated_only = 0;
92#SET @@ndb_log_updated_only = DEFAULT;
93#SELECT @@ndb_log_updated_only;
94#
95#SET @@ndb_log_updated_only = 1;
96#SET @@ndb_log_updated_only = DEFAULT;
97#SELECT @@ndb_log_updated_only;
98
99
100--echo '#---------------------FN_DYNVARS_103_02-------------------------#'
101#############################################################################
102# Check if ndb_log_updated_only can be accessed with and without @@ sign #
103#############################################################################
104
105#SET ndb_log_updated_only = 1;
106#SELECT @@ndb_log_updated_only;
107#--Error ER_UNKNOWN_TABLE
108#SELECT global.ndb_log_updated_only;
109#
110#SET global ndb_log_updated_only = 1;
111#SELECT @@global.ndb_log_updated_only;
112
113
114--echo '#--------------------FN_DYNVARS_103_03------------------------#'
115########################################################################
116# Change the value of ndb_log_updated_only to a valid value #
117########################################################################
118
119#SET @@global.ndb_log_updated_only = 0;
120#SELECT @@global.ndb_log_updated_only;
121#SET @@global.ndb_log_updated_only = 1;
122#SELECT @@global.ndb_log_updated_only;
123## a value of 2 is used to just flush logs and then shutdown cold.
124#SET @@global.ndb_log_updated_only = 2;
125#SELECT @@global.ndb_log_updated_only;
126
127--echo '#--------------------FN_DYNVARS_103_04-------------------------#'
128###########################################################################
129# Change the value of ndb_log_updated_only to invalid value #
130###########################################################################
131
132#--Error ER_WRONG_VALUE_FOR_VAR
133#SET @@global.ndb_log_updated_only = -1;
134#--Error ER_WRONG_VALUE_FOR_VAR
135#SET @@global.ndb_log_updated_only = TRU;
136#--Error ER_WRONG_VALUE_FOR_VAR
137#SET @@global.ndb_log_updated_only = TRUE_F;
138#--Error ER_WRONG_VALUE_FOR_VAR
139#SET @@global.ndb_log_updated_only = FALS;
140#--Error ER_WRONG_VALUE_FOR_VAR
141#SET @@global.ndb_log_updated_only = OON;
142#--Error ER_WRONG_VALUE_FOR_VAR
143#SET @@global.ndb_log_updated_only = ONN;
144#--Error ER_WRONG_VALUE_FOR_VAR
145#SET @@global.ndb_log_updated_only = OOFF;
146#--Error ER_WRONG_VALUE_FOR_VAR
147#SET @@global.ndb_log_updated_only = 0FF;
148#--Error ER_WRONG_VALUE_FOR_VAR
149#SET @@global.ndb_log_updated_only = ' 1';
150#--Error ER_WRONG_VALUE_FOR_VAR
151#SET @@global.ndb_log_updated_only = "0 ";
152
153
154
155--echo '#-------------------FN_DYNVARS_103_05----------------------------#'
156###########################################################################
157# Test if accessing session ndb_log_updated_only gives error #
158###########################################################################
159
160#--Error ER_LOCAL_VARIABLE
161#SET @@session.ndb_log_updated_only = 0;
162#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
163#SET @@ndb_log_updated_only = 0;
164#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
165#SET @@local.ndb_log_updated_only = 0;
166#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
167#SELECT @@session.ndb_log_updated_only;
168#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
169#SELECT @@local.ndb_log_updated_only;
170
171--echo '#----------------------FN_DYNVARS_103_06------------------------#'
172#########################################################################
173# Check if the value in SESSION Table contains variable value #
174#########################################################################
175
176#SELECT count(VARIABLE_VALUE) AS res_is_0 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='ndb_log_updated_only';
177
178
179--echo '#----------------------FN_DYNVARS_103_07------------------------#'
180#########################################################################
181# Check if the value in GLOBAL Table matches value in variable #
182#########################################################################
183
184#SELECT @@global.ndb_log_updated_only = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='ndb_log_updated_only';
185
186
187--echo '#---------------------FN_DYNVARS_103_08-------------------------#'
188###################################################################
189# Check if ON and OFF values can be used on variable #
190###################################################################
191
192#SET @@ndb_log_updated_only = OFF;
193#SELECT @@ndb_log_updated_only;
194#SET @@ndb_log_updated_only = ON;
195#SELECT @@ndb_log_updated_only;
196
197--echo '#---------------------FN_DYNVARS_103_09----------------------#'
198###################################################################
199# Check if TRUE and FALSE values can be used on variable #
200###################################################################
201
202#SET @@ndb_log_updated_only = TRUE;
203#SELECT @@ndb_log_updated_only;
204#SET @@ndb_log_updated_only = 'FALSE';
205#SELECT @@ndb_log_updated_only;
206
207##############################
208# Restore initial value #
209##############################
210
211#SET @@ndb_log_updated_only = @global_start_value;
212#SELECT @@ndb_log_updated_only;
213
214########################################################################
215# END OF ndb_log_updated_only TESTS #
216########################################################################
2170
=== added file 'Percona-Server/mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test'
--- Percona-Server/mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test 2013-02-18 05:17:25 +0000
@@ -0,0 +1,168 @@
1####################### mysql-test\t\pseudo_slave_mode_basic.test ###################
2# #
3# Variable Name: pseudo_slave_mode #
4# Scope: SESSION #
5# Access Type: Dynamic #
6# Data Type: boolean #
7# Default Value: #
8# Valid Values: 0,1 #
9# #
10# #
11# Creation Date: 2012-11-16 #
12# #
13# Description: Test Cases of Dynamic System Variable pseudo_slave_mode #
14# that checks the behavior of this variable in the following ways#
15# * Default Value #
16# * Valid & Invalid values #
17# * Scope & Access method #
18# * Data Integrity #
19# #
20# Reference: http://dev.mysql.com/doc/refman/5.5/en/ #
21# server-system-variables.html #
22# #
23###############################################################################
24
25--source include/load_sysvars.inc
26
27########################################################################
28# START OF pseudo_slave_mode TESTS #
29########################################################################
30
31
32##############################################################################
33# Saving initial value of pseudo_slave_mode in a temporary variable #
34##############################################################################
35
36SET @session_start_value = @@session.pseudo_slave_mode;
37SELECT @session_start_value;
38
39--echo '#--------------------FN_DYNVARS_156_01------------------------#'
40########################################################################
41# Display the DEFAULT value of pseudo_slave_mode #
42########################################################################
43
44SET @@session.pseudo_slave_mode = 0;
45SET @@session.pseudo_slave_mode = DEFAULT;
46SELECT @@session.pseudo_slave_mode;
47
48SET @@session.pseudo_slave_mode = 1;
49SET @@session.pseudo_slave_mode = DEFAULT;
50SELECT @@session.pseudo_slave_mode;
51
52
53--echo '#---------------------FN_DYNVARS_156_02-------------------------#'
54#############################################################################
55# Check if pseudo_slave_mode can be accessed with and without @@ sign #
56#############################################################################
57
58SET pseudo_slave_mode = 1;
59SELECT @@pseudo_slave_mode;
60
61--Error ER_UNKNOWN_TABLE
62SELECT session.pseudo_slave_mode;
63
64--Error ER_UNKNOWN_TABLE
65SELECT local.pseudo_slave_mode;
66
67SET session pseudo_slave_mode = 0;
68SELECT @@session.pseudo_slave_mode;
69
70
71--echo '#--------------------FN_DYNVARS_156_03------------------------#'
72########################################################################
73# change the value of pseudo_slave_mode to a valid value #
74########################################################################
75
76SET @@session.pseudo_slave_mode = 0;
77SELECT @@session.pseudo_slave_mode;
78SET @@session.pseudo_slave_mode = 1;
79SELECT @@session.pseudo_slave_mode;
80
81
82--echo '#--------------------FN_DYNVARS_156_04-------------------------#'
83###########################################################################
84# Change the value of pseudo_slave_mode to invalid value #
85###########################################################################
86
87--Error ER_WRONG_VALUE_FOR_VAR
88SET @@session.pseudo_slave_mode = -1;
89--Error ER_WRONG_VALUE_FOR_VAR
90SET @@session.pseudo_slave_mode = 2;
91--Error ER_WRONG_VALUE_FOR_VAR
92SET @@session.pseudo_slave_mode = "T";
93--Error ER_WRONG_VALUE_FOR_VAR
94SET @@session.pseudo_slave_mode = "Y";
95--Error ER_WRONG_VALUE_FOR_VAR
96SET @@session.pseudo_slave_mode = TRÜE;
97--Error ER_WRONG_VALUE_FOR_VAR
98SET @@session.pseudo_slave_mode = ÕN;
99--Error ER_WRONG_VALUE_FOR_VAR
100SET @@session.pseudo_slave_mode = OF;
101--Error ER_WRONG_VALUE_FOR_VAR
102SET @@session.pseudo_slave_mode = ÓFF;
103--Error ER_WRONG_VALUE_FOR_VAR
104SET @@session.pseudo_slave_mode = '¹';
105--Error ER_WRONG_VALUE_FOR_VAR
106SET @@session.pseudo_slave_mode = NO;
107
108
109--echo '#-------------------FN_DYNVARS_156_05----------------------------#'
110###########################################################################
111# Test if accessing global pseudo_slave_mode gives error #
112###########################################################################
113
114--error ER_LOCAL_VARIABLE
115SET @@global.pseudo_slave_mode = 0;
116--error ER_INCORRECT_GLOBAL_LOCAL_VAR
117SELECT @@global.pseudo_slave_mode;
118
119--echo '#----------------------FN_DYNVARS_156_06------------------------#'
120#########################################################################
121# Check if the value in SESSION Table contains variable value #
122#########################################################################
123
124SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='pseudo_slave_mode';
125
126--echo '#----------------------FN_DYNVARS_156_07------------------------#'
127#########################################################################
128# Check if the value in SESSION Table matches value in variable #
129#########################################################################
130
131SELECT IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE
132FROM INFORMATION_SCHEMA.SESSION_VARIABLES
133WHERE VARIABLE_NAME='pseudo_slave_mode';
134SELECT @@session.pseudo_slave_mode;
135SELECT VARIABLE_VALUE
136FROM INFORMATION_SCHEMA.SESSION_VARIABLES
137WHERE VARIABLE_NAME='pseudo_slave_mode';
138
139--echo '#---------------------FN_DYNVARS_156_08-------------------------#'
140###################################################################
141# Check if ON and OFF values can be used on variable #
142###################################################################
143
144SET @@session.pseudo_slave_mode = OFF;
145SELECT @@session.pseudo_slave_mode;
146SET @@session.pseudo_slave_mode = ON;
147SELECT @@session.pseudo_slave_mode;
148
149--echo '#---------------------FN_DYNVARS_156_09----------------------#'
150###################################################################
151# Check if TRUE and FALSE values can be used on variable #
152###################################################################
153
154SET @@session.pseudo_slave_mode = TRUE;
155SELECT @@session.pseudo_slave_mode;
156SET @@session.pseudo_slave_mode = FALSE;
157SELECT @@session.pseudo_slave_mode;
158
159##############################
160# Restore initial value #
161##############################
162
163SET @@session.pseudo_slave_mode = @session_start_value;
164SELECT @@session.pseudo_slave_mode;
165
166###############################################################
167# END OF pseudo_slave_mode TESTS #
168###############################################################
0169
=== modified file 'Percona-Server/mysql-test/t/mysqldump.test'
--- Percona-Server/mysql-test/t/mysqldump.test 2012-11-28 05:09:57 +0000
+++ Percona-Server/mysql-test/t/mysqldump.test 2013-02-18 05:17:25 +0000
@@ -2347,12 +2347,17 @@
2347--echo # Note : In the following dump the transaction2347--echo # Note : In the following dump the transaction
2348--echo # should start only after the logs are2348--echo # should start only after the logs are
2349--echo # flushed, as 'flush logs' causes implicit2349--echo # flushed, as 'flush logs' causes implicit
2350--echo # commit starting 5.5.2350--echo # commit starting 5.5.Also, as stderr is
2351--echo # unbuffered, it is redirected to a different
2352--echo # file to avoid diffs due to bad stdout/stderr
2353--echo # order in the output.
2351--echo2354--echo
2352--echo #### Dump starts here ####2355--echo #### Dump starts here ####
2353--replace_regex /-- Server version.*// /-- MySQL dump .*// /-- Dump completed on .*/-- Dump completed/2356--replace_regex /-- Server version.*// /-- MySQL dump .*// /-- Dump completed on .*/-- Dump completed/
2354--exec $MYSQL_DUMP --verbose --single-transaction --flush-log b12809202_db --result-file $MYSQLTEST_VARDIR/tmp/stfl.sql 2>&12357--exec $MYSQL_DUMP --verbose --single-transaction --flush-log b12809202_db 2>$MYSQLTEST_VARDIR/tmp/b12809202_stderr.sql
2355--remove_file $MYSQLTEST_VARDIR/tmp/stfl.sql2358--echo
2359--echo ## stderr ##
2360--cat_file $MYSQLTEST_VARDIR/tmp/b12809202_stderr.sql
2356--echo2361--echo
2357--echo #### Dump ends here ####2362--echo #### Dump ends here ####
23582363
@@ -2360,6 +2365,7 @@
2360DROP TABLE b12809202_db.t1;2365DROP TABLE b12809202_db.t1;
2361DROP TABLE b12809202_db.t2;2366DROP TABLE b12809202_db.t2;
2362DROP DATABASE b12809202_db;2367DROP DATABASE b12809202_db;
2368--remove_file $MYSQLTEST_VARDIR/tmp/b12809202_stderr.sql
23632369
2364--echo #2370--echo #
2365--echo # Delete all existing binary logs.2371--echo # Delete all existing binary logs.
23662372
=== modified file 'Percona-Server/mysql-test/t/percona_innodb_version.test'
--- Percona-Server/mysql-test/t/percona_innodb_version.test 2012-04-18 23:26:42 +0000
+++ Percona-Server/mysql-test/t/percona_innodb_version.test 2013-02-18 05:17:25 +0000
@@ -4,5 +4,5 @@
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches