Merge lp:~stewart/percona-server/5.5.30 into lp:percona-server/5.5
- 5.5.30
- Merge into 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 |
Related bugs: | |
Related blueprints: |
Rebase on MySQL 5.5.30
(Essential)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stewart Smith (community) | Approve | ||
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+148984@code.launchpad.net |
Commit message
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://
(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 : | # |
After this one is merged, have to check if https:/
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
1 | === modified file 'Percona-Server/.bzrignore' | |||
2 | --- Percona-Server/.bzrignore 2012-05-30 10:47:29 +0000 | |||
3 | +++ Percona-Server/.bzrignore 2013-02-18 05:17:25 +0000 | |||
4 | @@ -1313,6 +1313,7 @@ | |||
5 | 1313 | mysql-test/*.vcproj | 1313 | mysql-test/*.vcproj |
6 | 1314 | mysql-test/.DS_Store | 1314 | mysql-test/.DS_Store |
7 | 1315 | mysql-test/collections/default.release | 1315 | mysql-test/collections/default.release |
8 | 1316 | mysql-test/collections/default.release.done | ||
9 | 1316 | mysql-test/funcs_1.log | 1317 | mysql-test/funcs_1.log |
10 | 1317 | mysql-test/funcs_1.tar | 1318 | mysql-test/funcs_1.tar |
11 | 1318 | mysql-test/gmon.out | 1319 | mysql-test/gmon.out |
12 | @@ -3066,4 +3067,5 @@ | |||
13 | 3066 | Docs/INFO_BIN | 3067 | Docs/INFO_BIN |
14 | 3067 | Docs/INFO_SRC | 3068 | Docs/INFO_SRC |
15 | 3068 | Testing | 3069 | Testing |
16 | 3070 | FilesCopied | ||
17 | 3069 | source_downloads | 3071 | source_downloads |
18 | 3070 | 3072 | ||
19 | === modified file 'Percona-Server/README' | |||
20 | --- Percona-Server/README 2012-02-28 11:50:23 +0000 | |||
21 | +++ Percona-Server/README 2013-02-18 05:17:25 +0000 | |||
22 | @@ -5,7 +5,7 @@ | |||
23 | 5 | is released under the version 2 of the GNU General Public License. | 5 | is released under the version 2 of the GNU General Public License. |
24 | 6 | MySQL is brought to you by Oracle. | 6 | MySQL is brought to you by Oracle. |
25 | 7 | 7 | ||
27 | 8 | Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. | 8 | Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. |
28 | 9 | 9 | ||
29 | 10 | License information can be found in the COPYING file. | 10 | License information can be found in the COPYING file. |
30 | 11 | 11 | ||
31 | 12 | 12 | ||
32 | === modified file 'Percona-Server/VERSION' | |||
33 | --- Percona-Server/VERSION 2013-01-09 23:45:25 +0000 | |||
34 | +++ Percona-Server/VERSION 2013-02-18 05:17:25 +0000 | |||
35 | @@ -1,4 +1,4 @@ | |||
36 | 1 | MYSQL_VERSION_MAJOR=5 | 1 | MYSQL_VERSION_MAJOR=5 |
37 | 2 | MYSQL_VERSION_MINOR=5 | 2 | MYSQL_VERSION_MINOR=5 |
39 | 3 | MYSQL_VERSION_PATCH=29 | 3 | MYSQL_VERSION_PATCH=30 |
40 | 4 | MYSQL_VERSION_EXTRA= | 4 | MYSQL_VERSION_EXTRA= |
41 | 5 | 5 | ||
42 | === modified file 'Percona-Server/client/mysql.cc' | |||
43 | --- Percona-Server/client/mysql.cc 2013-01-17 22:50:22 +0000 | |||
44 | +++ Percona-Server/client/mysql.cc 2013-02-18 05:17:25 +0000 | |||
45 | @@ -2338,17 +2338,19 @@ | |||
46 | 2338 | { | 2338 | { |
47 | 2339 | uint length=(uint) (out-line); | 2339 | uint length=(uint) (out-line); |
48 | 2340 | 2340 | ||
53 | 2341 | if (!truncated && | 2341 | if (!truncated && (length < 9 || |
54 | 2342 | (length < 9 || | 2342 | my_strnncoll (charset_info, (uchar *)line, 9, |
55 | 2343 | my_strnncoll (charset_info, | 2343 | (const uchar *) "delimiter", 9) || |
56 | 2344 | (uchar *)line, 9, (const uchar *) "delimiter", 9))) | 2344 | (*in_string || *ml_comment))) |
57 | 2345 | { | 2345 | { |
58 | 2346 | /* | 2346 | /* |
59 | 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 |
60 | 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 |
61 | 2349 | "<command>;DELIMITER <non-eof>") : similar to how a new line is | 2349 | "<command>;DELIMITER <non-eof>") : similar to how a new line is |
62 | 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 |
64 | 2351 | entered with an empty glob buffer. | 2351 | entered with an empty glob buffer. However, if the delimiter is |
65 | 2352 | part of a string or a comment, the new line should be added. (e.g. | ||
66 | 2353 | SELECT '\ndelimiter\n';\n) | ||
67 | 2352 | */ | 2354 | */ |
68 | 2353 | *out++='\n'; | 2355 | *out++='\n'; |
69 | 2354 | length++; | 2356 | length++; |
70 | 2355 | 2357 | ||
71 | === modified file 'Percona-Server/client/mysqlbinlog.cc' | |||
72 | --- Percona-Server/client/mysqlbinlog.cc 2013-01-17 22:50:22 +0000 | |||
73 | +++ Percona-Server/client/mysqlbinlog.cc 2013-02-18 05:17:25 +0000 | |||
74 | @@ -2120,6 +2120,8 @@ | |||
75 | 2120 | else | 2120 | else |
76 | 2121 | load_processor.init_by_cur_dir(); | 2121 | load_processor.init_by_cur_dir(); |
77 | 2122 | 2122 | ||
78 | 2123 | fprintf(result_file, "/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;\n"); | ||
79 | 2124 | |||
80 | 2123 | fprintf(result_file, | 2125 | fprintf(result_file, |
81 | 2124 | "/*!40019 SET @@session.max_insert_delayed_threads=0*/;\n"); | 2126 | "/*!40019 SET @@session.max_insert_delayed_threads=0*/;\n"); |
82 | 2125 | 2127 | ||
83 | @@ -2170,6 +2172,8 @@ | |||
84 | 2170 | "/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n" | 2172 | "/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n" |
85 | 2171 | "/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n"); | 2173 | "/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n"); |
86 | 2172 | 2174 | ||
87 | 2175 | fprintf(result_file, "/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;\n"); | ||
88 | 2176 | |||
89 | 2173 | if (tmpdir.list) | 2177 | if (tmpdir.list) |
90 | 2174 | free_tmpdir(&tmpdir); | 2178 | free_tmpdir(&tmpdir); |
91 | 2175 | if (result_file != stdout) | 2179 | if (result_file != stdout) |
92 | 2176 | 2180 | ||
93 | === modified file 'Percona-Server/client/mysqldump.c' | |||
94 | --- Percona-Server/client/mysqldump.c 2013-01-18 03:34:53 +0000 | |||
95 | +++ Percona-Server/client/mysqldump.c 2013-02-18 05:17:25 +0000 | |||
96 | @@ -2277,7 +2277,6 @@ | |||
97 | 2277 | const char *routine_type[]= {"FUNCTION", "PROCEDURE"}; | 2277 | const char *routine_type[]= {"FUNCTION", "PROCEDURE"}; |
98 | 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]; |
99 | 2279 | char *routine_name; | 2279 | char *routine_name; |
100 | 2280 | char *query_str; | ||
101 | 2281 | int i; | 2280 | int i; |
102 | 2282 | FILE *sql_file= md_result_file; | 2281 | FILE *sql_file= md_result_file; |
103 | 2283 | MYSQL_RES *routine_res, *routine_list_res; | 2282 | MYSQL_RES *routine_res, *routine_list_res; |
104 | @@ -2371,17 +2370,6 @@ | |||
105 | 2371 | fprintf(sql_file, "/*!50003 DROP %s IF EXISTS %s */;\n", | 2370 | fprintf(sql_file, "/*!50003 DROP %s IF EXISTS %s */;\n", |
106 | 2372 | routine_type[i], routine_name); | 2371 | routine_type[i], routine_name); |
107 | 2373 | 2372 | ||
108 | 2374 | query_str= cover_definer_clause(row[2], strlen(row[2]), | ||
109 | 2375 | C_STRING_WITH_LEN("50020"), | ||
110 | 2376 | C_STRING_WITH_LEN("50003"), | ||
111 | 2377 | C_STRING_WITH_LEN(" FUNCTION")); | ||
112 | 2378 | |||
113 | 2379 | if (!query_str) | ||
114 | 2380 | query_str= cover_definer_clause(row[2], strlen(row[2]), | ||
115 | 2381 | C_STRING_WITH_LEN("50020"), | ||
116 | 2382 | C_STRING_WITH_LEN("50003"), | ||
117 | 2383 | C_STRING_WITH_LEN(" PROCEDURE")); | ||
118 | 2384 | |||
119 | 2385 | if (mysql_num_fields(routine_res) >= 6) | 2373 | if (mysql_num_fields(routine_res) >= 6) |
120 | 2386 | { | 2374 | { |
121 | 2387 | if (switch_db_collation(sql_file, db_name_buff, ";", | 2375 | if (switch_db_collation(sql_file, db_name_buff, ";", |
122 | @@ -2419,9 +2407,9 @@ | |||
123 | 2419 | 2407 | ||
124 | 2420 | fprintf(sql_file, | 2408 | fprintf(sql_file, |
125 | 2421 | "DELIMITER ;;\n" | 2409 | "DELIMITER ;;\n" |
127 | 2422 | "/*!50003 %s */;;\n" | 2410 | "%s ;;\n" |
128 | 2423 | "DELIMITER ;\n", | 2411 | "DELIMITER ;\n", |
130 | 2424 | (const char *) (query_str != NULL ? query_str : row[2])); | 2412 | (const char *) row[2]); |
131 | 2425 | 2413 | ||
132 | 2426 | restore_sql_mode(sql_file, ";"); | 2414 | restore_sql_mode(sql_file, ";"); |
133 | 2427 | 2415 | ||
134 | @@ -2436,7 +2424,6 @@ | |||
135 | 2436 | } | 2424 | } |
136 | 2437 | } | 2425 | } |
137 | 2438 | 2426 | ||
138 | 2439 | my_free(query_str); | ||
139 | 2440 | } | 2427 | } |
140 | 2441 | } /* end of routine printing */ | 2428 | } /* end of routine printing */ |
141 | 2442 | mysql_free_result(routine_res); | 2429 | mysql_free_result(routine_res); |
142 | @@ -3708,7 +3695,8 @@ | |||
143 | 3708 | if (!opt_events && !my_strcasecmp(&my_charset_latin1, db, "mysql") && | 3695 | if (!opt_events && !my_strcasecmp(&my_charset_latin1, db, "mysql") && |
144 | 3709 | !my_strcasecmp(&my_charset_latin1, table, "event")) | 3696 | !my_strcasecmp(&my_charset_latin1, table, "event")) |
145 | 3710 | { | 3697 | { |
147 | 3711 | verbose_msg("-- Skipping data table mysql.event, --skip-events was used\n"); | 3698 | fprintf(stderr, "-- Warning: Skipping the data of table mysql.event." |
148 | 3699 | " Specify the --events option explicitly.\n"); | ||
149 | 3712 | DBUG_VOID_RETURN; | 3700 | DBUG_VOID_RETURN; |
150 | 3713 | } | 3701 | } |
151 | 3714 | 3702 | ||
152 | 3715 | 3703 | ||
153 | === modified file 'Percona-Server/client/mysqltest.cc' | |||
154 | --- Percona-Server/client/mysqltest.cc 2013-01-17 22:50:22 +0000 | |||
155 | +++ Percona-Server/client/mysqltest.cc 2013-02-18 05:17:25 +0000 | |||
156 | @@ -1312,7 +1312,7 @@ | |||
157 | 1312 | void free_used_memory() | 1312 | void free_used_memory() |
158 | 1313 | { | 1313 | { |
159 | 1314 | uint i; | 1314 | uint i; |
161 | 1315 | DBUG_ENTER("free_used_memory"); | 1315 | // Do not use DBUG_ENTER("free_used_memory"); here, see below. |
162 | 1316 | 1316 | ||
163 | 1317 | if (connections) | 1317 | if (connections) |
164 | 1318 | close_connections(); | 1318 | close_connections(); |
165 | 1319 | 1319 | ||
166 | === modified file 'Percona-Server/extra/yassl/src/handshake.cpp' | |||
167 | --- Percona-Server/extra/yassl/src/handshake.cpp 2012-02-13 12:44:54 +0000 | |||
168 | +++ Percona-Server/extra/yassl/src/handshake.cpp 2013-02-18 05:17:25 +0000 | |||
169 | @@ -767,8 +767,14 @@ | |||
170 | 767 | 767 | ||
171 | 768 | while (buffer.get_current() < hdr.length_ + RECORD_HEADER + offset) { | 768 | while (buffer.get_current() < hdr.length_ + RECORD_HEADER + offset) { |
172 | 769 | // each message in record, can be more than 1 if not encrypted | 769 | // each message in record, can be more than 1 if not encrypted |
174 | 770 | if (ssl.getSecurity().get_parms().pending_ == false) // cipher on | 770 | if (ssl.getSecurity().get_parms().pending_ == false) { // cipher on |
175 | 771 | // sanity check for malicious/corrupted/illegal input | ||
176 | 772 | if (buffer.get_remaining() < hdr.length_) { | ||
177 | 773 | ssl.SetError(bad_input); | ||
178 | 774 | return 0; | ||
179 | 775 | } | ||
180 | 771 | decrypt_message(ssl, buffer, hdr.length_); | 776 | decrypt_message(ssl, buffer, hdr.length_); |
181 | 777 | } | ||
182 | 772 | 778 | ||
183 | 773 | mySTL::auto_ptr<Message> msg(mf.CreateObject(hdr.type_)); | 779 | mySTL::auto_ptr<Message> msg(mf.CreateObject(hdr.type_)); |
184 | 774 | if (!msg.get()) { | 780 | if (!msg.get()) { |
185 | 775 | 781 | ||
186 | === modified file 'Percona-Server/include/my_sys.h' | |||
187 | --- Percona-Server/include/my_sys.h 2013-01-30 09:55:26 +0000 | |||
188 | +++ Percona-Server/include/my_sys.h 2013-02-18 05:17:25 +0000 | |||
189 | @@ -210,6 +210,7 @@ | |||
190 | 210 | extern void (*error_handler_hook)(uint my_err, const char *str,myf MyFlags); | 210 | extern void (*error_handler_hook)(uint my_err, const char *str,myf MyFlags); |
191 | 211 | extern void (*fatal_error_handler_hook)(uint my_err, const char *str, | 211 | extern void (*fatal_error_handler_hook)(uint my_err, const char *str, |
192 | 212 | myf MyFlags); | 212 | myf MyFlags); |
193 | 213 | extern void(*sql_print_warning_hook)(const char *format,...); | ||
194 | 213 | extern uint my_file_limit; | 214 | extern uint my_file_limit; |
195 | 214 | extern ulong my_thread_stack_size; | 215 | extern ulong my_thread_stack_size; |
196 | 215 | 216 | ||
197 | @@ -606,6 +607,7 @@ | |||
198 | 606 | 607 | ||
199 | 607 | extern int check_if_legal_filename(const char *path); | 608 | extern int check_if_legal_filename(const char *path); |
200 | 608 | extern int check_if_legal_tablename(const char *path); | 609 | extern int check_if_legal_tablename(const char *path); |
201 | 610 | extern my_bool is_filename_allowed(const char *name, size_t length); | ||
202 | 609 | 611 | ||
203 | 610 | #ifdef _WIN32 | 612 | #ifdef _WIN32 |
204 | 611 | extern int nt_share_delete(const char *name,myf MyFlags); | 613 | extern int nt_share_delete(const char *name,myf MyFlags); |
205 | @@ -642,6 +644,7 @@ | |||
206 | 642 | va_list ap); | 644 | va_list ap); |
207 | 643 | extern int my_error_register(const char** (*get_errmsgs) (), | 645 | extern int my_error_register(const char** (*get_errmsgs) (), |
208 | 644 | int first, int last); | 646 | int first, int last); |
209 | 647 | extern void my_printf_warning (const char * format, ...); | ||
210 | 645 | extern const char **my_error_unregister(int first, int last); | 648 | extern const char **my_error_unregister(int first, int last); |
211 | 646 | extern void my_message(uint my_err, const char *str,myf MyFlags); | 649 | extern void my_message(uint my_err, const char *str,myf MyFlags); |
212 | 647 | extern void my_message_stderr(uint my_err, const char *str, myf MyFlags); | 650 | extern void my_message_stderr(uint my_err, const char *str, myf MyFlags); |
213 | 648 | 651 | ||
214 | === modified file 'Percona-Server/include/mysql/service_my_snprintf.h' | |||
215 | --- Percona-Server/include/mysql/service_my_snprintf.h 2011-06-30 15:46:53 +0000 | |||
216 | +++ Percona-Server/include/mysql/service_my_snprintf.h 2013-02-18 05:17:25 +0000 | |||
217 | @@ -49,6 +49,7 @@ | |||
218 | 49 | string will be quoted according to MySQL identifier quoting rules. | 49 | string will be quoted according to MySQL identifier quoting rules. |
219 | 50 | 50 | ||
220 | 51 | Both <width> and <precision> can be specified as numbers or '*'. | 51 | Both <width> and <precision> can be specified as numbers or '*'. |
221 | 52 | If an asterisk is used, an argument of type int is consumed. | ||
222 | 52 | 53 | ||
223 | 53 | <length modifier> can be 'l', 'll', or 'z'. | 54 | <length modifier> can be 'l', 'll', or 'z'. |
224 | 54 | 55 | ||
225 | 55 | 56 | ||
226 | === modified file 'Percona-Server/include/mysql/thread_pool_priv.h' | |||
227 | --- Percona-Server/include/mysql/thread_pool_priv.h 2012-08-28 14:13:03 +0000 | |||
228 | +++ Percona-Server/include/mysql/thread_pool_priv.h 2013-02-18 05:17:25 +0000 | |||
229 | @@ -61,6 +61,7 @@ | |||
230 | 61 | void thd_set_mysys_var(THD *thd, st_my_thread_var *mysys_var); | 61 | void thd_set_mysys_var(THD *thd, st_my_thread_var *mysys_var); |
231 | 62 | ulong thd_get_net_wait_timeout(THD *thd); | 62 | ulong thd_get_net_wait_timeout(THD *thd); |
232 | 63 | my_socket thd_get_fd(THD *thd); | 63 | my_socket thd_get_fd(THD *thd); |
233 | 64 | int thd_store_globals(THD* thd); | ||
234 | 64 | 65 | ||
235 | 65 | THD *first_global_thread(); | 66 | THD *first_global_thread(); |
236 | 66 | THD *next_global_thread(THD *thd); | 67 | THD *next_global_thread(THD *thd); |
237 | 67 | 68 | ||
238 | === modified file 'Percona-Server/include/welcome_copyright_notice.h' | |||
239 | --- Percona-Server/include/welcome_copyright_notice.h 2012-08-07 13:37:13 +0000 | |||
240 | +++ Percona-Server/include/welcome_copyright_notice.h 2013-02-18 05:17:25 +0000 | |||
241 | @@ -1,4 +1,4 @@ | |||
243 | 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. |
244 | 2 | 2 | ||
245 | 3 | This program is free software; you can redistribute it and/or modify | 3 | This program is free software; you can redistribute it and/or modify |
246 | 4 | it under the terms of the GNU General Public License as published by | 4 | it under the terms of the GNU General Public License as published by |
247 | @@ -16,7 +16,7 @@ | |||
248 | 16 | #ifndef _welcome_copyright_notice_h_ | 16 | #ifndef _welcome_copyright_notice_h_ |
249 | 17 | #define _welcome_copyright_notice_h_ | 17 | #define _welcome_copyright_notice_h_ |
250 | 18 | 18 | ||
252 | 19 | #define COPYRIGHT_NOTICE_CURRENT_YEAR "2012" | 19 | #define COPYRIGHT_NOTICE_CURRENT_YEAR "2013" |
253 | 20 | 20 | ||
254 | 21 | /* | 21 | /* |
255 | 22 | This define specifies copyright notice which is displayed by every MySQL | 22 | This define specifies copyright notice which is displayed by every MySQL |
256 | 23 | 23 | ||
257 | === modified file 'Percona-Server/mysql-test/CMakeLists.txt' | |||
258 | --- Percona-Server/mysql-test/CMakeLists.txt 2012-02-16 09:48:16 +0000 | |||
259 | +++ Percona-Server/mysql-test/CMakeLists.txt 2013-02-18 05:17:25 +0000 | |||
260 | @@ -1,4 +1,4 @@ | |||
262 | 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. |
263 | 2 | # | 2 | # |
264 | 3 | # This program is free software; you can redistribute it and/or modify | 3 | # This program is free software; you can redistribute it and/or modify |
265 | 4 | # it under the terms of the GNU General Public License as published by | 4 | # it under the terms of the GNU General Public License as published by |
266 | @@ -150,8 +150,10 @@ | |||
267 | 150 | FILE(GLOB infiles "collections/*.in") | 150 | FILE(GLOB infiles "collections/*.in") |
268 | 151 | FOREACH(collin ${infiles}) | 151 | FOREACH(collin ${infiles}) |
269 | 152 | STRING(REPLACE ".in" "" collection ${collin}) | 152 | STRING(REPLACE ".in" "" collection ${collin}) |
270 | 153 | STRING(REPLACE ".in" ".done" colldone ${collin}) | ||
271 | 153 | # Only generate file once | 154 | # Only generate file once |
273 | 154 | IF(NOT EXISTS ${collection}) | 155 | IF(NOT EXISTS ${colldone}) |
274 | 155 | PROCESS_COLLECTION_INCLUDE(${collin} ${collection}) | 156 | PROCESS_COLLECTION_INCLUDE(${collin} ${collection}) |
275 | 157 | FILE(APPEND ${colldone} "${collin}\n") | ||
276 | 156 | ENDIF() | 158 | ENDIF() |
277 | 157 | ENDFOREACH() | 159 | ENDFOREACH() |
278 | 158 | 160 | ||
279 | === modified file 'Percona-Server/mysql-test/collections/default.daily' | |||
280 | --- Percona-Server/mysql-test/collections/default.daily 2011-03-11 09:12:58 +0000 | |||
281 | +++ Percona-Server/mysql-test/collections/default.daily 2013-02-18 05:17:25 +0000 | |||
282 | @@ -1,5 +1,5 @@ | |||
283 | 1 | 1 | ||
285 | 2 | perl 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-tests | 2 | perl 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 |
286 | 3 | perl 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 | 3 | perl 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 |
287 | 4 | perl 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 | 4 | perl 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 |
288 | 5 | perl 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 | 5 | perl 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 |
289 | 6 | 6 | ||
290 | === modified file 'Percona-Server/mysql-test/collections/default.experimental' | |||
291 | --- Percona-Server/mysql-test/collections/default.experimental 2012-02-03 14:23:33 +0000 | |||
292 | +++ Percona-Server/mysql-test/collections/default.experimental 2013-02-18 05:17:25 +0000 | |||
293 | @@ -18,9 +18,4 @@ | |||
294 | 18 | sys_vars.max_sp_recursion_depth_func @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun | 18 | sys_vars.max_sp_recursion_depth_func @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun |
295 | 19 | sys_vars.wait_timeout_func # Bug#11750645 2010-04-26 alik wait_timeout_func fails | 19 | sys_vars.wait_timeout_func # Bug#11750645 2010-04-26 alik wait_timeout_func fails |
296 | 20 | 20 | ||
297 | 21 | # BUG #59055 : All ndb tests should be removed from the repository | ||
298 | 22 | # Leaving the sys_vars tests for now. sys_vars.all_vars.test fails on removing ndb tests | ||
299 | 23 | sys_vars.ndb_log_update_as_write_basic | ||
300 | 24 | sys_vars.have_ndbcluster_basic | ||
301 | 25 | sys_vars.ndb_log_updated_only_basic | ||
302 | 26 | sys_vars.rpl_init_slave_func # Bug#12535301 2011-05-09 andrei sys_vars.rpl_init_slave_func mismatches in daily-5.5 | 21 | sys_vars.rpl_init_slave_func # Bug#12535301 2011-05-09 andrei sys_vars.rpl_init_slave_func mismatches in daily-5.5 |
303 | 27 | 22 | ||
304 | === modified file 'Percona-Server/mysql-test/collections/default.push' | |||
305 | --- Percona-Server/mysql-test/collections/default.push 2011-02-21 12:56:43 +0000 | |||
306 | +++ Percona-Server/mysql-test/collections/default.push 2013-02-18 05:17:25 +0000 | |||
307 | @@ -1,5 +1,6 @@ | |||
313 | 1 | perl 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-tests | 1 | perl 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 |
314 | 2 | perl 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.list | 2 | perl 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 |
315 | 3 | perl mysql-test-run.pl --timer --force --parallel=auto --comment=embedded --vardir=var-emebbed --embedded --experimental=collections/default.experimental --skip-ndb | 3 | perl mysql-test-run.pl --timer --force --parallel=auto --comment=embedded --vardir=var-emebbed --embedded --experimental=collections/default.experimental |
316 | 4 | perl 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.list | 4 | perl 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 |
317 | 5 | perl mysql-test-run.pl --timer --force --parallel=auto --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 --experimental=collections/default.experimental --skip-ndb | 5 | perl mysql-test-run.pl --timer --force --parallel=auto --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 --experimental=collections/default.experimental |
318 | 6 | |||
319 | 6 | 7 | ||
320 | === modified file 'Percona-Server/mysql-test/collections/default.release.in' | |||
321 | --- Percona-Server/mysql-test/collections/default.release.in 2011-09-29 08:42:23 +0000 | |||
322 | +++ Percona-Server/mysql-test/collections/default.release.in 2013-02-18 05:17:25 +0000 | |||
323 | @@ -4,14 +4,14 @@ | |||
324 | 4 | # include default.daily | 4 | # include default.daily |
325 | 5 | # include default.weekly | 5 | # include default.weekly |
326 | 6 | 6 | ||
330 | 7 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=debug --vardir=var-debug --skip-ndbcluster --skip-rpl --report-features --debug-server | 7 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=debug --vardir=var-debug --skip-rpl --report-features --debug-server |
331 | 8 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --skip-ndbcluster --report-features | 8 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features |
332 | 9 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --skip-ndbcluster --ps-protocol | 9 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --ps-protocol |
333 | 10 | perl 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 | 10 | perl 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 |
334 | 11 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs2 --vardir=var-funcs2 --suite=funcs_2 | 11 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs2 --vardir=var-funcs2 --suite=funcs_2 |
335 | 12 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts | 12 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts |
336 | 13 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=stress --vardir=var-stress --suite=stress | 13 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=stress --vardir=var-stress --suite=stress |
337 | 14 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=jp --vardir=var-jp --suite=jp | 14 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=jp --vardir=var-jp --suite=jp |
339 | 15 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded-server --skip-rpl --skip-ndbcluster | 15 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded-server --skip-rpl |
340 | 16 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist --vardir=var-nist --suite=nist | 16 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist --vardir=var-nist --suite=nist |
341 | 17 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-nist_ps --suite=nist --ps-protocol | 17 | perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-nist_ps --suite=nist --ps-protocol |
342 | 18 | 18 | ||
343 | === removed file 'Percona-Server/mysql-test/include/get_binlog_dump_thread_id.inc' | |||
344 | --- Percona-Server/mysql-test/include/get_binlog_dump_thread_id.inc 2007-02-26 08:16:22 +0000 | |||
345 | +++ Percona-Server/mysql-test/include/get_binlog_dump_thread_id.inc 1970-01-01 00:00:00 +0000 | |||
346 | @@ -1,22 +0,0 @@ | |||
347 | 1 | --exec $MYSQL test -e "show processlist" > $MYSQLTEST_VARDIR/tmp/bl_dump_thread_id | ||
348 | 2 | --disable_warnings | ||
349 | 3 | drop table if exists t999; | ||
350 | 4 | --enable_warnings | ||
351 | 5 | # Create a table to hold the process list | ||
352 | 6 | create temporary table t999( | ||
353 | 7 | id int, | ||
354 | 8 | user char(255), | ||
355 | 9 | host char(255), | ||
356 | 10 | db char(255), | ||
357 | 11 | Command char(255), | ||
358 | 12 | time int, | ||
359 | 13 | State char(255), | ||
360 | 14 | info char(255) | ||
361 | 15 | ); | ||
362 | 16 | # Load processlist into table, headers will create seom warnings | ||
363 | 17 | --disable_warnings | ||
364 | 18 | --replace_result $MYSQLTEST_VARDIR "." | ||
365 | 19 | eval LOAD DATA INFILE "$MYSQLTEST_VARDIR/tmp/bl_dump_thread_id" into table t999; | ||
366 | 20 | --enable_warnings | ||
367 | 21 | let $id = `select Id from t999 where Command="Binlog Dump"`; | ||
368 | 22 | drop table t999; | ||
369 | 23 | 0 | ||
370 | === modified file 'Percona-Server/mysql-test/lib/My/SafeProcess/CMakeLists.txt' | |||
371 | --- Percona-Server/mysql-test/lib/My/SafeProcess/CMakeLists.txt 2011-01-18 10:21:37 +0000 | |||
372 | +++ Percona-Server/mysql-test/lib/My/SafeProcess/CMakeLists.txt 2013-02-18 05:17:25 +0000 | |||
373 | @@ -29,4 +29,4 @@ | |||
374 | 29 | IF(WIN32) | 29 | IF(WIN32) |
375 | 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) |
376 | 31 | ENDIF() | 31 | ENDIF() |
378 | 32 | INSTALL(FILES safe_process.pl Base.pm DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test) | 32 | INSTALL(FILES Base.pm DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test) |
379 | 33 | 33 | ||
380 | === modified file 'Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.cc' | |||
381 | --- Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.cc 2012-10-09 10:50:16 +0000 | |||
382 | +++ Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.cc 2013-02-18 05:17:25 +0000 | |||
383 | @@ -152,15 +152,19 @@ | |||
384 | 152 | pid_t own_pid= getpid(); | 152 | pid_t own_pid= getpid(); |
385 | 153 | pid_t parent_pid= getppid(); | 153 | pid_t parent_pid= getppid(); |
386 | 154 | bool nocore = false; | 154 | bool nocore = false; |
391 | 155 | struct sigaction sigchld_action; | 155 | struct sigaction sa,sa_abort; |
392 | 156 | 156 | ||
393 | 157 | sigchld_action.sa_handler= handle_signal; | 157 | sa.sa_handler= handle_signal; |
394 | 158 | sigchld_action.sa_flags= SA_NOCLDSTOP; | 158 | sa.sa_flags= SA_NOCLDSTOP; |
395 | 159 | sigemptyset(&sa.sa_mask); | ||
396 | 160 | |||
397 | 161 | sa_abort.sa_handler= handle_abort; | ||
398 | 162 | sigemptyset(&sa_abort.sa_mask); | ||
399 | 159 | /* Install signal handlers */ | 163 | /* Install signal handlers */ |
404 | 160 | signal(SIGTERM, handle_signal); | 164 | sigaction(SIGTERM, &sa,NULL); |
405 | 161 | signal(SIGINT, handle_signal); | 165 | sigaction(SIGINT, &sa,NULL); |
406 | 162 | sigaction(SIGCHLD, &sigchld_action, NULL); | 166 | sigaction(SIGCHLD, &sa,NULL); |
407 | 163 | signal(SIGABRT, handle_abort); | 167 | sigaction(SIGABRT, &sa_abort,NULL); |
408 | 164 | 168 | ||
409 | 165 | sprintf(safe_process_name, "safe_process[%ld]", (long) own_pid); | 169 | sprintf(safe_process_name, "safe_process[%ld]", (long) own_pid); |
410 | 166 | 170 | ||
411 | 167 | 171 | ||
412 | === removed file 'Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.pl' | |||
413 | --- Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.pl 2011-07-03 23:48:19 +0000 | |||
414 | +++ Percona-Server/mysql-test/lib/My/SafeProcess/safe_process.pl 1970-01-01 00:00:00 +0000 | |||
415 | @@ -1,166 +0,0 @@ | |||
416 | 1 | #!/usr/bin/perl | ||
417 | 2 | # -*- cperl -*- | ||
418 | 3 | |||
419 | 4 | # Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. | ||
420 | 5 | # | ||
421 | 6 | # This program is free software; you can redistribute it and/or modify | ||
422 | 7 | # it under the terms of the GNU General Public License as published by | ||
423 | 8 | # the Free Software Foundation; version 2 of the License. | ||
424 | 9 | # | ||
425 | 10 | # This program is distributed in the hope that it will be useful, | ||
426 | 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
427 | 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
428 | 13 | # GNU General Public License for more details. | ||
429 | 14 | # | ||
430 | 15 | # You should have received a copy of the GNU General Public License | ||
431 | 16 | # along with this program; if not, write to the Free Software | ||
432 | 17 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
433 | 18 | |||
434 | 19 | use strict; | ||
435 | 20 | use warnings; | ||
436 | 21 | |||
437 | 22 | use lib 'lib'; | ||
438 | 23 | use My::SafeProcess::Base; | ||
439 | 24 | use POSIX qw(WNOHANG); | ||
440 | 25 | |||
441 | 26 | ########################################################################### | ||
442 | 27 | # Util functions | ||
443 | 28 | ########################################################################### | ||
444 | 29 | |||
445 | 30 | # | ||
446 | 31 | #Print message to stderr | ||
447 | 32 | # | ||
448 | 33 | my $verbose= 0; | ||
449 | 34 | sub message { | ||
450 | 35 | if ($verbose > 0){ | ||
451 | 36 | use Time::localtime; | ||
452 | 37 | my $tm= localtime(); | ||
453 | 38 | my $timestamp= sprintf("%02d%02d%02d %2d:%02d:%02d", | ||
454 | 39 | $tm->year % 100, $tm->mon+1, $tm->mday, | ||
455 | 40 | $tm->hour, $tm->min, $tm->sec); | ||
456 | 41 | print STDERR $timestamp, " monitor[$$]: ", @_, "\n"; | ||
457 | 42 | } | ||
458 | 43 | } | ||
459 | 44 | |||
460 | 45 | |||
461 | 46 | ########################################################################### | ||
462 | 47 | # Main program | ||
463 | 48 | ########################################################################### | ||
464 | 49 | |||
465 | 50 | my $terminated= 0; | ||
466 | 51 | |||
467 | 52 | # Protect against being killed in the middle | ||
468 | 53 | # of child creation, just set the terminated flag | ||
469 | 54 | # to make sure the child will be killed off | ||
470 | 55 | # when program is ready to do that | ||
471 | 56 | $SIG{TERM}= sub { message("!Got signal @_"); $terminated= 1; }; | ||
472 | 57 | $SIG{INT}= sub { message("!Got signal @_"); $terminated= 1; }; | ||
473 | 58 | |||
474 | 59 | my $parent_pid= getppid(); | ||
475 | 60 | |||
476 | 61 | my $found_double_dash= 0; | ||
477 | 62 | while (my $arg= shift(@ARGV)){ | ||
478 | 63 | |||
479 | 64 | if ($arg =~ /^--$/){ | ||
480 | 65 | $found_double_dash= 1; | ||
481 | 66 | last; | ||
482 | 67 | } | ||
483 | 68 | elsif ($arg =~ /^--verbose$/){ | ||
484 | 69 | $verbose= 1; | ||
485 | 70 | } | ||
486 | 71 | else { | ||
487 | 72 | die "Unknown option: $arg"; | ||
488 | 73 | } | ||
489 | 74 | } | ||
490 | 75 | |||
491 | 76 | my $path= shift(@ARGV); # Executable | ||
492 | 77 | |||
493 | 78 | die "usage:\n" . | ||
494 | 79 | " safe_process.pl [opts] -- <path> [<args> [...<args_n>]]" | ||
495 | 80 | unless defined $path || $found_double_dash; | ||
496 | 81 | |||
497 | 82 | |||
498 | 83 | message("started"); | ||
499 | 84 | #message("path: '$path'"); | ||
500 | 85 | message("parent: $parent_pid"); | ||
501 | 86 | |||
502 | 87 | # Start process to monitor | ||
503 | 88 | my $child_pid= | ||
504 | 89 | create_process( | ||
505 | 90 | path => $path, | ||
506 | 91 | args => \@ARGV, | ||
507 | 92 | setpgrp => 1, | ||
508 | 93 | ); | ||
509 | 94 | message("Started child $child_pid"); | ||
510 | 95 | |||
511 | 96 | eval { | ||
512 | 97 | sub handle_signal { | ||
513 | 98 | $terminated= 1; | ||
514 | 99 | message("Got signal @_"); | ||
515 | 100 | |||
516 | 101 | # Ignore all signals | ||
517 | 102 | foreach my $name (keys %SIG){ | ||
518 | 103 | $SIG{$name}= 'IGNORE'; | ||
519 | 104 | } | ||
520 | 105 | |||
521 | 106 | die "signaled\n"; | ||
522 | 107 | }; | ||
523 | 108 | local $SIG{TERM}= \&handle_signal; | ||
524 | 109 | local $SIG{INT}= \&handle_signal; | ||
525 | 110 | local $SIG{CHLD}= sub { | ||
526 | 111 | message("Got signal @_"); | ||
527 | 112 | kill('KILL', -$child_pid); | ||
528 | 113 | my $ret= waitpid($child_pid, 0); | ||
529 | 114 | if ($? & 127){ | ||
530 | 115 | exit(65); # Killed by signal | ||
531 | 116 | } | ||
532 | 117 | exit($? >> 8); | ||
533 | 118 | }; | ||
534 | 119 | |||
535 | 120 | # Monitoring loop | ||
536 | 121 | while(!$terminated) { | ||
537 | 122 | |||
538 | 123 | # Check if parent is still alive | ||
539 | 124 | if (kill(0, $parent_pid) < 1){ | ||
540 | 125 | message("Parent is not alive anymore"); | ||
541 | 126 | last; | ||
542 | 127 | } | ||
543 | 128 | |||
544 | 129 | # Wait for child to terminate but wakeup every | ||
545 | 130 | # second to also check that parent is still alive | ||
546 | 131 | my $ret_pid; | ||
547 | 132 | $ret_pid= waitpid($child_pid, &WNOHANG); | ||
548 | 133 | if ($ret_pid == $child_pid) { | ||
549 | 134 | # Process has exited, collect return status | ||
550 | 135 | my $ret_code= $? >> 8; | ||
551 | 136 | message("Child exit: $ret_code"); | ||
552 | 137 | # Exit with exit status of the child | ||
553 | 138 | exit ($ret_code); | ||
554 | 139 | } | ||
555 | 140 | sleep(1); | ||
556 | 141 | } | ||
557 | 142 | }; | ||
558 | 143 | if ( $@ ) { | ||
559 | 144 | # The monitoring loop should have been | ||
560 | 145 | # broken by handle_signal | ||
561 | 146 | warn "Unexpected: $@" unless ( $@ =~ /signaled/ ); | ||
562 | 147 | } | ||
563 | 148 | |||
564 | 149 | # Use negative pid in order to kill the whole | ||
565 | 150 | # process group | ||
566 | 151 | # | ||
567 | 152 | my $ret= kill('KILL', -$child_pid); | ||
568 | 153 | message("Killed child: $child_pid, ret: $ret"); | ||
569 | 154 | if ($ret > 0) { | ||
570 | 155 | message("Killed child: $child_pid"); | ||
571 | 156 | # Wait blocking for the child to return | ||
572 | 157 | my $ret_pid= waitpid($child_pid, 0); | ||
573 | 158 | if ($ret_pid != $child_pid){ | ||
574 | 159 | message("unexpected pid $ret_pid returned from waitpid($child_pid)"); | ||
575 | 160 | } | ||
576 | 161 | } | ||
577 | 162 | |||
578 | 163 | message("DONE!"); | ||
579 | 164 | exit (1); | ||
580 | 165 | |||
581 | 166 | |||
582 | 167 | 0 | ||
583 | === modified file 'Percona-Server/mysql-test/lib/mtr_cases.pm' | |||
584 | --- Percona-Server/mysql-test/lib/mtr_cases.pm 2013-01-17 22:50:22 +0000 | |||
585 | +++ Percona-Server/mysql-test/lib/mtr_cases.pm 2013-02-18 05:17:25 +0000 | |||
586 | @@ -963,18 +963,11 @@ | |||
587 | 963 | if ( $tinfo->{'ndb_test'} ) | 963 | if ( $tinfo->{'ndb_test'} ) |
588 | 964 | { | 964 | { |
589 | 965 | # This is a NDB test | 965 | # This is a NDB test |
602 | 966 | if ( $::opt_skip_ndbcluster == 2 ) | 966 | if ( $::ndbcluster_enabled == 0) |
603 | 967 | { | 967 | { |
604 | 968 | # Ndb is not supported, skip it | 968 | # ndbcluster is disabled |
605 | 969 | $tinfo->{'skip'}= 1; | 969 | $tinfo->{'skip'}= 1; |
606 | 970 | $tinfo->{'comment'}= "No ndbcluster support or ndb tests not enabled"; | 970 | $tinfo->{'comment'}= "ndbcluster disabled"; |
595 | 971 | return $tinfo; | ||
596 | 972 | } | ||
597 | 973 | elsif ( $::opt_skip_ndbcluster ) | ||
598 | 974 | { | ||
599 | 975 | # All ndb test's should be skipped | ||
600 | 976 | $tinfo->{'skip'}= 1; | ||
601 | 977 | $tinfo->{'comment'}= "No ndbcluster tests(--skip-ndbcluster)"; | ||
607 | 978 | return $tinfo; | 971 | return $tinfo; |
608 | 979 | } | 972 | } |
609 | 980 | } | 973 | } |
610 | 981 | 974 | ||
611 | === modified file 'Percona-Server/mysql-test/lib/mtr_report.pm' | |||
612 | --- Percona-Server/mysql-test/lib/mtr_report.pm 2012-05-10 07:49:14 +0000 | |||
613 | +++ Percona-Server/mysql-test/lib/mtr_report.pm 2013-02-18 05:17:25 +0000 | |||
614 | @@ -28,7 +28,7 @@ | |||
615 | 28 | mtr_verbose_restart mtr_report_test_passed | 28 | mtr_verbose_restart mtr_report_test_passed |
616 | 29 | mtr_report_test_skipped mtr_print | 29 | mtr_report_test_skipped mtr_print |
617 | 30 | mtr_report_test_subunit | 30 | mtr_report_test_subunit |
619 | 31 | mtr_report_test); | 31 | mtr_report_test isotime); |
620 | 32 | 32 | ||
621 | 33 | use mtr_match; | 33 | use mtr_match; |
622 | 34 | use Subunit; | 34 | use Subunit; |
623 | @@ -111,6 +111,8 @@ | |||
624 | 111 | $tinfo->{'result'}= 'MTR_RES_PASSED'; | 111 | $tinfo->{'result'}= 'MTR_RES_PASSED'; |
625 | 112 | 112 | ||
626 | 113 | mtr_report_test($tinfo); | 113 | mtr_report_test($tinfo); |
627 | 114 | |||
628 | 115 | resfile_global("endtime ", isotime (time)); | ||
629 | 114 | } | 116 | } |
630 | 115 | 117 | ||
631 | 116 | 118 | ||
632 | @@ -598,4 +600,12 @@ | |||
633 | 598 | } | 600 | } |
634 | 599 | 601 | ||
635 | 600 | 602 | ||
636 | 603 | # Used by --result-file for for formatting times | ||
637 | 604 | |||
638 | 605 | sub isotime($) { | ||
639 | 606 | my ($sec,$min,$hr,$day,$mon,$yr)= gmtime($_[0]); | ||
640 | 607 | return sprintf "%d-%02d-%02dT%02d:%02d:%02dZ", | ||
641 | 608 | $yr+1900, $mon+1, $day, $hr, $min, $sec; | ||
642 | 609 | } | ||
643 | 610 | |||
644 | 601 | 1; | 611 | 1; |
645 | 602 | 612 | ||
646 | === modified file 'Percona-Server/mysql-test/mysql-test-run.pl' | |||
647 | --- Percona-Server/mysql-test/mysql-test-run.pl 2013-01-09 23:45:25 +0000 | |||
648 | +++ Percona-Server/mysql-test/mysql-test-run.pl 2013-02-18 05:17:25 +0000 | |||
649 | @@ -312,8 +312,9 @@ | |||
650 | 312 | 312 | ||
651 | 313 | our $opt_warnings= 1; | 313 | our $opt_warnings= 1; |
652 | 314 | 314 | ||
655 | 315 | our $opt_include_ndbcluster= 0; | 315 | our $ndbcluster_enabled= 0; |
656 | 316 | our $opt_skip_ndbcluster= 1; | 316 | my $opt_include_ndbcluster= 0; |
657 | 317 | my $opt_skip_ndbcluster= 0; | ||
658 | 317 | 318 | ||
659 | 318 | my $exe_ndbd; | 319 | my $exe_ndbd; |
660 | 319 | my $exe_ndbmtd; | 320 | my $exe_ndbmtd; |
661 | @@ -336,14 +337,6 @@ | |||
662 | 336 | select(STDOUT); | 337 | select(STDOUT); |
663 | 337 | $| = 1; # Automatically flush STDOUT | 338 | $| = 1; # Automatically flush STDOUT |
664 | 338 | 339 | ||
665 | 339 | # Used by --result-file for for formatting times | ||
666 | 340 | |||
667 | 341 | sub isotime($) { | ||
668 | 342 | my ($sec,$min,$hr,$day,$mon,$yr)= gmtime($_[0]); | ||
669 | 343 | return sprintf "%d-%02d-%02dT%02d:%02d:%02dZ", | ||
670 | 344 | $yr+1900, $mon+1, $day, $hr, $min, $sec; | ||
671 | 345 | } | ||
672 | 346 | |||
673 | 347 | main(); | 340 | main(); |
674 | 348 | 341 | ||
675 | 349 | 342 | ||
676 | @@ -367,26 +360,6 @@ | |||
677 | 367 | 360 | ||
678 | 368 | if (!$opt_suites) { | 361 | if (!$opt_suites) { |
679 | 369 | $opt_suites= $DEFAULT_SUITES; | 362 | $opt_suites= $DEFAULT_SUITES; |
680 | 370 | |||
681 | 371 | # Check for any extra suites to enable based on the path name | ||
682 | 372 | my %extra_suites= | ||
683 | 373 | ( | ||
684 | 374 | "mysql-5.1-new-ndb" => "ndb_team", | ||
685 | 375 | "mysql-5.1-new-ndb-merge" => "ndb_team", | ||
686 | 376 | "mysql-5.1-telco-6.2" => "ndb_team", | ||
687 | 377 | "mysql-5.1-telco-6.2-merge" => "ndb_team", | ||
688 | 378 | "mysql-5.1-telco-6.3" => "ndb_team", | ||
689 | 379 | "mysql-6.0-ndb" => "ndb_team", | ||
690 | 380 | ); | ||
691 | 381 | |||
692 | 382 | foreach my $dir ( reverse splitdir($basedir) ) { | ||
693 | 383 | my $extra_suite= $extra_suites{$dir}; | ||
694 | 384 | if (defined $extra_suite) { | ||
695 | 385 | mtr_report("Found extra suite: $extra_suite"); | ||
696 | 386 | $opt_suites= "$extra_suite,$opt_suites"; | ||
697 | 387 | last; | ||
698 | 388 | } | ||
699 | 389 | } | ||
700 | 390 | } | 363 | } |
701 | 391 | mtr_report("Using suites: $opt_suites") unless @opt_cases; | 364 | mtr_report("Using suites: $opt_suites") unless @opt_cases; |
702 | 392 | 365 | ||
703 | @@ -410,7 +383,6 @@ | |||
704 | 410 | unshift(@$tests, $tinfo); | 383 | unshift(@$tests, $tinfo); |
705 | 411 | } | 384 | } |
706 | 412 | 385 | ||
707 | 413 | print "vardir: $opt_vardir\n"; | ||
708 | 414 | initialize_servers(); | 386 | initialize_servers(); |
709 | 415 | 387 | ||
710 | 416 | ####################################################################### | 388 | ####################################################################### |
711 | @@ -727,6 +699,10 @@ | |||
712 | 727 | else { | 699 | else { |
713 | 728 | mtr_report("\nRetrying test $tname, ". | 700 | mtr_report("\nRetrying test $tname, ". |
714 | 729 | "attempt($retries/$opt_retry)...\n"); | 701 | "attempt($retries/$opt_retry)...\n"); |
715 | 702 | #saving the log file as filename.failed in case of retry | ||
716 | 703 | my $worker_logdir= $result->{savedir}; | ||
717 | 704 | my $log_file_name=dirname($worker_logdir)."/".$result->{shortname}.".log"; | ||
718 | 705 | rename $log_file_name,$log_file_name.".failed"; | ||
719 | 730 | delete($result->{result}); | 706 | delete($result->{result}); |
720 | 731 | $result->{retries}= $retries+1; | 707 | $result->{retries}= $retries+1; |
721 | 732 | $result->write_test($sock, 'TESTCASE'); | 708 | $result->write_test($sock, 'TESTCASE'); |
722 | @@ -1073,7 +1049,7 @@ | |||
723 | 1073 | # Control what test suites or cases to run | 1049 | # Control what test suites or cases to run |
724 | 1074 | 'force' => \$opt_force, | 1050 | 'force' => \$opt_force, |
725 | 1075 | 'with-ndbcluster-only' => \&collect_option, | 1051 | 'with-ndbcluster-only' => \&collect_option, |
727 | 1076 | 'include-ndbcluster' => \$opt_include_ndbcluster, | 1052 | 'ndb|include-ndbcluster' => \$opt_include_ndbcluster, |
728 | 1077 | 'skip-ndbcluster|skip-ndb' => \$opt_skip_ndbcluster, | 1053 | 'skip-ndbcluster|skip-ndb' => \$opt_skip_ndbcluster, |
729 | 1078 | 'suite|suites=s' => \$opt_suites, | 1054 | 'suite|suites=s' => \$opt_suites, |
730 | 1079 | 'skip-rpl' => \&collect_option, | 1055 | 'skip-rpl' => \&collect_option, |
731 | @@ -1523,7 +1499,6 @@ | |||
732 | 1523 | } | 1499 | } |
733 | 1524 | $ENV{'PATH'}= "$ENV{'PATH'}".$separator.$lib_mysqld; | 1500 | $ENV{'PATH'}= "$ENV{'PATH'}".$separator.$lib_mysqld; |
734 | 1525 | } | 1501 | } |
735 | 1526 | $opt_skip_ndbcluster= 1; # Turn off use of NDB cluster | ||
736 | 1527 | $opt_skip_ssl= 1; # Turn off use of SSL | 1502 | $opt_skip_ssl= 1; # Turn off use of SSL |
737 | 1528 | 1503 | ||
738 | 1529 | # Turn off use of bin log | 1504 | # Turn off use of bin log |
739 | @@ -2010,7 +1985,7 @@ | |||
740 | 2010 | 1985 | ||
741 | 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"); |
742 | 2012 | 1987 | ||
744 | 2013 | if ( ! $opt_skip_ndbcluster ) | 1988 | if ( $ndbcluster_enabled ) |
745 | 2014 | { | 1989 | { |
746 | 2015 | # Look for single threaded NDB | 1990 | # Look for single threaded NDB |
747 | 2016 | $exe_ndbd= | 1991 | $exe_ndbd= |
748 | @@ -2281,7 +2256,7 @@ | |||
749 | 2281 | # -------------------------------------------------------------------------- | 2256 | # -------------------------------------------------------------------------- |
750 | 2282 | # Add the path where libndbclient can be found | 2257 | # Add the path where libndbclient can be found |
751 | 2283 | # -------------------------------------------------------------------------- | 2258 | # -------------------------------------------------------------------------- |
753 | 2284 | if ( !$opt_skip_ndbcluster ) | 2259 | if ( $ndbcluster_enabled ) |
754 | 2285 | { | 2260 | { |
755 | 2286 | push(@ld_library_paths, "$basedir/storage/ndb/src/.libs"); | 2261 | push(@ld_library_paths, "$basedir/storage/ndb/src/.libs"); |
756 | 2287 | } | 2262 | } |
757 | @@ -2369,7 +2344,7 @@ | |||
758 | 2369 | # ---------------------------------------------------- | 2344 | # ---------------------------------------------------- |
759 | 2370 | # Setup env for NDB | 2345 | # Setup env for NDB |
760 | 2371 | # ---------------------------------------------------- | 2346 | # ---------------------------------------------------- |
762 | 2372 | if ( ! $opt_skip_ndbcluster ) | 2347 | if ( $ndbcluster_enabled ) |
763 | 2373 | { | 2348 | { |
764 | 2374 | $ENV{'NDB_MGM'}= | 2349 | $ENV{'NDB_MGM'}= |
765 | 2375 | my_find_bin($bindir, | 2350 | my_find_bin($bindir, |
766 | @@ -2764,37 +2739,87 @@ | |||
767 | 2764 | sub check_ndbcluster_support ($) { | 2739 | sub check_ndbcluster_support ($) { |
768 | 2765 | my $mysqld_variables= shift; | 2740 | my $mysqld_variables= shift; |
769 | 2766 | 2741 | ||
770 | 2742 | my $ndbcluster_supported = 0; | ||
771 | 2743 | if ($mysqld_variables{'ndb-connectstring'}) | ||
772 | 2744 | { | ||
773 | 2745 | $ndbcluster_supported = 1; | ||
774 | 2746 | } | ||
775 | 2747 | |||
776 | 2748 | if ($opt_skip_ndbcluster && $opt_include_ndbcluster) | ||
777 | 2749 | { | ||
778 | 2750 | # User is ambivalent. Theoretically the arg which was | ||
779 | 2751 | # given last on command line should win, but that order is | ||
780 | 2752 | # unknown at this time. | ||
781 | 2753 | mtr_error("Ambigous command, both --include-ndbcluster " . | ||
782 | 2754 | " and --skip-ndbcluster was specified"); | ||
783 | 2755 | } | ||
784 | 2756 | |||
785 | 2767 | # Check if this is MySQL Cluster, ie. mysql version string ends | 2757 | # Check if this is MySQL Cluster, ie. mysql version string ends |
786 | 2768 | # with -ndb-Y.Y.Y[-status] | 2758 | # with -ndb-Y.Y.Y[-status] |
787 | 2769 | if ( defined $mysql_version_extra && | 2759 | if ( defined $mysql_version_extra && |
816 | 2770 | $mysql_version_extra =~ /^-ndb-/ ) | 2760 | $mysql_version_extra =~ /-ndb-([0-9]*)\.([0-9]*)\.([0-9]*)/ ) |
817 | 2771 | { | 2761 | { |
818 | 2772 | mtr_report(" - MySQL Cluster"); | 2762 | # MySQL Cluster tree |
819 | 2773 | # Enable ndb engine and add more test suites | 2763 | mtr_report(" - MySQL Cluster detected"); |
820 | 2774 | $opt_include_ndbcluster = 1; | 2764 | |
821 | 2775 | $DEFAULT_SUITES.=",ndb"; | 2765 | if ($opt_skip_ndbcluster) |
822 | 2776 | } | 2766 | { |
823 | 2777 | 2767 | mtr_report(" - skipping ndbcluster(--skip-ndbcluster)"); | |
824 | 2778 | if ($opt_include_ndbcluster) | 2768 | return; |
825 | 2779 | { | 2769 | } |
826 | 2780 | $opt_skip_ndbcluster= 0; | 2770 | |
827 | 2781 | } | 2771 | if (!$ndbcluster_supported) |
828 | 2782 | 2772 | { | |
829 | 2783 | if ($opt_skip_ndbcluster) | 2773 | # MySQL Cluster tree, but mysqld was not compiled with |
830 | 2784 | { | 2774 | # ndbcluster -> fail unless --skip-ndbcluster was used |
831 | 2785 | mtr_report(" - skipping ndbcluster"); | 2775 | mtr_error("This is MySQL Cluster but mysqld does not " . |
832 | 2786 | return; | 2776 | "support ndbcluster. Use --skip-ndbcluster to " . |
833 | 2787 | } | 2777 | "force mtr to run without it."); |
834 | 2788 | 2778 | } | |
835 | 2789 | if ( ! $mysqld_variables{'ndb-connectstring'} ) | 2779 | |
836 | 2790 | { | 2780 | # mysqld was compiled with ndbcluster -> auto enable |
837 | 2791 | mtr_report(" - skipping ndbcluster, mysqld not compiled with ndbcluster"); | 2781 | } |
838 | 2792 | $opt_skip_ndbcluster= 2; | 2782 | else |
839 | 2793 | return; | 2783 | { |
840 | 2794 | } | 2784 | # Not a MySQL Cluster tree |
841 | 2795 | 2785 | if (!$ndbcluster_supported) | |
842 | 2796 | mtr_report(" - using ndbcluster when necessary, mysqld supports it"); | 2786 | { |
843 | 2797 | 2787 | if ($opt_include_ndbcluster) | |
844 | 2788 | { | ||
845 | 2789 | mtr_error("Could not detect ndbcluster support ". | ||
846 | 2790 | "requested with --include-ndbcluster"); | ||
847 | 2791 | } | ||
848 | 2792 | |||
849 | 2793 | # Silently skip, mysqld was compiled without ndbcluster | ||
850 | 2794 | # which is the default case | ||
851 | 2795 | return; | ||
852 | 2796 | } | ||
853 | 2797 | |||
854 | 2798 | if ($opt_skip_ndbcluster) | ||
855 | 2799 | { | ||
856 | 2800 | # Compiled with ndbcluster but ndbcluster skipped | ||
857 | 2801 | mtr_report(" - skipping ndbcluster(--skip-ndbcluster)"); | ||
858 | 2802 | return; | ||
859 | 2803 | } | ||
860 | 2804 | |||
861 | 2805 | |||
862 | 2806 | # Not a MySQL Cluster tree, enable ndbcluster | ||
863 | 2807 | # if --include-ndbcluster was used | ||
864 | 2808 | if ($opt_include_ndbcluster) | ||
865 | 2809 | { | ||
866 | 2810 | # enable ndbcluster | ||
867 | 2811 | } | ||
868 | 2812 | else | ||
869 | 2813 | { | ||
870 | 2814 | mtr_report(" - skipping ndbcluster(disabled by default)"); | ||
871 | 2815 | return; | ||
872 | 2816 | } | ||
873 | 2817 | } | ||
874 | 2818 | |||
875 | 2819 | mtr_report(" - enabling ndbcluster"); | ||
876 | 2820 | $ndbcluster_enabled= 1; | ||
877 | 2821 | # Add MySQL Cluster test suites | ||
878 | 2822 | $DEFAULT_SUITES.=",ndb,ndb_binlog,rpl_ndb,ndb_rpl,ndb_memcache"; | ||
879 | 2798 | return; | 2823 | return; |
880 | 2799 | } | 2824 | } |
881 | 2800 | 2825 | ||
882 | 2801 | 2826 | ||
883 | === modified file 'Percona-Server/mysql-test/r/ddl_i18n_koi8r.result' | |||
884 | --- Percona-Server/mysql-test/r/ddl_i18n_koi8r.result 2011-02-22 14:02:49 +0000 | |||
885 | +++ Percona-Server/mysql-test/r/ddl_i18n_koi8r.result 2013-02-18 05:17:25 +0000 | |||
886 | @@ -734,7 +734,7 @@ | |||
887 | 734 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 734 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
888 | 735 | /*!50003 SET sql_mode = '' */ ; | 735 | /*!50003 SET sql_mode = '' */ ; |
889 | 736 | DELIMITER ;; | 736 | DELIMITER ;; |
891 | 737 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p1`( | 737 | CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`( |
892 | 738 | INOUT ÐÁÒÁÍ1 CHAR(10), | 738 | INOUT ÐÁÒÁÍ1 CHAR(10), |
893 | 739 | OUT ÐÁÒÁÍ2 CHAR(10)) | 739 | OUT ÐÁÒÁÍ2 CHAR(10)) |
894 | 740 | BEGIN | 740 | BEGIN |
895 | @@ -751,7 +751,7 @@ | |||
896 | 751 | @@character_set_client AS c8; | 751 | @@character_set_client AS c8; |
897 | 752 | SET ÐÁÒÁÍ1 = 'a'; | 752 | SET ÐÁÒÁÍ1 = 'a'; |
898 | 753 | SET ÐÁÒÁÍ2 = 'b'; | 753 | SET ÐÁÒÁÍ2 = 'b'; |
900 | 754 | END */;; | 754 | END ;; |
901 | 755 | DELIMITER ; | 755 | DELIMITER ; |
902 | 756 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 756 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
903 | 757 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 757 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
904 | @@ -768,7 +768,7 @@ | |||
905 | 768 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 768 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
906 | 769 | /*!50003 SET sql_mode = '' */ ; | 769 | /*!50003 SET sql_mode = '' */ ; |
907 | 770 | DELIMITER ;; | 770 | DELIMITER ;; |
909 | 771 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p2`( | 771 | CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`( |
910 | 772 | INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8, | 772 | INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8, |
911 | 773 | OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8) | 773 | OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8) |
912 | 774 | BEGIN | 774 | BEGIN |
913 | @@ -785,7 +785,7 @@ | |||
914 | 785 | @@character_set_client AS c8; | 785 | @@character_set_client AS c8; |
915 | 786 | SET ÐÁÒÁÍ1 = 'a'; | 786 | SET ÐÁÒÁÍ1 = 'a'; |
916 | 787 | SET ÐÁÒÁÍ2 = 'b'; | 787 | SET ÐÁÒÁÍ2 = 'b'; |
918 | 788 | END */;; | 788 | END ;; |
919 | 789 | DELIMITER ; | 789 | DELIMITER ; |
920 | 790 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 790 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
921 | 791 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 791 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
922 | @@ -810,7 +810,7 @@ | |||
923 | 810 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 810 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
924 | 811 | /*!50003 SET sql_mode = '' */ ; | 811 | /*!50003 SET sql_mode = '' */ ; |
925 | 812 | DELIMITER ;; | 812 | DELIMITER ;; |
927 | 813 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p3`( | 813 | CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`( |
928 | 814 | INOUT ÐÁÒÁÍ1 CHAR(10), | 814 | INOUT ÐÁÒÁÍ1 CHAR(10), |
929 | 815 | OUT ÐÁÒÁÍ2 CHAR(10)) | 815 | OUT ÐÁÒÁÍ2 CHAR(10)) |
930 | 816 | BEGIN | 816 | BEGIN |
931 | @@ -827,7 +827,7 @@ | |||
932 | 827 | @@character_set_client AS c8; | 827 | @@character_set_client AS c8; |
933 | 828 | SET ÐÁÒÁÍ1 = 'a'; | 828 | SET ÐÁÒÁÍ1 = 'a'; |
934 | 829 | SET ÐÁÒÁÍ2 = 'b'; | 829 | SET ÐÁÒÁÍ2 = 'b'; |
936 | 830 | END */;; | 830 | END ;; |
937 | 831 | DELIMITER ; | 831 | DELIMITER ; |
938 | 832 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 832 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
939 | 833 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 833 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
940 | @@ -844,7 +844,7 @@ | |||
941 | 844 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 844 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
942 | 845 | /*!50003 SET sql_mode = '' */ ; | 845 | /*!50003 SET sql_mode = '' */ ; |
943 | 846 | DELIMITER ;; | 846 | DELIMITER ;; |
945 | 847 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p4`( | 847 | CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`( |
946 | 848 | INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8, | 848 | INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8, |
947 | 849 | OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8) | 849 | OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8) |
948 | 850 | BEGIN | 850 | BEGIN |
949 | @@ -861,7 +861,7 @@ | |||
950 | 861 | @@character_set_client AS c8; | 861 | @@character_set_client AS c8; |
951 | 862 | SET ÐÁÒÁÍ1 = 'a'; | 862 | SET ÐÁÒÁÍ1 = 'a'; |
952 | 863 | SET ÐÁÒÁÍ2 = 'b'; | 863 | SET ÐÁÒÁÍ2 = 'b'; |
954 | 864 | END */;; | 864 | END ;; |
955 | 865 | DELIMITER ; | 865 | DELIMITER ; |
956 | 866 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 866 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
957 | 867 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 867 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
958 | 868 | 868 | ||
959 | === modified file 'Percona-Server/mysql-test/r/ddl_i18n_utf8.result' | |||
960 | --- Percona-Server/mysql-test/r/ddl_i18n_utf8.result 2011-02-22 14:02:49 +0000 | |||
961 | +++ Percona-Server/mysql-test/r/ddl_i18n_utf8.result 2013-02-18 05:17:25 +0000 | |||
962 | @@ -734,7 +734,7 @@ | |||
963 | 734 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 734 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
964 | 735 | /*!50003 SET sql_mode = '' */ ; | 735 | /*!50003 SET sql_mode = '' */ ; |
965 | 736 | DELIMITER ;; | 736 | DELIMITER ;; |
967 | 737 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p1`( | 737 | CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`( |
968 | 738 | INOUT парам1 CHAR(10), | 738 | INOUT парам1 CHAR(10), |
969 | 739 | OUT парам2 CHAR(10)) | 739 | OUT парам2 CHAR(10)) |
970 | 740 | BEGIN | 740 | BEGIN |
971 | @@ -751,7 +751,7 @@ | |||
972 | 751 | @@character_set_client AS c8; | 751 | @@character_set_client AS c8; |
973 | 752 | SET парам1 = 'a'; | 752 | SET парам1 = 'a'; |
974 | 753 | SET парам2 = 'b'; | 753 | SET парам2 = 'b'; |
976 | 754 | END */;; | 754 | END ;; |
977 | 755 | DELIMITER ; | 755 | DELIMITER ; |
978 | 756 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 756 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
979 | 757 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 757 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
980 | @@ -768,7 +768,7 @@ | |||
981 | 768 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 768 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
982 | 769 | /*!50003 SET sql_mode = '' */ ; | 769 | /*!50003 SET sql_mode = '' */ ; |
983 | 770 | DELIMITER ;; | 770 | DELIMITER ;; |
985 | 771 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p2`( | 771 | CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`( |
986 | 772 | INOUT парам1 CHAR(10) CHARACTER SET utf8, | 772 | INOUT парам1 CHAR(10) CHARACTER SET utf8, |
987 | 773 | OUT парам2 CHAR(10) CHARACTER SET utf8) | 773 | OUT парам2 CHAR(10) CHARACTER SET utf8) |
988 | 774 | BEGIN | 774 | BEGIN |
989 | @@ -785,7 +785,7 @@ | |||
990 | 785 | @@character_set_client AS c8; | 785 | @@character_set_client AS c8; |
991 | 786 | SET парам1 = 'a'; | 786 | SET парам1 = 'a'; |
992 | 787 | SET парам2 = 'b'; | 787 | SET парам2 = 'b'; |
994 | 788 | END */;; | 788 | END ;; |
995 | 789 | DELIMITER ; | 789 | DELIMITER ; |
996 | 790 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 790 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
997 | 791 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 791 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
998 | @@ -810,7 +810,7 @@ | |||
999 | 810 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 810 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
1000 | 811 | /*!50003 SET sql_mode = '' */ ; | 811 | /*!50003 SET sql_mode = '' */ ; |
1001 | 812 | DELIMITER ;; | 812 | DELIMITER ;; |
1003 | 813 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p3`( | 813 | CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`( |
1004 | 814 | INOUT парам1 CHAR(10), | 814 | INOUT парам1 CHAR(10), |
1005 | 815 | OUT парам2 CHAR(10)) | 815 | OUT парам2 CHAR(10)) |
1006 | 816 | BEGIN | 816 | BEGIN |
1007 | @@ -827,7 +827,7 @@ | |||
1008 | 827 | @@character_set_client AS c8; | 827 | @@character_set_client AS c8; |
1009 | 828 | SET парам1 = 'a'; | 828 | SET парам1 = 'a'; |
1010 | 829 | SET парам2 = 'b'; | 829 | SET парам2 = 'b'; |
1012 | 830 | END */;; | 830 | END ;; |
1013 | 831 | DELIMITER ; | 831 | DELIMITER ; |
1014 | 832 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 832 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
1015 | 833 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 833 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
1016 | @@ -844,7 +844,7 @@ | |||
1017 | 844 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 844 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
1018 | 845 | /*!50003 SET sql_mode = '' */ ; | 845 | /*!50003 SET sql_mode = '' */ ; |
1019 | 846 | DELIMITER ;; | 846 | DELIMITER ;; |
1021 | 847 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p4`( | 847 | CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`( |
1022 | 848 | INOUT парам1 CHAR(10) CHARACTER SET utf8, | 848 | INOUT парам1 CHAR(10) CHARACTER SET utf8, |
1023 | 849 | OUT парам2 CHAR(10) CHARACTER SET utf8) | 849 | OUT парам2 CHAR(10) CHARACTER SET utf8) |
1024 | 850 | BEGIN | 850 | BEGIN |
1025 | @@ -861,7 +861,7 @@ | |||
1026 | 861 | @@character_set_client AS c8; | 861 | @@character_set_client AS c8; |
1027 | 862 | SET парам1 = 'a'; | 862 | SET парам1 = 'a'; |
1028 | 863 | SET парам2 = 'b'; | 863 | SET парам2 = 'b'; |
1030 | 864 | END */;; | 864 | END ;; |
1031 | 865 | DELIMITER ; | 865 | DELIMITER ; |
1032 | 866 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 866 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
1033 | 867 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 867 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
1034 | 868 | 868 | ||
1035 | === modified file 'Percona-Server/mysql-test/r/group_min_max_innodb.result' | |||
1036 | --- Percona-Server/mysql-test/r/group_min_max_innodb.result 2011-10-19 12:07:14 +0000 | |||
1037 | +++ Percona-Server/mysql-test/r/group_min_max_innodb.result 2013-02-18 05:17:25 +0000 | |||
1038 | @@ -70,7 +70,7 @@ | |||
1039 | 70 | 1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary | 70 | 1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary |
1040 | 71 | explain select distinct f1, f2 from t1; | 71 | explain select distinct f1, f2 from t1; |
1041 | 72 | id select_type table type possible_keys key key_len ref rows Extra | 72 | id select_type table type possible_keys key key_len ref rows Extra |
1043 | 73 | 1 SIMPLE t1 range NULL PRIMARY 5 NULL 3 Using index for group-by; Using temporary | 73 | 1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index |
1044 | 74 | drop table t1; | 74 | drop table t1; |
1045 | 75 | create table t1(pk int primary key) engine=innodb; | 75 | create table t1(pk int primary key) engine=innodb; |
1046 | 76 | create view v1 as select pk from t1 where pk < 20; | 76 | create view v1 as select pk from t1 where pk < 20; |
1047 | 77 | 77 | ||
1048 | === modified file 'Percona-Server/mysql-test/r/mysqlbinlog.result' | |||
1049 | --- Percona-Server/mysql-test/r/mysqlbinlog.result 2013-01-09 23:45:25 +0000 | |||
1050 | +++ Percona-Server/mysql-test/r/mysqlbinlog.result 2013-02-18 05:17:25 +0000 | |||
1051 | @@ -14,6 +14,7 @@ | |||
1052 | 14 | flush logs; | 14 | flush logs; |
1053 | 15 | 15 | ||
1054 | 16 | --- Local -- | 16 | --- Local -- |
1055 | 17 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1056 | 17 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 18 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1057 | 18 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 19 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1058 | 19 | DELIMITER /*!*/; | 20 | DELIMITER /*!*/; |
1059 | @@ -95,8 +96,10 @@ | |||
1060 | 95 | # End of log file | 96 | # End of log file |
1061 | 96 | ROLLBACK /* added by mysqlbinlog */; | 97 | ROLLBACK /* added by mysqlbinlog */; |
1062 | 97 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 98 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1063 | 99 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1064 | 98 | 100 | ||
1065 | 99 | --- Broken LOAD DATA -- | 101 | --- Broken LOAD DATA -- |
1066 | 102 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1067 | 100 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 103 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1068 | 101 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 104 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1069 | 102 | DELIMITER /*!*/; | 105 | DELIMITER /*!*/; |
1070 | @@ -131,8 +134,10 @@ | |||
1071 | 131 | # End of log file | 134 | # End of log file |
1072 | 132 | ROLLBACK /* added by mysqlbinlog */; | 135 | ROLLBACK /* added by mysqlbinlog */; |
1073 | 133 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 136 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1074 | 137 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1075 | 134 | 138 | ||
1076 | 135 | --- --database -- | 139 | --- --database -- |
1077 | 140 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1078 | 136 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 141 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1079 | 137 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 142 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1080 | 138 | DELIMITER /*!*/; | 143 | DELIMITER /*!*/; |
1081 | @@ -186,8 +191,10 @@ | |||
1082 | 186 | # End of log file | 191 | # End of log file |
1083 | 187 | ROLLBACK /* added by mysqlbinlog */; | 192 | ROLLBACK /* added by mysqlbinlog */; |
1084 | 188 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 193 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1085 | 194 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1086 | 189 | 195 | ||
1087 | 190 | --- --start-position -- | 196 | --- --start-position -- |
1088 | 197 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1089 | 191 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 198 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1090 | 192 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 199 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1091 | 193 | DELIMITER /*!*/; | 200 | DELIMITER /*!*/; |
1092 | @@ -213,8 +220,10 @@ | |||
1093 | 213 | # End of log file | 220 | # End of log file |
1094 | 214 | ROLLBACK /* added by mysqlbinlog */; | 221 | ROLLBACK /* added by mysqlbinlog */; |
1095 | 215 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 222 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1096 | 223 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1097 | 216 | 224 | ||
1098 | 217 | --- Remote -- | 225 | --- Remote -- |
1099 | 226 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1100 | 218 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 227 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1101 | 219 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 228 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1102 | 220 | DELIMITER /*!*/; | 229 | DELIMITER /*!*/; |
1103 | @@ -296,8 +305,10 @@ | |||
1104 | 296 | # End of log file | 305 | # End of log file |
1105 | 297 | ROLLBACK /* added by mysqlbinlog */; | 306 | ROLLBACK /* added by mysqlbinlog */; |
1106 | 298 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 307 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1107 | 308 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1108 | 299 | 309 | ||
1109 | 300 | --- Broken LOAD DATA -- | 310 | --- Broken LOAD DATA -- |
1110 | 311 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1111 | 301 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 312 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1112 | 302 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 313 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1113 | 303 | DELIMITER /*!*/; | 314 | DELIMITER /*!*/; |
1114 | @@ -332,8 +343,10 @@ | |||
1115 | 332 | # End of log file | 343 | # End of log file |
1116 | 333 | ROLLBACK /* added by mysqlbinlog */; | 344 | ROLLBACK /* added by mysqlbinlog */; |
1117 | 334 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 345 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1118 | 346 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1119 | 335 | 347 | ||
1120 | 336 | --- --database -- | 348 | --- --database -- |
1121 | 349 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1122 | 337 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 350 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1123 | 338 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 351 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1124 | 339 | DELIMITER /*!*/; | 352 | DELIMITER /*!*/; |
1125 | @@ -387,8 +400,10 @@ | |||
1126 | 387 | # End of log file | 400 | # End of log file |
1127 | 388 | ROLLBACK /* added by mysqlbinlog */; | 401 | ROLLBACK /* added by mysqlbinlog */; |
1128 | 389 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 402 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1129 | 403 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1130 | 390 | 404 | ||
1131 | 391 | --- --start-position -- | 405 | --- --start-position -- |
1132 | 406 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1133 | 392 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 407 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1134 | 393 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 408 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1135 | 394 | DELIMITER /*!*/; | 409 | DELIMITER /*!*/; |
1136 | @@ -414,8 +429,10 @@ | |||
1137 | 414 | # End of log file | 429 | # End of log file |
1138 | 415 | ROLLBACK /* added by mysqlbinlog */; | 430 | ROLLBACK /* added by mysqlbinlog */; |
1139 | 416 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 431 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1140 | 432 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1141 | 417 | 433 | ||
1142 | 418 | --- reading stdin -- | 434 | --- reading stdin -- |
1143 | 435 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1144 | 419 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 436 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1145 | 420 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 437 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1146 | 421 | DELIMITER /*!*/; | 438 | DELIMITER /*!*/; |
1147 | @@ -435,6 +452,8 @@ | |||
1148 | 435 | # End of log file | 452 | # End of log file |
1149 | 436 | ROLLBACK /* added by mysqlbinlog */; | 453 | ROLLBACK /* added by mysqlbinlog */; |
1150 | 437 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 454 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1151 | 455 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1152 | 456 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1153 | 438 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 457 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1154 | 439 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 458 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1155 | 440 | DELIMITER /*!*/; | 459 | DELIMITER /*!*/; |
1156 | @@ -453,6 +472,7 @@ | |||
1157 | 453 | # End of log file | 472 | # End of log file |
1158 | 454 | ROLLBACK /* added by mysqlbinlog */; | 473 | ROLLBACK /* added by mysqlbinlog */; |
1159 | 455 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 474 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1160 | 475 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1161 | 456 | drop table t1,t2; | 476 | drop table t1,t2; |
1162 | 457 | flush logs; | 477 | flush logs; |
1163 | 458 | flush logs; | 478 | flush logs; |
1164 | @@ -495,6 +515,7 @@ | |||
1165 | 495 | drop procedure p1; | 515 | drop procedure p1; |
1166 | 496 | call p1(); | 516 | call p1(); |
1167 | 497 | ERROR 42000: PROCEDURE test.p1 does not exist | 517 | ERROR 42000: PROCEDURE test.p1 does not exist |
1168 | 518 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1169 | 498 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 519 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1170 | 499 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 520 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1171 | 500 | DELIMITER /*!*/; | 521 | DELIMITER /*!*/; |
1172 | @@ -517,6 +538,7 @@ | |||
1173 | 517 | # End of log file | 538 | # End of log file |
1174 | 518 | ROLLBACK /* added by mysqlbinlog */; | 539 | ROLLBACK /* added by mysqlbinlog */; |
1175 | 519 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 540 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1176 | 541 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1177 | 520 | call p1(); | 542 | call p1(); |
1178 | 521 | 1 | 543 | 1 |
1179 | 522 | 1 | 544 | 1 |
1180 | @@ -545,6 +567,7 @@ | |||
1181 | 545 | D0AA | 567 | D0AA |
1182 | 546 | drop table t1; | 568 | drop table t1; |
1183 | 547 | flush logs; | 569 | flush logs; |
1184 | 570 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1185 | 548 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 571 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1186 | 549 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 572 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1187 | 550 | DELIMITER /*!*/; | 573 | DELIMITER /*!*/; |
1188 | @@ -634,6 +657,7 @@ | |||
1189 | 634 | # End of log file | 657 | # End of log file |
1190 | 635 | ROLLBACK /* added by mysqlbinlog */; | 658 | ROLLBACK /* added by mysqlbinlog */; |
1191 | 636 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 659 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1192 | 660 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1193 | 637 | CREATE TABLE t1 (c1 CHAR(10)); | 661 | CREATE TABLE t1 (c1 CHAR(10)); |
1194 | 638 | FLUSH LOGS; | 662 | FLUSH LOGS; |
1195 | 639 | INSERT INTO t1 VALUES ('0123456789'); | 663 | INSERT INTO t1 VALUES ('0123456789'); |
1196 | @@ -721,6 +745,7 @@ | |||
1197 | 721 | FLUSH LOGS; | 745 | FLUSH LOGS; |
1198 | 722 | # | 746 | # |
1199 | 723 | # Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified exists | 747 | # Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified exists |
1200 | 748 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1201 | 724 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 749 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1202 | 725 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 750 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1203 | 726 | DELIMITER /*!*/; | 751 | DELIMITER /*!*/; |
1204 | @@ -772,8 +797,10 @@ | |||
1205 | 772 | # End of log file | 797 | # End of log file |
1206 | 773 | ROLLBACK /* added by mysqlbinlog */; | 798 | ROLLBACK /* added by mysqlbinlog */; |
1207 | 774 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 799 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1208 | 800 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1209 | 775 | # | 801 | # |
1210 | 776 | # Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified does not exist | 802 | # Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified does not exist |
1211 | 803 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1212 | 777 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 804 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1213 | 778 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 805 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1214 | 779 | DELIMITER /*!*/; | 806 | DELIMITER /*!*/; |
1215 | @@ -806,8 +833,10 @@ | |||
1216 | 806 | # End of log file | 833 | # End of log file |
1217 | 807 | ROLLBACK /* added by mysqlbinlog */; | 834 | ROLLBACK /* added by mysqlbinlog */; |
1218 | 808 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 835 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1219 | 836 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1220 | 809 | # | 837 | # |
1221 | 810 | # Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified exists | 838 | # Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified exists |
1222 | 839 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1223 | 811 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 840 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1224 | 812 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 841 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1225 | 813 | DELIMITER /*!*/; | 842 | DELIMITER /*!*/; |
1226 | @@ -849,8 +878,10 @@ | |||
1227 | 849 | # End of log file | 878 | # End of log file |
1228 | 850 | ROLLBACK /* added by mysqlbinlog */; | 879 | ROLLBACK /* added by mysqlbinlog */; |
1229 | 851 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 880 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1230 | 881 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1231 | 852 | # | 882 | # |
1232 | 853 | # Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified does not exist | 883 | # Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified does not exist |
1233 | 884 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1234 | 854 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 885 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1235 | 855 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 886 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1236 | 856 | DELIMITER /*!*/; | 887 | DELIMITER /*!*/; |
1237 | @@ -877,6 +908,7 @@ | |||
1238 | 877 | # End of log file | 908 | # End of log file |
1239 | 878 | ROLLBACK /* added by mysqlbinlog */; | 909 | ROLLBACK /* added by mysqlbinlog */; |
1240 | 879 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 910 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1241 | 911 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1242 | 880 | End of 5.0 tests | 912 | End of 5.0 tests |
1243 | 881 | End of 5.1 tests | 913 | End of 5.1 tests |
1244 | 882 | # Expect deprecation warning. | 914 | # Expect deprecation warning. |
1245 | 883 | 915 | ||
1246 | === modified file 'Percona-Server/mysql-test/r/mysqldump.result' | |||
1247 | --- Percona-Server/mysql-test/r/mysqldump.result 2012-11-28 05:09:57 +0000 | |||
1248 | +++ Percona-Server/mysql-test/r/mysqldump.result 2013-02-18 05:17:25 +0000 | |||
1249 | @@ -2706,8 +2706,8 @@ | |||
1250 | 2706 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 2706 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
1251 | 2707 | /*!50003 SET sql_mode = '' */ ; | 2707 | /*!50003 SET sql_mode = '' */ ; |
1252 | 2708 | DELIMITER ;; | 2708 | DELIMITER ;; |
1255 | 2709 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11) | 2709 | CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11) |
1256 | 2710 | RETURN a+b */;; | 2710 | RETURN a+b ;; |
1257 | 2711 | DELIMITER ; | 2711 | DELIMITER ; |
1258 | 2712 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 2712 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
1259 | 2713 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 2713 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
1260 | @@ -2723,11 +2723,11 @@ | |||
1261 | 2723 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 2723 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
1262 | 2724 | /*!50003 SET sql_mode = '' */ ; | 2724 | /*!50003 SET sql_mode = '' */ ; |
1263 | 2725 | DELIMITER ;; | 2725 | DELIMITER ;; |
1265 | 2726 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `bug9056_func2`(f1 char binary) RETURNS char(1) CHARSET latin1 | 2726 | CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func2`(f1 char binary) RETURNS char(1) CHARSET latin1 |
1266 | 2727 | begin | 2727 | begin |
1267 | 2728 | set f1= concat( 'hello', f1 ); | 2728 | set f1= concat( 'hello', f1 ); |
1268 | 2729 | return f1; | 2729 | return f1; |
1270 | 2730 | end */;; | 2730 | end ;; |
1271 | 2731 | DELIMITER ; | 2731 | DELIMITER ; |
1272 | 2732 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 2732 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
1273 | 2733 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 2733 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
1274 | @@ -2743,8 +2743,8 @@ | |||
1275 | 2743 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 2743 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
1276 | 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' */ ; |
1277 | 2745 | DELIMITER ;; | 2745 | DELIMITER ;; |
1280 | 2746 | /*!50003 CREATE*/ /*!50020 DEFINER="root"@"localhost"*/ /*!50003 PROCEDURE "a'b"() | 2746 | CREATE DEFINER="root"@"localhost" PROCEDURE "a'b"() |
1281 | 2747 | select 1 */;; | 2747 | select 1 ;; |
1282 | 2748 | DELIMITER ; | 2748 | DELIMITER ; |
1283 | 2749 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 2749 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
1284 | 2750 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 2750 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
1285 | @@ -2760,8 +2760,8 @@ | |||
1286 | 2760 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 2760 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
1287 | 2761 | /*!50003 SET sql_mode = '' */ ; | 2761 | /*!50003 SET sql_mode = '' */ ; |
1288 | 2762 | DELIMITER ;; | 2762 | DELIMITER ;; |
1291 | 2763 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT) | 2763 | CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT) |
1292 | 2764 | BEGIN SELECT a+b INTO c; end */;; | 2764 | BEGIN SELECT a+b INTO c; end ;; |
1293 | 2765 | DELIMITER ; | 2765 | DELIMITER ; |
1294 | 2766 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 2766 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
1295 | 2767 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 2767 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
1296 | @@ -2777,10 +2777,10 @@ | |||
1297 | 2777 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 2777 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
1298 | 2778 | /*!50003 SET sql_mode = '' */ ; | 2778 | /*!50003 SET sql_mode = '' */ ; |
1299 | 2779 | DELIMITER ;; | 2779 | DELIMITER ;; |
1301 | 2780 | /*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `bug9056_proc2`(OUT a INT) | 2780 | CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc2`(OUT a INT) |
1302 | 2781 | BEGIN | 2781 | BEGIN |
1303 | 2782 | select sum(id) from t1 into a; | 2782 | select sum(id) from t1 into a; |
1305 | 2783 | END */;; | 2783 | END ;; |
1306 | 2784 | DELIMITER ; | 2784 | DELIMITER ; |
1307 | 2785 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 2785 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
1308 | 2786 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 2786 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
1309 | @@ -3766,8 +3766,8 @@ | |||
1310 | 3766 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; | 3766 | /*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
1311 | 3767 | /*!50003 SET sql_mode = '' */ ; | 3767 | /*!50003 SET sql_mode = '' */ ; |
1312 | 3768 | DELIMITER ;; | 3768 | DELIMITER ;; |
1315 | 3769 | /*!50003 CREATE*/ /*!50020 DEFINER=`user1`@`%`*/ /*!50003 PROCEDURE `sp1`() | 3769 | CREATE DEFINER=`user1`@`%` PROCEDURE `sp1`() |
1316 | 3770 | select 'hello' */;; | 3770 | select 'hello' ;; |
1317 | 3771 | DELIMITER ; | 3771 | DELIMITER ; |
1318 | 3772 | /*!50003 SET sql_mode = @saved_sql_mode */ ; | 3772 | /*!50003 SET sql_mode = @saved_sql_mode */ ; |
1319 | 3773 | /*!50003 SET character_set_client = @saved_cs_client */ ; | 3773 | /*!50003 SET character_set_client = @saved_cs_client */ ; |
1320 | @@ -5115,9 +5115,82 @@ | |||
1321 | 5115 | # Note : In the following dump the transaction | 5115 | # Note : In the following dump the transaction |
1322 | 5116 | # should start only after the logs are | 5116 | # should start only after the logs are |
1323 | 5117 | # flushed, as 'flush logs' causes implicit | 5117 | # flushed, as 'flush logs' causes implicit |
1325 | 5118 | # commit starting 5.5. | 5118 | # commit starting 5.5.Also, as stderr is |
1326 | 5119 | # unbuffered, it is redirected to a different | ||
1327 | 5120 | # file to avoid diffs due to bad stdout/stderr | ||
1328 | 5121 | # order in the output. | ||
1329 | 5119 | 5122 | ||
1330 | 5120 | #### Dump starts here #### | 5123 | #### Dump starts here #### |
1331 | 5124 | -- | ||
1332 | 5125 | -- Host: localhost Database: b12809202_db | ||
1333 | 5126 | -- ------------------------------------------------------ | ||
1334 | 5127 | |||
1335 | 5128 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
1336 | 5129 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
1337 | 5130 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
1338 | 5131 | /*!40101 SET NAMES utf8 */; | ||
1339 | 5132 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
1340 | 5133 | /*!40103 SET TIME_ZONE='+00:00' */; | ||
1341 | 5134 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
1342 | 5135 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
1343 | 5136 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
1344 | 5137 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
1345 | 5138 | |||
1346 | 5139 | -- | ||
1347 | 5140 | -- Table structure for table `t1` | ||
1348 | 5141 | -- | ||
1349 | 5142 | |||
1350 | 5143 | DROP TABLE IF EXISTS `t1`; | ||
1351 | 5144 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
1352 | 5145 | /*!40101 SET character_set_client = utf8 */; | ||
1353 | 5146 | CREATE TABLE `t1` ( | ||
1354 | 5147 | `c1` int(11) DEFAULT NULL | ||
1355 | 5148 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
1356 | 5149 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
1357 | 5150 | |||
1358 | 5151 | -- | ||
1359 | 5152 | -- Dumping data for table `t1` | ||
1360 | 5153 | -- | ||
1361 | 5154 | |||
1362 | 5155 | LOCK TABLES `t1` WRITE; | ||
1363 | 5156 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | ||
1364 | 5157 | INSERT INTO `t1` VALUES (1),(2),(3); | ||
1365 | 5158 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | ||
1366 | 5159 | UNLOCK TABLES; | ||
1367 | 5160 | |||
1368 | 5161 | -- | ||
1369 | 5162 | -- Table structure for table `t2` | ||
1370 | 5163 | -- | ||
1371 | 5164 | |||
1372 | 5165 | DROP TABLE IF EXISTS `t2`; | ||
1373 | 5166 | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
1374 | 5167 | /*!40101 SET character_set_client = utf8 */; | ||
1375 | 5168 | CREATE TABLE `t2` ( | ||
1376 | 5169 | `c1` int(11) DEFAULT NULL | ||
1377 | 5170 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
1378 | 5171 | /*!40101 SET character_set_client = @saved_cs_client */; | ||
1379 | 5172 | |||
1380 | 5173 | -- | ||
1381 | 5174 | -- Dumping data for table `t2` | ||
1382 | 5175 | -- | ||
1383 | 5176 | |||
1384 | 5177 | LOCK TABLES `t2` WRITE; | ||
1385 | 5178 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | ||
1386 | 5179 | INSERT INTO `t2` VALUES (1),(2),(3); | ||
1387 | 5180 | /*!40000 ALTER TABLE `t2` ENABLE KEYS */; | ||
1388 | 5181 | UNLOCK TABLES; | ||
1389 | 5182 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
1390 | 5183 | |||
1391 | 5184 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
1392 | 5185 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
1393 | 5186 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
1394 | 5187 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
1395 | 5188 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
1396 | 5189 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
1397 | 5190 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
1398 | 5191 | |||
1399 | 5192 | -- Dump completed | ||
1400 | 5193 | ## stderr ## | ||
1401 | 5121 | -- Connecting to localhost... | 5194 | -- Connecting to localhost... |
1402 | 5122 | -- main : logs flushed successfully! | 5195 | -- main : logs flushed successfully! |
1403 | 5123 | -- Starting transaction... | 5196 | -- Starting transaction... |
1404 | 5124 | 5197 | ||
1405 | === modified file 'Percona-Server/mysql-test/r/percona_innodb_version.result' | |||
1406 | --- Percona-Server/mysql-test/r/percona_innodb_version.result 2012-04-18 23:26:42 +0000 | |||
1407 | +++ Percona-Server/mysql-test/r/percona_innodb_version.result 2013-02-18 05:17:25 +0000 | |||
1408 | @@ -1,3 +1,3 @@ | |||
1409 | 1 | SELECT @@innodb_version; | 1 | SELECT @@innodb_version; |
1410 | 2 | @@innodb_version | 2 | @@innodb_version |
1412 | 3 | 1.1.x-x.x | 3 | 5.5.x-x.x |
1413 | 4 | 4 | ||
1414 | === modified file 'Percona-Server/mysql-test/r/percona_server_variables_debug.result' | |||
1415 | --- Percona-Server/mysql-test/r/percona_server_variables_debug.result 2013-01-30 09:55:26 +0000 | |||
1416 | +++ Percona-Server/mysql-test/r/percona_server_variables_debug.result 2013-02-18 05:17:25 +0000 | |||
1417 | @@ -127,6 +127,7 @@ | |||
1418 | 127 | INNODB_KILL_IDLE_TRANSACTION | 127 | INNODB_KILL_IDLE_TRANSACTION |
1419 | 128 | INNODB_LARGE_PREFIX | 128 | INNODB_LARGE_PREFIX |
1420 | 129 | INNODB_LAZY_DROP_TABLE | 129 | INNODB_LAZY_DROP_TABLE |
1421 | 130 | INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG | ||
1422 | 130 | INNODB_LOCKING_FAKE_CHANGES | 131 | INNODB_LOCKING_FAKE_CHANGES |
1423 | 131 | INNODB_LOCKS_UNSAFE_FOR_BINLOG | 132 | INNODB_LOCKS_UNSAFE_FOR_BINLOG |
1424 | 132 | INNODB_LOCK_WAIT_TIMEOUT | 133 | INNODB_LOCK_WAIT_TIMEOUT |
1425 | @@ -146,6 +147,7 @@ | |||
1426 | 146 | INNODB_OPEN_FILES | 147 | INNODB_OPEN_FILES |
1427 | 147 | INNODB_PAGE_SIZE | 148 | INNODB_PAGE_SIZE |
1428 | 148 | INNODB_PERSISTENT_STATS_ROOT_PAGE | 149 | INNODB_PERSISTENT_STATS_ROOT_PAGE |
1429 | 150 | INNODB_PRINT_ALL_DEADLOCKS | ||
1430 | 149 | INNODB_PURGE_BATCH_SIZE | 151 | INNODB_PURGE_BATCH_SIZE |
1431 | 150 | INNODB_PURGE_THREADS | 152 | INNODB_PURGE_THREADS |
1432 | 151 | INNODB_RANDOM_READ_AHEAD | 153 | INNODB_RANDOM_READ_AHEAD |
1433 | @@ -173,6 +175,7 @@ | |||
1434 | 173 | INNODB_THREAD_CONCURRENCY_TIMER_BASED | 175 | INNODB_THREAD_CONCURRENCY_TIMER_BASED |
1435 | 174 | INNODB_THREAD_SLEEP_DELAY | 176 | INNODB_THREAD_SLEEP_DELAY |
1436 | 175 | INNODB_TRACK_CHANGED_PAGES | 177 | INNODB_TRACK_CHANGED_PAGES |
1437 | 178 | INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG | ||
1438 | 176 | INNODB_TRX_RSEG_N_SLOTS_DEBUG | 179 | INNODB_TRX_RSEG_N_SLOTS_DEBUG |
1439 | 177 | INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT | 180 | INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT |
1440 | 178 | INNODB_USE_NATIVE_AIO | 181 | INNODB_USE_NATIVE_AIO |
1441 | @@ -290,6 +293,7 @@ | |||
1442 | 290 | PROFILING_HISTORY_SIZE | 293 | PROFILING_HISTORY_SIZE |
1443 | 291 | PROTOCOL_VERSION | 294 | PROTOCOL_VERSION |
1444 | 292 | PROXY_USER | 295 | PROXY_USER |
1445 | 296 | PSEUDO_SLAVE_MODE | ||
1446 | 293 | PSEUDO_THREAD_ID | 297 | PSEUDO_THREAD_ID |
1447 | 294 | QUERY_ALLOC_BLOCK_SIZE | 298 | QUERY_ALLOC_BLOCK_SIZE |
1448 | 295 | QUERY_CACHE_LIMIT | 299 | QUERY_CACHE_LIMIT |
1449 | 296 | 300 | ||
1450 | === modified file 'Percona-Server/mysql-test/r/percona_server_variables_release.result' | |||
1451 | --- Percona-Server/mysql-test/r/percona_server_variables_release.result 2013-01-30 09:55:26 +0000 | |||
1452 | +++ Percona-Server/mysql-test/r/percona_server_variables_release.result 2013-02-18 05:17:25 +0000 | |||
1453 | @@ -142,6 +142,7 @@ | |||
1454 | 142 | INNODB_OLD_BLOCKS_TIME | 142 | INNODB_OLD_BLOCKS_TIME |
1455 | 143 | INNODB_OPEN_FILES | 143 | INNODB_OPEN_FILES |
1456 | 144 | INNODB_PAGE_SIZE | 144 | INNODB_PAGE_SIZE |
1457 | 145 | INNODB_PRINT_ALL_DEADLOCKS | ||
1458 | 145 | INNODB_PURGE_BATCH_SIZE | 146 | INNODB_PURGE_BATCH_SIZE |
1459 | 146 | INNODB_PURGE_THREADS | 147 | INNODB_PURGE_THREADS |
1460 | 147 | INNODB_RANDOM_READ_AHEAD | 148 | INNODB_RANDOM_READ_AHEAD |
1461 | @@ -285,6 +286,7 @@ | |||
1462 | 285 | PROFILING_HISTORY_SIZE | 286 | PROFILING_HISTORY_SIZE |
1463 | 286 | PROTOCOL_VERSION | 287 | PROTOCOL_VERSION |
1464 | 287 | PROXY_USER | 288 | PROXY_USER |
1465 | 289 | PSEUDO_SLAVE_MODE | ||
1466 | 288 | PSEUDO_THREAD_ID | 290 | PSEUDO_THREAD_ID |
1467 | 289 | QUERY_ALLOC_BLOCK_SIZE | 291 | QUERY_ALLOC_BLOCK_SIZE |
1468 | 290 | QUERY_CACHE_LIMIT | 292 | QUERY_CACHE_LIMIT |
1469 | 291 | 293 | ||
1470 | === modified file 'Percona-Server/mysql-test/r/user_var-binlog.result' | |||
1471 | --- Percona-Server/mysql-test/r/user_var-binlog.result 2013-01-09 23:45:25 +0000 | |||
1472 | +++ Percona-Server/mysql-test/r/user_var-binlog.result 2013-02-18 05:17:25 +0000 | |||
1473 | @@ -18,6 +18,7 @@ | |||
1474 | 18 | master-bin.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2) | 18 | master-bin.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2) |
1475 | 19 | master-bin.000001 # Query # # COMMIT | 19 | master-bin.000001 # Query # # COMMIT |
1476 | 20 | flush logs; | 20 | flush logs; |
1477 | 21 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1478 | 21 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 22 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1479 | 22 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 23 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1480 | 23 | DELIMITER /*!*/; | 24 | DELIMITER /*!*/; |
1481 | @@ -56,4 +57,5 @@ | |||
1482 | 56 | # End of log file | 57 | # End of log file |
1483 | 57 | ROLLBACK /* added by mysqlbinlog */; | 58 | ROLLBACK /* added by mysqlbinlog */; |
1484 | 58 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 59 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1485 | 60 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1486 | 59 | drop table t1; | 61 | drop table t1; |
1487 | 60 | 62 | ||
1488 | === modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_base64_flag.result' | |||
1489 | --- Percona-Server/mysql-test/suite/binlog/r/binlog_base64_flag.result 2013-01-09 23:45:25 +0000 | |||
1490 | +++ Percona-Server/mysql-test/suite/binlog/r/binlog_base64_flag.result 2013-02-18 05:17:25 +0000 | |||
1491 | @@ -29,6 +29,7 @@ | |||
1492 | 29 | 1 | 29 | 1 |
1493 | 30 | 3 | 30 | 3 |
1494 | 31 | ==== Test --base64-output=never on a binlog with row events ==== | 31 | ==== Test --base64-output=never on a binlog with row events ==== |
1495 | 32 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1496 | 32 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 33 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1497 | 33 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 34 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1498 | 34 | DELIMITER /*!*/; | 35 | DELIMITER /*!*/; |
1499 | @@ -51,6 +52,7 @@ | |||
1500 | 51 | # End of log file | 52 | # End of log file |
1501 | 52 | ROLLBACK /* added by mysqlbinlog */; | 53 | ROLLBACK /* added by mysqlbinlog */; |
1502 | 53 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 54 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1503 | 55 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1504 | 54 | ==== Test non-matching FD event and Row event ==== | 56 | ==== Test non-matching FD event and Row event ==== |
1505 | 55 | BINLOG ' | 57 | BINLOG ' |
1506 | 56 | 4CdYRw8BAAAAYgAAAGYAAAAAAAQANS4xLjE1LW5kYi02LjEuMjQtZGVidWctbG9nAAAAAAAAAAAA | 58 | 4CdYRw8BAAAAYgAAAGYAAAAAAAQANS4xLjE1LW5kYi02LjEuMjQtZGVidWctbG9nAAAAAAAAAAAA |
1507 | 57 | 59 | ||
1508 | === modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog2.result' | |||
1509 | --- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog2.result 2013-01-09 23:45:25 +0000 | |||
1510 | +++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog2.result 2013-02-18 05:17:25 +0000 | |||
1511 | @@ -15,6 +15,7 @@ | |||
1512 | 15 | insert into t1 values(null, "f"); | 15 | insert into t1 values(null, "f"); |
1513 | 16 | 16 | ||
1514 | 17 | --- Local -- | 17 | --- Local -- |
1515 | 18 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1516 | 18 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 19 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1517 | 19 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 20 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1518 | 20 | DELIMITER /*!*/; | 21 | DELIMITER /*!*/; |
1519 | @@ -85,8 +86,10 @@ | |||
1520 | 85 | # End of log file | 86 | # End of log file |
1521 | 86 | ROLLBACK /* added by mysqlbinlog */; | 87 | ROLLBACK /* added by mysqlbinlog */; |
1522 | 87 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 88 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1523 | 89 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1524 | 88 | 90 | ||
1525 | 89 | --- offset -- | 91 | --- offset -- |
1526 | 92 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1527 | 90 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 93 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1528 | 91 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 94 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1529 | 92 | DELIMITER /*!*/; | 95 | DELIMITER /*!*/; |
1530 | @@ -154,8 +157,10 @@ | |||
1531 | 154 | # End of log file | 157 | # End of log file |
1532 | 155 | ROLLBACK /* added by mysqlbinlog */; | 158 | ROLLBACK /* added by mysqlbinlog */; |
1533 | 156 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 159 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1534 | 160 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1535 | 157 | 161 | ||
1536 | 158 | --- start-position -- | 162 | --- start-position -- |
1537 | 163 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1538 | 159 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 164 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1539 | 160 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 165 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1540 | 161 | DELIMITER /*!*/; | 166 | DELIMITER /*!*/; |
1541 | @@ -203,8 +208,10 @@ | |||
1542 | 203 | # End of log file | 208 | # End of log file |
1543 | 204 | ROLLBACK /* added by mysqlbinlog */; | 209 | ROLLBACK /* added by mysqlbinlog */; |
1544 | 205 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 210 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1545 | 211 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1546 | 206 | 212 | ||
1547 | 207 | --- stop-position -- | 213 | --- stop-position -- |
1548 | 214 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1549 | 208 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 215 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1550 | 209 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 216 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1551 | 210 | DELIMITER /*!*/; | 217 | DELIMITER /*!*/; |
1552 | @@ -245,8 +252,10 @@ | |||
1553 | 245 | # End of log file | 252 | # End of log file |
1554 | 246 | ROLLBACK /* added by mysqlbinlog */; | 253 | ROLLBACK /* added by mysqlbinlog */; |
1555 | 247 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 254 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1556 | 255 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1557 | 248 | 256 | ||
1558 | 249 | --- start and stop positions --- | 257 | --- start and stop positions --- |
1559 | 258 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1560 | 250 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 259 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1561 | 251 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 260 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1562 | 252 | DELIMITER /*!*/; | 261 | DELIMITER /*!*/; |
1563 | @@ -271,8 +280,10 @@ | |||
1564 | 271 | # End of log file | 280 | # End of log file |
1565 | 272 | ROLLBACK /* added by mysqlbinlog */; | 281 | ROLLBACK /* added by mysqlbinlog */; |
1566 | 273 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 282 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1567 | 283 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1568 | 274 | 284 | ||
1569 | 275 | --- start-datetime -- | 285 | --- start-datetime -- |
1570 | 286 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1571 | 276 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 287 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1572 | 277 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 288 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1573 | 278 | DELIMITER /*!*/; | 289 | DELIMITER /*!*/; |
1574 | @@ -320,8 +331,10 @@ | |||
1575 | 320 | # End of log file | 331 | # End of log file |
1576 | 321 | ROLLBACK /* added by mysqlbinlog */; | 332 | ROLLBACK /* added by mysqlbinlog */; |
1577 | 322 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 333 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1578 | 334 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1579 | 323 | 335 | ||
1580 | 324 | --- stop-datetime -- | 336 | --- stop-datetime -- |
1581 | 337 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1582 | 325 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 338 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1583 | 326 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 339 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1584 | 327 | DELIMITER /*!*/; | 340 | DELIMITER /*!*/; |
1585 | @@ -362,9 +375,11 @@ | |||
1586 | 362 | # End of log file | 375 | # End of log file |
1587 | 363 | ROLLBACK /* added by mysqlbinlog */; | 376 | ROLLBACK /* added by mysqlbinlog */; |
1588 | 364 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 377 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1589 | 378 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1590 | 365 | 379 | ||
1591 | 366 | --- Local with 2 binlogs on command line -- | 380 | --- Local with 2 binlogs on command line -- |
1592 | 367 | flush logs; | 381 | flush logs; |
1593 | 382 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1594 | 368 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 383 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1595 | 369 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 384 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1596 | 370 | DELIMITER /*!*/; | 385 | DELIMITER /*!*/; |
1597 | @@ -456,8 +471,10 @@ | |||
1598 | 456 | # End of log file | 471 | # End of log file |
1599 | 457 | ROLLBACK /* added by mysqlbinlog */; | 472 | ROLLBACK /* added by mysqlbinlog */; |
1600 | 458 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 473 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1601 | 474 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1602 | 459 | 475 | ||
1603 | 460 | --- offset -- | 476 | --- offset -- |
1604 | 477 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1605 | 461 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 478 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1606 | 462 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 479 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1607 | 463 | DELIMITER /*!*/; | 480 | DELIMITER /*!*/; |
1608 | @@ -546,8 +563,10 @@ | |||
1609 | 546 | # End of log file | 563 | # End of log file |
1610 | 547 | ROLLBACK /* added by mysqlbinlog */; | 564 | ROLLBACK /* added by mysqlbinlog */; |
1611 | 548 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 565 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1612 | 566 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1613 | 549 | 567 | ||
1614 | 550 | --- start-position -- | 568 | --- start-position -- |
1615 | 569 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1616 | 551 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 570 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1617 | 552 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 571 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1618 | 553 | DELIMITER /*!*/; | 572 | DELIMITER /*!*/; |
1619 | @@ -616,8 +635,10 @@ | |||
1620 | 616 | # End of log file | 635 | # End of log file |
1621 | 617 | ROLLBACK /* added by mysqlbinlog */; | 636 | ROLLBACK /* added by mysqlbinlog */; |
1622 | 618 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 637 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1623 | 638 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1624 | 619 | 639 | ||
1625 | 620 | --- stop-position -- | 640 | --- stop-position -- |
1626 | 641 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1627 | 621 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 642 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1628 | 622 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 643 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1629 | 623 | DELIMITER /*!*/; | 644 | DELIMITER /*!*/; |
1630 | @@ -702,8 +723,10 @@ | |||
1631 | 702 | # End of log file | 723 | # End of log file |
1632 | 703 | ROLLBACK /* added by mysqlbinlog */; | 724 | ROLLBACK /* added by mysqlbinlog */; |
1633 | 704 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 725 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1634 | 726 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1635 | 705 | 727 | ||
1636 | 706 | --- start-datetime -- | 728 | --- start-datetime -- |
1637 | 729 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1638 | 707 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 730 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1639 | 708 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 731 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1640 | 709 | DELIMITER /*!*/; | 732 | DELIMITER /*!*/; |
1641 | @@ -772,8 +795,10 @@ | |||
1642 | 772 | # End of log file | 795 | # End of log file |
1643 | 773 | ROLLBACK /* added by mysqlbinlog */; | 796 | ROLLBACK /* added by mysqlbinlog */; |
1644 | 774 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 797 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1645 | 798 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1646 | 775 | 799 | ||
1647 | 776 | --- stop-datetime -- | 800 | --- stop-datetime -- |
1648 | 801 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1649 | 777 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 802 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1650 | 778 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 803 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1651 | 779 | DELIMITER /*!*/; | 804 | DELIMITER /*!*/; |
1652 | @@ -814,8 +839,10 @@ | |||
1653 | 814 | # End of log file | 839 | # End of log file |
1654 | 815 | ROLLBACK /* added by mysqlbinlog */; | 840 | ROLLBACK /* added by mysqlbinlog */; |
1655 | 816 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 841 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1656 | 842 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1657 | 817 | 843 | ||
1658 | 818 | --- Remote -- | 844 | --- Remote -- |
1659 | 845 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1660 | 819 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 846 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1661 | 820 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 847 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1662 | 821 | DELIMITER /*!*/; | 848 | DELIMITER /*!*/; |
1663 | @@ -886,8 +913,10 @@ | |||
1664 | 886 | # End of log file | 913 | # End of log file |
1665 | 887 | ROLLBACK /* added by mysqlbinlog */; | 914 | ROLLBACK /* added by mysqlbinlog */; |
1666 | 888 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 915 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1667 | 916 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1668 | 889 | 917 | ||
1669 | 890 | --- offset -- | 918 | --- offset -- |
1670 | 919 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1671 | 891 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 920 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1672 | 892 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 921 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1673 | 893 | DELIMITER /*!*/; | 922 | DELIMITER /*!*/; |
1674 | @@ -955,8 +984,10 @@ | |||
1675 | 955 | # End of log file | 984 | # End of log file |
1676 | 956 | ROLLBACK /* added by mysqlbinlog */; | 985 | ROLLBACK /* added by mysqlbinlog */; |
1677 | 957 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 986 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1678 | 987 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1679 | 958 | 988 | ||
1680 | 959 | --- start-position -- | 989 | --- start-position -- |
1681 | 990 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1682 | 960 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 991 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1683 | 961 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 992 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1684 | 962 | DELIMITER /*!*/; | 993 | DELIMITER /*!*/; |
1685 | @@ -1003,8 +1034,10 @@ | |||
1686 | 1003 | # End of log file | 1034 | # End of log file |
1687 | 1004 | ROLLBACK /* added by mysqlbinlog */; | 1035 | ROLLBACK /* added by mysqlbinlog */; |
1688 | 1005 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1036 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1689 | 1037 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1690 | 1006 | 1038 | ||
1691 | 1007 | --- stop-position -- | 1039 | --- stop-position -- |
1692 | 1040 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1693 | 1008 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1041 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1694 | 1009 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1042 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1695 | 1010 | DELIMITER /*!*/; | 1043 | DELIMITER /*!*/; |
1696 | @@ -1045,8 +1078,10 @@ | |||
1697 | 1045 | # End of log file | 1078 | # End of log file |
1698 | 1046 | ROLLBACK /* added by mysqlbinlog */; | 1079 | ROLLBACK /* added by mysqlbinlog */; |
1699 | 1047 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1080 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1700 | 1081 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1701 | 1048 | 1082 | ||
1702 | 1049 | --- start and stop positions --- | 1083 | --- start and stop positions --- |
1703 | 1084 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1704 | 1050 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1085 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1705 | 1051 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1086 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1706 | 1052 | DELIMITER /*!*/; | 1087 | DELIMITER /*!*/; |
1707 | @@ -1070,8 +1105,10 @@ | |||
1708 | 1070 | # End of log file | 1105 | # End of log file |
1709 | 1071 | ROLLBACK /* added by mysqlbinlog */; | 1106 | ROLLBACK /* added by mysqlbinlog */; |
1710 | 1072 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1107 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1711 | 1108 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1712 | 1073 | 1109 | ||
1713 | 1074 | --- start-datetime -- | 1110 | --- start-datetime -- |
1714 | 1111 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1715 | 1075 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1112 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1716 | 1076 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1113 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1717 | 1077 | DELIMITER /*!*/; | 1114 | DELIMITER /*!*/; |
1718 | @@ -1119,8 +1156,10 @@ | |||
1719 | 1119 | # End of log file | 1156 | # End of log file |
1720 | 1120 | ROLLBACK /* added by mysqlbinlog */; | 1157 | ROLLBACK /* added by mysqlbinlog */; |
1721 | 1121 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1158 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1722 | 1159 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1723 | 1122 | 1160 | ||
1724 | 1123 | --- stop-datetime -- | 1161 | --- stop-datetime -- |
1725 | 1162 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1726 | 1124 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1163 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1727 | 1125 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1164 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1728 | 1126 | DELIMITER /*!*/; | 1165 | DELIMITER /*!*/; |
1729 | @@ -1161,8 +1200,10 @@ | |||
1730 | 1161 | # End of log file | 1200 | # End of log file |
1731 | 1162 | ROLLBACK /* added by mysqlbinlog */; | 1201 | ROLLBACK /* added by mysqlbinlog */; |
1732 | 1163 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1202 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1733 | 1203 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1734 | 1164 | 1204 | ||
1735 | 1165 | --- Remote with 2 binlogs on command line -- | 1205 | --- Remote with 2 binlogs on command line -- |
1736 | 1206 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1737 | 1166 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1207 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1738 | 1167 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1208 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1739 | 1168 | DELIMITER /*!*/; | 1209 | DELIMITER /*!*/; |
1740 | @@ -1254,8 +1295,10 @@ | |||
1741 | 1254 | # End of log file | 1295 | # End of log file |
1742 | 1255 | ROLLBACK /* added by mysqlbinlog */; | 1296 | ROLLBACK /* added by mysqlbinlog */; |
1743 | 1256 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1297 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1744 | 1298 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1745 | 1257 | 1299 | ||
1746 | 1258 | --- offset -- | 1300 | --- offset -- |
1747 | 1301 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1748 | 1259 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1302 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1749 | 1260 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1303 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1750 | 1261 | DELIMITER /*!*/; | 1304 | DELIMITER /*!*/; |
1751 | @@ -1344,8 +1387,10 @@ | |||
1752 | 1344 | # End of log file | 1387 | # End of log file |
1753 | 1345 | ROLLBACK /* added by mysqlbinlog */; | 1388 | ROLLBACK /* added by mysqlbinlog */; |
1754 | 1346 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1389 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1755 | 1390 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1756 | 1347 | 1391 | ||
1757 | 1348 | --- start-position -- | 1392 | --- start-position -- |
1758 | 1393 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1759 | 1349 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1394 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1760 | 1350 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1395 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1761 | 1351 | DELIMITER /*!*/; | 1396 | DELIMITER /*!*/; |
1762 | @@ -1413,8 +1458,10 @@ | |||
1763 | 1413 | # End of log file | 1458 | # End of log file |
1764 | 1414 | ROLLBACK /* added by mysqlbinlog */; | 1459 | ROLLBACK /* added by mysqlbinlog */; |
1765 | 1415 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1460 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1766 | 1461 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1767 | 1416 | 1462 | ||
1768 | 1417 | --- stop-position -- | 1463 | --- stop-position -- |
1769 | 1464 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1770 | 1418 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1465 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1771 | 1419 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1466 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1772 | 1420 | DELIMITER /*!*/; | 1467 | DELIMITER /*!*/; |
1773 | @@ -1498,8 +1545,10 @@ | |||
1774 | 1498 | # End of log file | 1545 | # End of log file |
1775 | 1499 | ROLLBACK /* added by mysqlbinlog */; | 1546 | ROLLBACK /* added by mysqlbinlog */; |
1776 | 1500 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1547 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1777 | 1548 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1778 | 1501 | 1549 | ||
1779 | 1502 | --- start-datetime -- | 1550 | --- start-datetime -- |
1780 | 1551 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1781 | 1503 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1552 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1782 | 1504 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1553 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1783 | 1505 | DELIMITER /*!*/; | 1554 | DELIMITER /*!*/; |
1784 | @@ -1568,8 +1617,10 @@ | |||
1785 | 1568 | # End of log file | 1617 | # End of log file |
1786 | 1569 | ROLLBACK /* added by mysqlbinlog */; | 1618 | ROLLBACK /* added by mysqlbinlog */; |
1787 | 1570 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1619 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1788 | 1620 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1789 | 1571 | 1621 | ||
1790 | 1572 | --- stop-datetime -- | 1622 | --- stop-datetime -- |
1791 | 1623 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1792 | 1573 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1624 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1793 | 1574 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1625 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1794 | 1575 | DELIMITER /*!*/; | 1626 | DELIMITER /*!*/; |
1795 | @@ -1610,8 +1661,10 @@ | |||
1796 | 1610 | # End of log file | 1661 | # End of log file |
1797 | 1611 | ROLLBACK /* added by mysqlbinlog */; | 1662 | ROLLBACK /* added by mysqlbinlog */; |
1798 | 1612 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1663 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1799 | 1664 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1800 | 1613 | 1665 | ||
1801 | 1614 | --- to-last-log -- | 1666 | --- to-last-log -- |
1802 | 1667 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1803 | 1615 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 1668 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1804 | 1616 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 1669 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1805 | 1617 | DELIMITER /*!*/; | 1670 | DELIMITER /*!*/; |
1806 | @@ -1692,6 +1745,7 @@ | |||
1807 | 1692 | # End of log file | 1745 | # End of log file |
1808 | 1693 | ROLLBACK /* added by mysqlbinlog */; | 1746 | ROLLBACK /* added by mysqlbinlog */; |
1809 | 1694 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1747 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1810 | 1748 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1811 | 1695 | 1749 | ||
1812 | 1696 | --- end of test -- | 1750 | --- end of test -- |
1813 | 1697 | drop table t1; | 1751 | drop table t1; |
1814 | 1698 | 1752 | ||
1815 | === modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result' | |||
1816 | --- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result 2013-01-09 23:45:25 +0000 | |||
1817 | +++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result 2013-02-18 05:17:25 +0000 | |||
1818 | @@ -328,6 +328,7 @@ | |||
1819 | 328 | UPDATE t1, t2 SET t1.a=10, t2.a=20; | 328 | UPDATE t1, t2 SET t1.a=10, t2.a=20; |
1820 | 329 | DROP TABLE t1,t2; | 329 | DROP TABLE t1,t2; |
1821 | 330 | flush logs; | 330 | flush logs; |
1822 | 331 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1823 | 331 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 332 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1824 | 332 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 333 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1825 | 333 | DELIMITER /*!*/; | 334 | DELIMITER /*!*/; |
1826 | @@ -4135,3 +4136,4 @@ | |||
1827 | 4135 | # End of log file | 4136 | # End of log file |
1828 | 4136 | ROLLBACK /* added by mysqlbinlog */; | 4137 | ROLLBACK /* added by mysqlbinlog */; |
1829 | 4137 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 4138 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1830 | 4139 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1831 | 4138 | 4140 | ||
1832 | === modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result' | |||
1833 | --- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result 2013-01-09 23:45:25 +0000 | |||
1834 | +++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result 2013-02-18 05:17:25 +0000 | |||
1835 | @@ -2245,6 +2245,7 @@ | |||
1836 | 2245 | # | 2245 | # |
1837 | 2246 | # Call mysqlbinlog to display the log file contents. | 2246 | # Call mysqlbinlog to display the log file contents. |
1838 | 2247 | # | 2247 | # |
1839 | 2248 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1840 | 2248 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 2249 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1841 | 2249 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 2250 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1842 | 2250 | DELIMITER /*!*/; | 2251 | DELIMITER /*!*/; |
1843 | @@ -3786,6 +3787,7 @@ | |||
1844 | 3786 | # End of log file | 3787 | # End of log file |
1845 | 3787 | ROLLBACK /* added by mysqlbinlog */; | 3788 | ROLLBACK /* added by mysqlbinlog */; |
1846 | 3788 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 3789 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1847 | 3790 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1848 | 3789 | # | 3791 | # |
1849 | 3790 | # Cleanup. | 3792 | # Cleanup. |
1850 | 3791 | # | 3793 | # |
1851 | @@ -3868,6 +3870,7 @@ | |||
1852 | 3868 | # | 3870 | # |
1853 | 3869 | # Call mysqlbinlog to display the log file contents. | 3871 | # Call mysqlbinlog to display the log file contents. |
1854 | 3870 | # | 3872 | # |
1855 | 3873 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1856 | 3871 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 3874 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1857 | 3872 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 3875 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1858 | 3873 | DELIMITER /*!*/; | 3876 | DELIMITER /*!*/; |
1859 | @@ -4077,6 +4080,7 @@ | |||
1860 | 4077 | # End of log file | 4080 | # End of log file |
1861 | 4078 | ROLLBACK /* added by mysqlbinlog */; | 4081 | ROLLBACK /* added by mysqlbinlog */; |
1862 | 4079 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 4082 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1863 | 4083 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1864 | 4080 | # | 4084 | # |
1865 | 4081 | # Cleanup. | 4085 | # Cleanup. |
1866 | 4082 | # | 4086 | # |
1867 | @@ -4235,6 +4239,7 @@ | |||
1868 | 4235 | # | 4239 | # |
1869 | 4236 | # Call mysqlbinlog to display the log file contents. | 4240 | # Call mysqlbinlog to display the log file contents. |
1870 | 4237 | # | 4241 | # |
1871 | 4242 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1872 | 4238 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 4243 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1873 | 4239 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 4244 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1874 | 4240 | DELIMITER /*!*/; | 4245 | DELIMITER /*!*/; |
1875 | @@ -4746,6 +4751,7 @@ | |||
1876 | 4746 | # End of log file | 4751 | # End of log file |
1877 | 4747 | ROLLBACK /* added by mysqlbinlog */; | 4752 | ROLLBACK /* added by mysqlbinlog */; |
1878 | 4748 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 4753 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1879 | 4754 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1880 | 4749 | # | 4755 | # |
1881 | 4750 | # Cleanup. | 4756 | # Cleanup. |
1882 | 4751 | # | 4757 | # |
1883 | @@ -4796,6 +4802,7 @@ | |||
1884 | 4796 | # | 4802 | # |
1885 | 4797 | # Call mysqlbinlog to display the log file contents. | 4803 | # Call mysqlbinlog to display the log file contents. |
1886 | 4798 | # | 4804 | # |
1887 | 4805 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1888 | 4799 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 4806 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1889 | 4800 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 4807 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1890 | 4801 | DELIMITER /*!*/; | 4808 | DELIMITER /*!*/; |
1891 | @@ -4853,6 +4860,7 @@ | |||
1892 | 4853 | # End of log file | 4860 | # End of log file |
1893 | 4854 | ROLLBACK /* added by mysqlbinlog */; | 4861 | ROLLBACK /* added by mysqlbinlog */; |
1894 | 4855 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 4862 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1895 | 4863 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1896 | 4856 | # | 4864 | # |
1897 | 4857 | # Cleanup. | 4865 | # Cleanup. |
1898 | 4858 | # | 4866 | # |
1899 | 4859 | 4867 | ||
1900 | === modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result' | |||
1901 | --- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result 2013-01-09 23:45:25 +0000 | |||
1902 | +++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result 2013-02-18 05:17:25 +0000 | |||
1903 | @@ -2245,6 +2245,7 @@ | |||
1904 | 2245 | # | 2245 | # |
1905 | 2246 | # Call mysqlbinlog to display the log file contents. | 2246 | # Call mysqlbinlog to display the log file contents. |
1906 | 2247 | # | 2247 | # |
1907 | 2248 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1908 | 2248 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 2249 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1909 | 2249 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 2250 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1910 | 2250 | DELIMITER /*!*/; | 2251 | DELIMITER /*!*/; |
1911 | @@ -3808,6 +3809,7 @@ | |||
1912 | 3808 | # End of log file | 3809 | # End of log file |
1913 | 3809 | ROLLBACK /* added by mysqlbinlog */; | 3810 | ROLLBACK /* added by mysqlbinlog */; |
1914 | 3810 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 3811 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1915 | 3812 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1916 | 3811 | # | 3813 | # |
1917 | 3812 | # Cleanup. | 3814 | # Cleanup. |
1918 | 3813 | # | 3815 | # |
1919 | @@ -3890,6 +3892,7 @@ | |||
1920 | 3890 | # | 3892 | # |
1921 | 3891 | # Call mysqlbinlog to display the log file contents. | 3893 | # Call mysqlbinlog to display the log file contents. |
1922 | 3892 | # | 3894 | # |
1923 | 3895 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1924 | 3893 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 3896 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1925 | 3894 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 3897 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1926 | 3895 | DELIMITER /*!*/; | 3898 | DELIMITER /*!*/; |
1927 | @@ -4105,6 +4108,7 @@ | |||
1928 | 4105 | # End of log file | 4108 | # End of log file |
1929 | 4106 | ROLLBACK /* added by mysqlbinlog */; | 4109 | ROLLBACK /* added by mysqlbinlog */; |
1930 | 4107 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 4110 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1931 | 4111 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1932 | 4108 | # | 4112 | # |
1933 | 4109 | # Cleanup. | 4113 | # Cleanup. |
1934 | 4110 | # | 4114 | # |
1935 | @@ -4263,6 +4267,7 @@ | |||
1936 | 4263 | # | 4267 | # |
1937 | 4264 | # Call mysqlbinlog to display the log file contents. | 4268 | # Call mysqlbinlog to display the log file contents. |
1938 | 4265 | # | 4269 | # |
1939 | 4270 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1940 | 4266 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 4271 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1941 | 4267 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 4272 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1942 | 4268 | DELIMITER /*!*/; | 4273 | DELIMITER /*!*/; |
1943 | @@ -4784,6 +4789,7 @@ | |||
1944 | 4784 | # End of log file | 4789 | # End of log file |
1945 | 4785 | ROLLBACK /* added by mysqlbinlog */; | 4790 | ROLLBACK /* added by mysqlbinlog */; |
1946 | 4786 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 4791 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1947 | 4792 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1948 | 4787 | # | 4793 | # |
1949 | 4788 | # Cleanup. | 4794 | # Cleanup. |
1950 | 4789 | # | 4795 | # |
1951 | @@ -4834,6 +4840,7 @@ | |||
1952 | 4834 | # | 4840 | # |
1953 | 4835 | # Call mysqlbinlog to display the log file contents. | 4841 | # Call mysqlbinlog to display the log file contents. |
1954 | 4836 | # | 4842 | # |
1955 | 4843 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1956 | 4837 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 4844 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1957 | 4838 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 4845 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1958 | 4839 | DELIMITER /*!*/; | 4846 | DELIMITER /*!*/; |
1959 | @@ -4893,6 +4900,7 @@ | |||
1960 | 4893 | # End of log file | 4900 | # End of log file |
1961 | 4894 | ROLLBACK /* added by mysqlbinlog */; | 4901 | ROLLBACK /* added by mysqlbinlog */; |
1962 | 4895 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 4902 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1963 | 4903 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1964 | 4896 | # | 4904 | # |
1965 | 4897 | # Cleanup. | 4905 | # Cleanup. |
1966 | 4898 | # | 4906 | # |
1967 | 4899 | 4907 | ||
1968 | === modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_trans.result' | |||
1969 | --- Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_trans.result 2013-01-09 23:45:25 +0000 | |||
1970 | +++ Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_trans.result 2013-02-18 05:17:25 +0000 | |||
1971 | @@ -124,6 +124,7 @@ | |||
1972 | 124 | # | 124 | # |
1973 | 125 | # Call mysqlbinlog to display the log file contents. | 125 | # Call mysqlbinlog to display the log file contents. |
1974 | 126 | # | 126 | # |
1975 | 127 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1976 | 127 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 128 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1977 | 128 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 129 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1978 | 129 | DELIMITER /*!*/; | 130 | DELIMITER /*!*/; |
1979 | @@ -463,6 +464,7 @@ | |||
1980 | 463 | # End of log file | 464 | # End of log file |
1981 | 464 | ROLLBACK /* added by mysqlbinlog */; | 465 | ROLLBACK /* added by mysqlbinlog */; |
1982 | 465 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 466 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
1983 | 467 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
1984 | 466 | # | 468 | # |
1985 | 467 | # Cleanup. | 469 | # Cleanup. |
1986 | 468 | # | 470 | # |
1987 | 469 | 471 | ||
1988 | === modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_row_ctype_ucs.result' | |||
1989 | --- Percona-Server/mysql-test/suite/binlog/r/binlog_row_ctype_ucs.result 2009-11-03 13:54:41 +0000 | |||
1990 | +++ Percona-Server/mysql-test/suite/binlog/r/binlog_row_ctype_ucs.result 2013-02-18 05:17:25 +0000 | |||
1991 | @@ -10,6 +10,7 @@ | |||
1992 | 10 | master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F | 10 | master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F |
1993 | 11 | master-bin.000001 # Query # # COMMIT | 11 | master-bin.000001 # Query # # COMMIT |
1994 | 12 | flush logs; | 12 | flush logs; |
1995 | 13 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
1996 | 13 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 14 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
1997 | 14 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 15 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
1998 | 15 | DELIMITER /*!*/; | 16 | DELIMITER /*!*/; |
1999 | @@ -32,4 +33,5 @@ | |||
2000 | 32 | # End of log file | 33 | # End of log file |
2001 | 33 | ROLLBACK /* added by mysqlbinlog */; | 34 | ROLLBACK /* added by mysqlbinlog */; |
2002 | 34 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 35 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
2003 | 36 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
2004 | 35 | drop table t2; | 37 | drop table t2; |
2005 | 36 | 38 | ||
2006 | === modified file 'Percona-Server/mysql-test/suite/binlog/r/binlog_stm_ctype_ucs.result' | |||
2007 | --- Percona-Server/mysql-test/suite/binlog/r/binlog_stm_ctype_ucs.result 2013-01-09 23:45:25 +0000 | |||
2008 | +++ Percona-Server/mysql-test/suite/binlog/r/binlog_stm_ctype_ucs.result 2013-02-18 05:17:25 +0000 | |||
2009 | @@ -10,6 +10,7 @@ | |||
2010 | 10 | master-bin.000001 # Query # # use `test`; insert into t2 values (@v) | 10 | master-bin.000001 # Query # # use `test`; insert into t2 values (@v) |
2011 | 11 | master-bin.000001 # Query # # COMMIT | 11 | master-bin.000001 # Query # # COMMIT |
2012 | 12 | flush logs; | 12 | flush logs; |
2013 | 13 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
2014 | 13 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 14 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
2015 | 14 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 15 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
2016 | 15 | DELIMITER /*!*/; | 16 | DELIMITER /*!*/; |
2017 | @@ -37,4 +38,5 @@ | |||
2018 | 37 | # End of log file | 38 | # End of log file |
2019 | 38 | ROLLBACK /* added by mysqlbinlog */; | 39 | ROLLBACK /* added by mysqlbinlog */; |
2020 | 39 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 40 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
2021 | 41 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
2022 | 40 | drop table t2; | 42 | drop table t2; |
2023 | 41 | 43 | ||
2024 | === modified file 'Percona-Server/mysql-test/suite/engines/funcs/r/rpl_row_until.result' | |||
2025 | --- Percona-Server/mysql-test/suite/engines/funcs/r/rpl_row_until.result 2011-01-05 06:53:05 +0000 | |||
2026 | +++ Percona-Server/mysql-test/suite/engines/funcs/r/rpl_row_until.result 2013-02-18 05:17:25 +0000 | |||
2027 | @@ -1,212 +1,60 @@ | |||
2236 | 1 | stop slave; | 1 | include/master-slave.inc |
2237 | 2 | drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; | 2 | [connection master] |
2238 | 3 | reset master; | 3 | CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY); |
2239 | 4 | reset slave; | 4 | INSERT INTO t1 VALUES (1),(2),(3),(4); |
2240 | 5 | drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; | 5 | DROP TABLE t1; |
2241 | 6 | start slave; | 6 | CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY); |
2242 | 7 | stop slave; | 7 | INSERT INTO t2 VALUES (1),(2); |
2243 | 8 | create table t1(n int not null auto_increment primary key); | 8 | INSERT INTO t2 VALUES (3),(4); |
2244 | 9 | insert into t1 values (1),(2),(3),(4); | 9 | DROP TABLE t2; |
2245 | 10 | drop table t1; | 10 | include/stop_slave.inc |
2246 | 11 | create table t2(n int not null auto_increment primary key); | 11 | RESET SLAVE; |
2247 | 12 | insert into t2 values (1),(2); | 12 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_drop_t1 |
2248 | 13 | insert into t2 values (3),(4); | 13 | include/wait_for_slave_sql_to_stop.inc |
2249 | 14 | drop table t2; | 14 | SELECT * FROM t1; |
2250 | 15 | start slave until master_log_file='master-bin.000001', master_log_pos=311; | 15 | n |
2251 | 16 | select * from t1; | 16 | 1 |
2252 | 17 | n | 17 | 2 |
2253 | 18 | 1 | 18 | 3 |
2254 | 19 | 2 | 19 | 4 |
2255 | 20 | 3 | 20 | include/check_slave_param.inc [Exec_Master_Log_Pos] |
2256 | 21 | 4 | 21 | START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS; |
2257 | 22 | show slave status; | 22 | include/wait_for_slave_sql_to_stop.inc |
2258 | 23 | Slave_IO_State # | 23 | SELECT * FROM t1; |
2259 | 24 | Master_Host 127.0.0.1 | 24 | n |
2260 | 25 | Master_User root | 25 | 1 |
2261 | 26 | Master_Port MASTER_MYPORT | 26 | 2 |
2262 | 27 | Connect_Retry 1 | 27 | 3 |
2263 | 28 | Master_Log_File master-bin.000001 | 28 | 4 |
2264 | 29 | Read_Master_Log_Pos # | 29 | include/check_slave_param.inc [Exec_Master_Log_Pos] |
2265 | 30 | Relay_Log_File slave-relay-bin.000004 | 30 | START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2 |
2266 | 31 | Relay_Log_Pos # | 31 | include/wait_for_slave_sql_to_stop.inc |
2267 | 32 | Relay_Master_Log_File master-bin.000001 | 32 | SELECT * FROM t2; |
2268 | 33 | Slave_IO_Running # | 33 | n |
2269 | 34 | Slave_SQL_Running No | 34 | 1 |
2270 | 35 | Replicate_Do_DB | 35 | 2 |
2271 | 36 | Replicate_Ignore_DB | 36 | include/check_slave_param.inc [Exec_Master_Log_Pos] |
2272 | 37 | Replicate_Do_Table | 37 | START SLAVE; |
2273 | 38 | Replicate_Ignore_Table | 38 | include/wait_for_slave_to_start.inc |
2274 | 39 | Replicate_Wild_Do_Table | 39 | include/stop_slave.inc |
2275 | 40 | Replicate_Wild_Ignore_Table | 40 | START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_create_t2 |
2276 | 41 | Last_Errno 0 | 41 | include/wait_for_slave_param.inc [Until_Log_Pos] |
2277 | 42 | Last_Error | 42 | include/wait_for_slave_sql_to_stop.inc |
2278 | 43 | Skip_Counter 0 | 43 | include/check_slave_param.inc [Exec_Master_Log_Pos] |
2279 | 44 | Exec_Master_Log_Pos # | 44 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=MASTER_LOG_POS; |
2280 | 45 | Relay_Log_Space # | 45 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
2281 | 46 | Until_Condition Master | 46 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS, RELAY_LOG_POS=RELAY_LOG_POS; |
2282 | 47 | Until_Log_File master-bin.000001 | 47 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
2283 | 48 | Until_Log_Pos 311 | 48 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001'; |
2284 | 49 | Master_SSL_Allowed No | 49 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
2285 | 50 | Master_SSL_CA_File | 50 | START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009'; |
2286 | 51 | Master_SSL_CA_Path | 51 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
2287 | 52 | Master_SSL_Cert | 52 | START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=MASTER_LOG_POS; |
2288 | 53 | Master_SSL_Cipher | 53 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
2289 | 54 | Master_SSL_Key | 54 | START SLAVE; |
2290 | 55 | Seconds_Behind_Master # | 55 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS; |
2083 | 56 | Master_SSL_Verify_Server_Cert No | ||
2084 | 57 | Last_IO_Errno 0 | ||
2085 | 58 | Last_IO_Error | ||
2086 | 59 | Last_SQL_Errno 0 | ||
2087 | 60 | Last_SQL_Error | ||
2088 | 61 | Replicate_Ignore_Server_Ids | ||
2089 | 62 | Master_Server_Id 1 | ||
2090 | 63 | start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291; | ||
2091 | 64 | select * from t1; | ||
2092 | 65 | n 1 | ||
2093 | 66 | n 2 | ||
2094 | 67 | n 3 | ||
2095 | 68 | n 4 | ||
2096 | 69 | show slave status; | ||
2097 | 70 | Slave_IO_State # | ||
2098 | 71 | Master_Host 127.0.0.1 | ||
2099 | 72 | Master_User root | ||
2100 | 73 | Master_Port MASTER_MYPORT | ||
2101 | 74 | Connect_Retry 1 | ||
2102 | 75 | Master_Log_File master-bin.000001 | ||
2103 | 76 | Read_Master_Log_Pos # | ||
2104 | 77 | Relay_Log_File slave-relay-bin.000004 | ||
2105 | 78 | Relay_Log_Pos # | ||
2106 | 79 | Relay_Master_Log_File master-bin.000001 | ||
2107 | 80 | Slave_IO_Running # | ||
2108 | 81 | Slave_SQL_Running No | ||
2109 | 82 | Replicate_Do_DB | ||
2110 | 83 | Replicate_Ignore_DB | ||
2111 | 84 | Replicate_Do_Table | ||
2112 | 85 | Replicate_Ignore_Table | ||
2113 | 86 | Replicate_Wild_Do_Table | ||
2114 | 87 | Replicate_Wild_Ignore_Table | ||
2115 | 88 | Last_Errno 0 | ||
2116 | 89 | Last_Error | ||
2117 | 90 | Skip_Counter 0 | ||
2118 | 91 | Exec_Master_Log_Pos # | ||
2119 | 92 | Relay_Log_Space # | ||
2120 | 93 | Until_Condition Master | ||
2121 | 94 | Until_Log_File master-no-such-bin.000001 | ||
2122 | 95 | Until_Log_Pos 291 | ||
2123 | 96 | Master_SSL_Allowed No | ||
2124 | 97 | Master_SSL_CA_File | ||
2125 | 98 | Master_SSL_CA_Path | ||
2126 | 99 | Master_SSL_Cert | ||
2127 | 100 | Master_SSL_Cipher | ||
2128 | 101 | Master_SSL_Key | ||
2129 | 102 | Seconds_Behind_Master # | ||
2130 | 103 | Master_SSL_Verify_Server_Cert No | ||
2131 | 104 | Last_IO_Errno 0 | ||
2132 | 105 | Last_IO_Error | ||
2133 | 106 | Last_SQL_Errno 0 | ||
2134 | 107 | Last_SQL_Error | ||
2135 | 108 | Replicate_Ignore_Server_Ids | ||
2136 | 109 | Master_Server_Id 1 | ||
2137 | 110 | start slave until relay_log_file='slave-relay-bin.000004', relay_log_pos=728; | ||
2138 | 111 | select * from t2; | ||
2139 | 112 | show slave status; | ||
2140 | 113 | Slave_IO_State # | ||
2141 | 114 | Master_Host 127.0.0.1 | ||
2142 | 115 | Master_User root | ||
2143 | 116 | Master_Port MASTER_MYPORT | ||
2144 | 117 | Connect_Retry 1 | ||
2145 | 118 | Master_Log_File master-bin.000001 | ||
2146 | 119 | Read_Master_Log_Pos # | ||
2147 | 120 | Relay_Log_File slave-relay-bin.000004 | ||
2148 | 121 | Relay_Log_Pos # | ||
2149 | 122 | Relay_Master_Log_File master-bin.000001 | ||
2150 | 123 | Slave_IO_Running # | ||
2151 | 124 | Slave_SQL_Running No | ||
2152 | 125 | Replicate_Do_DB | ||
2153 | 126 | Replicate_Ignore_DB | ||
2154 | 127 | Replicate_Do_Table | ||
2155 | 128 | Replicate_Ignore_Table | ||
2156 | 129 | Replicate_Wild_Do_Table | ||
2157 | 130 | Replicate_Wild_Ignore_Table | ||
2158 | 131 | Last_Errno 0 | ||
2159 | 132 | Last_Error | ||
2160 | 133 | Skip_Counter 0 | ||
2161 | 134 | Exec_Master_Log_Pos # | ||
2162 | 135 | Relay_Log_Space # | ||
2163 | 136 | Until_Condition Relay | ||
2164 | 137 | Until_Log_File slave-relay-bin.000004 | ||
2165 | 138 | Until_Log_Pos 728 | ||
2166 | 139 | Master_SSL_Allowed No | ||
2167 | 140 | Master_SSL_CA_File | ||
2168 | 141 | Master_SSL_CA_Path | ||
2169 | 142 | Master_SSL_Cert | ||
2170 | 143 | Master_SSL_Cipher | ||
2171 | 144 | Master_SSL_Key | ||
2172 | 145 | Seconds_Behind_Master # | ||
2173 | 146 | Master_SSL_Verify_Server_Cert No | ||
2174 | 147 | Last_IO_Errno 0 | ||
2175 | 148 | Last_IO_Error | ||
2176 | 149 | Last_SQL_Errno 0 | ||
2177 | 150 | Last_SQL_Error | ||
2178 | 151 | Replicate_Ignore_Server_Ids | ||
2179 | 152 | Master_Server_Id 1 | ||
2180 | 153 | start slave; | ||
2181 | 154 | stop slave; | ||
2182 | 155 | start slave until master_log_file='master-bin.000001', master_log_pos=740; | ||
2183 | 156 | show slave status; | ||
2184 | 157 | Slave_IO_State # | ||
2185 | 158 | Master_Host 127.0.0.1 | ||
2186 | 159 | Master_User root | ||
2187 | 160 | Master_Port MASTER_MYPORT | ||
2188 | 161 | Connect_Retry 1 | ||
2189 | 162 | Master_Log_File master-bin.000001 | ||
2190 | 163 | Read_Master_Log_Pos # | ||
2191 | 164 | Relay_Log_File slave-relay-bin.000004 | ||
2192 | 165 | Relay_Log_Pos # | ||
2193 | 166 | Relay_Master_Log_File master-bin.000001 | ||
2194 | 167 | Slave_IO_Running Yes | ||
2195 | 168 | Slave_SQL_Running No | ||
2196 | 169 | Replicate_Do_DB | ||
2197 | 170 | Replicate_Ignore_DB | ||
2198 | 171 | Replicate_Do_Table | ||
2199 | 172 | Replicate_Ignore_Table | ||
2200 | 173 | Replicate_Wild_Do_Table | ||
2201 | 174 | Replicate_Wild_Ignore_Table | ||
2202 | 175 | Last_Errno 0 | ||
2203 | 176 | Last_Error | ||
2204 | 177 | Skip_Counter 0 | ||
2205 | 178 | Exec_Master_Log_Pos # | ||
2206 | 179 | Relay_Log_Space # | ||
2207 | 180 | Until_Condition Master | ||
2208 | 181 | Until_Log_File master-bin.000001 | ||
2209 | 182 | Until_Log_Pos 740 | ||
2210 | 183 | Master_SSL_Allowed No | ||
2211 | 184 | Master_SSL_CA_File | ||
2212 | 185 | Master_SSL_CA_Path | ||
2213 | 186 | Master_SSL_Cert | ||
2214 | 187 | Master_SSL_Cipher | ||
2215 | 188 | Master_SSL_Key | ||
2216 | 189 | Seconds_Behind_Master # | ||
2217 | 190 | Master_SSL_Verify_Server_Cert No | ||
2218 | 191 | Last_IO_Errno 0 | ||
2219 | 192 | Last_IO_Error | ||
2220 | 193 | Last_SQL_Errno 0 | ||
2221 | 194 | Last_SQL_Error | ||
2222 | 195 | Replicate_Ignore_Server_Ids | ||
2223 | 196 | Master_Server_Id 1 | ||
2224 | 197 | start slave until master_log_file='master-bin', master_log_pos=561; | ||
2225 | 198 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL | ||
2226 | 199 | start slave until master_log_file='master-bin.000001', master_log_pos=561, relay_log_pos=12; | ||
2227 | 200 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL | ||
2228 | 201 | start slave until master_log_file='master-bin.000001'; | ||
2229 | 202 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL | ||
2230 | 203 | start slave until relay_log_file='slave-relay-bin.000002'; | ||
2231 | 204 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL | ||
2232 | 205 | start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561; | ||
2233 | 206 | ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL | ||
2234 | 207 | start slave sql_thread; | ||
2235 | 208 | start slave until master_log_file='master-bin.000001', master_log_pos=740; | ||
2291 | 209 | Warnings: | 56 | Warnings: |
2295 | 210 | Level Note | 57 | Note 1254 Slave is already running |
2296 | 211 | Code 1254 | 58 | include/stop_slave.inc |
2297 | 212 | Message Slave is already running | 59 | RESET SLAVE; |
2298 | 60 | include/rpl_end.inc | ||
2299 | 213 | 61 | ||
2300 | === modified file 'Percona-Server/mysql-test/suite/engines/funcs/t/disabled.def' | |||
2301 | --- Percona-Server/mysql-test/suite/engines/funcs/t/disabled.def 2011-01-05 06:53:05 +0000 | |||
2302 | +++ Percona-Server/mysql-test/suite/engines/funcs/t/disabled.def 2013-02-18 05:17:25 +0000 | |||
2303 | @@ -70,7 +70,6 @@ | |||
2304 | 70 | rpl000017 : Result Difference Due To Change In .inc file | 70 | rpl000017 : Result Difference Due To Change In .inc file |
2305 | 71 | rpl_skip_error : Result Difference Due To Change In .inc file | 71 | rpl_skip_error : Result Difference Due To Change In .inc file |
2306 | 72 | 72 | ||
2307 | 73 | rpl_row_until : Test Present in rpl suite as well . Test Fails table with t2 table not found. | ||
2308 | 74 | rpl_loaddata_s : Test Present in rpl suite as well . Test Fails due to bin log truncation. | 73 | rpl_loaddata_s : Test Present in rpl suite as well . Test Fails due to bin log truncation. |
2309 | 75 | rpl_log_pos : Test Present in rpl suite as well . Test Fails due to bin log truncation. | 74 | rpl_log_pos : Test Present in rpl suite as well . Test Fails due to bin log truncation. |
2310 | 76 | rpl_row_NOW : Result Difference Due To Change In .inc file | 75 | rpl_row_NOW : Result Difference Due To Change In .inc file |
2311 | @@ -96,4 +95,3 @@ | |||
2312 | 96 | rpl_row_inexist_tbl : Result Difference Due To Change In .inc file | 95 | rpl_row_inexist_tbl : Result Difference Due To Change In .inc file |
2313 | 97 | rpl_sp : Result Difference Due To Change In .inc file | 96 | rpl_sp : Result Difference Due To Change In .inc file |
2314 | 98 | rpl_rbr_to_sbr : Result Difference Due To Change In .inc file | 97 | rpl_rbr_to_sbr : Result Difference Due To Change In .inc file |
2315 | 99 | rpl_row_until : Test Timesout | ||
2316 | 100 | 98 | ||
2317 | === modified file 'Percona-Server/mysql-test/suite/engines/funcs/t/rpl_row_until.test' | |||
2318 | --- Percona-Server/mysql-test/suite/engines/funcs/t/rpl_row_until.test 2011-01-05 06:53:05 +0000 | |||
2319 | +++ Percona-Server/mysql-test/suite/engines/funcs/t/rpl_row_until.test 2013-02-18 05:17:25 +0000 | |||
2320 | @@ -2,90 +2,126 @@ | |||
2321 | 2 | -- source include/have_binlog_format_row.inc | 2 | -- source include/have_binlog_format_row.inc |
2322 | 3 | -- source include/master-slave.inc | 3 | -- source include/master-slave.inc |
2323 | 4 | 4 | ||
2360 | 5 | # Test is dependent on binlog positions | 5 | # Note: The test is dependent on binlog positions |
2361 | 6 | 6 | ||
2362 | 7 | # prepare version for substitutions | 7 | # Create some events on master |
2363 | 8 | let $VERSION=`select version()`; | 8 | connection master; |
2364 | 9 | 9 | CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY); | |
2365 | 10 | # stop slave before he will start replication also sync with master | 10 | INSERT INTO t1 VALUES (1),(2),(3),(4); |
2366 | 11 | # for avoiding undetermenistic behaviour | 11 | DROP TABLE t1; |
2367 | 12 | save_master_pos; | 12 | # Save master log position for query DROP TABLE t1 |
2368 | 13 | connection slave; | 13 | save_master_pos; |
2369 | 14 | sync_with_master; | 14 | let $master_pos_drop_t1= query_get_value(SHOW BINLOG EVENTS, Pos, 7); |
2370 | 15 | stop slave; | 15 | let $master_log_file= query_get_value(SHOW BINLOG EVENTS, Log_name, 7); |
2371 | 16 | 16 | ||
2372 | 17 | connection master; | 17 | CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY); |
2373 | 18 | # create some events on master | 18 | # Save master log position for query CREATE TABLE t2 |
2374 | 19 | create table t1(n int not null auto_increment primary key); | 19 | save_master_pos; |
2375 | 20 | insert into t1 values (1),(2),(3),(4); | 20 | let $master_pos_create_t2= query_get_value(SHOW BINLOG EVENTS, Pos, 8); |
2376 | 21 | drop table t1; | 21 | |
2377 | 22 | create table t2(n int not null auto_increment primary key); | 22 | INSERT INTO t2 VALUES (1),(2); |
2378 | 23 | insert into t2 values (1),(2); | 23 | save_master_pos; |
2379 | 24 | insert into t2 values (3),(4); | 24 | # Save master log position for query INSERT INTO t2 VALUES (1),(2); |
2380 | 25 | drop table t2; | 25 | let $master_pos_insert1_t2= query_get_value(SHOW BINLOG EVENTS, End_log_pos, 12); |
2381 | 26 | 26 | sync_slave_with_master; | |
2382 | 27 | # try to replicate all queries until drop of t1 | 27 | |
2383 | 28 | connection slave; | 28 | # Save relay log position for query INSERT INTO t2 VALUES (1),(2); |
2384 | 29 | start slave until master_log_file='master-bin.000001', master_log_pos=311; | 29 | let $relay_pos_insert1_t2= query_get_value(show slave status, Relay_Log_Pos, 1); |
2385 | 30 | sleep 2; | 30 | |
2386 | 31 | wait_for_slave_to_stop; | 31 | connection master; |
2387 | 32 | # here table should be still not deleted | 32 | INSERT INTO t2 VALUES (3),(4); |
2388 | 33 | select * from t1; | 33 | DROP TABLE t2; |
2389 | 34 | --vertical_results | 34 | # Save master log position for query INSERT INTO t2 VALUES (1),(2); |
2390 | 35 | --replace_result $MASTER_MYPORT MASTER_MYPORT | 35 | let $master_pos_drop_t2= query_get_value(SHOW BINLOG EVENTS, End_log_pos, 17); |
2391 | 36 | --replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 # | 36 | sync_slave_with_master; |
2392 | 37 | show slave status; | 37 | |
2393 | 38 | 38 | --source include/stop_slave.inc | |
2394 | 39 | # this should fail right after start | 39 | # Reset slave. |
2395 | 40 | start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291; | 40 | RESET SLAVE; |
2396 | 41 | --disable_query_log | ||
2397 | 42 | eval CHANGE MASTER TO MASTER_USER='root', MASTER_CONNECT_RETRY=1, MASTER_HOST='127.0.0.1', MASTER_PORT=$MASTER_MYPORT; | ||
2398 | 43 | --enable_query_log | ||
2399 | 44 | |||
2400 | 45 | # Try to replicate all queries until drop of t1 | ||
2401 | 46 | connection slave; | ||
2402 | 47 | echo START SLAVE UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=master_pos_drop_t1; | ||
2403 | 48 | --disable_query_log | ||
2404 | 49 | eval START SLAVE UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=$master_pos_drop_t1; | ||
2405 | 50 | --enable_query_log | ||
2406 | 51 | --source include/wait_for_slave_sql_to_stop.inc | ||
2407 | 52 | |||
2408 | 53 | # Here table should be still not deleted | ||
2409 | 54 | SELECT * FROM t1; | ||
2410 | 55 | --let $slave_param= Exec_Master_Log_Pos | ||
2411 | 56 | --let $slave_param_value= $master_pos_drop_t1 | ||
2412 | 57 | --source include/check_slave_param.inc | ||
2413 | 58 | |||
2414 | 59 | # This should fail right after start | ||
2415 | 60 | --replace_result 291 MASTER_LOG_POS | ||
2416 | 61 | START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=291; | ||
2417 | 62 | --source include/wait_for_slave_sql_to_stop.inc | ||
2418 | 41 | # again this table should be still not deleted | 63 | # again this table should be still not deleted |
2436 | 42 | select * from t1; | 64 | SELECT * FROM t1; |
2437 | 43 | sleep 2; | 65 | |
2438 | 44 | wait_for_slave_to_stop; | 66 | --let $slave_param= Exec_Master_Log_Pos |
2439 | 45 | --vertical_results | 67 | --let $slave_param_value= $master_pos_drop_t1 |
2440 | 46 | --replace_result $MASTER_MYPORT MASTER_MYPORT | 68 | --source include/check_slave_param.inc |
2441 | 47 | --replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 # | 69 | |
2442 | 48 | show slave status; | 70 | # Try replicate all up to and not including the second insert to t2; |
2443 | 49 | 71 | echo START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2; | |
2444 | 50 | # try replicate all up to and not including the second insert to t2; | 72 | --disable_query_log |
2445 | 51 | start slave until relay_log_file='slave-relay-bin.000004', relay_log_pos=728; | 73 | eval START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=$relay_pos_insert1_t2; |
2446 | 52 | sleep 2; | 74 | --enable_query_log |
2447 | 53 | wait_for_slave_to_stop; | 75 | --source include/wait_for_slave_sql_to_stop.inc |
2448 | 54 | select * from t2; | 76 | SELECT * FROM t2; |
2449 | 55 | --vertical_results | 77 | |
2450 | 56 | --replace_result $MASTER_MYPORT MASTER_MYPORT | 78 | --let $slave_param= Exec_Master_Log_Pos |
2451 | 57 | --replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 # | 79 | --let $slave_param_value= $master_pos_insert1_t2 |
2452 | 58 | show slave status; | 80 | --source include/check_slave_param.inc |
2453 | 59 | 81 | ||
2454 | 60 | # clean up | 82 | # clean up |
2456 | 61 | start slave; | 83 | START SLAVE; |
2457 | 84 | --source include/wait_for_slave_to_start.inc | ||
2458 | 62 | connection master; | 85 | connection master; |
2463 | 63 | save_master_pos; | 86 | sync_slave_with_master; |
2464 | 64 | connection slave; | 87 | --source include/stop_slave.inc |
2461 | 65 | sync_with_master; | ||
2462 | 66 | stop slave; | ||
2465 | 67 | 88 | ||
2470 | 68 | # this should stop immediately as we are already there | 89 | # This should stop immediately as we are already there |
2471 | 69 | start slave until master_log_file='master-bin.000001', master_log_pos=740; | 90 | echo START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=master_pos_create_t2; |
2472 | 70 | sleep 2; | 91 | --disable_query_log |
2473 | 71 | wait_for_slave_to_stop; | 92 | eval START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=$master_pos_create_t2; |
2474 | 93 | --enable_query_log | ||
2475 | 94 | let $slave_param= Until_Log_Pos; | ||
2476 | 95 | let $slave_param_value= $master_pos_create_t2; | ||
2477 | 96 | --source include/wait_for_slave_param.inc | ||
2478 | 97 | --source include/wait_for_slave_sql_to_stop.inc | ||
2479 | 72 | # here the sql slave thread should be stopped | 98 | # here the sql slave thread should be stopped |
2484 | 73 | --vertical_results | 99 | --let $slave_param= Exec_Master_Log_Pos |
2485 | 74 | --replace_result $MASTER_MYPORT MASTER_MYPORT bin.000005 bin.000004 bin.000006 bin.000004 bin.000007 bin.000004 | 100 | --let $slave_param_value= $master_pos_drop_t2 |
2486 | 75 | --replace_column 1 # 7 # 9 # 22 # 23 # 33 # | 101 | --source include/check_slave_param.inc |
2483 | 76 | show slave status; | ||
2487 | 77 | 102 | ||
2488 | 78 | #testing various error conditions | 103 | #testing various error conditions |
2499 | 79 | --error 1277 | 104 | --replace_result 561 MASTER_LOG_POS |
2500 | 80 | start slave until master_log_file='master-bin', master_log_pos=561; | 105 | --error 1277 |
2501 | 81 | --error 1277 | 106 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=561; |
2502 | 82 | start 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 |
2503 | 83 | --error 1277 | 108 | --error 1277 |
2504 | 84 | start slave until master_log_file='master-bin.000001'; | 109 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=561, RELAY_LOG_POS=12; |
2505 | 85 | --error 1277 | 110 | --error 1277 |
2506 | 86 | start slave until relay_log_file='slave-relay-bin.000002'; | 111 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001'; |
2507 | 87 | --error 1277 | 112 | --error 1277 |
2508 | 88 | start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561; | 113 | START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009'; |
2509 | 114 | --replace_result 561 MASTER_LOG_POS | ||
2510 | 115 | --error 1277 | ||
2511 | 116 | START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=561; | ||
2512 | 89 | # Warning should be given for second command | 117 | # Warning should be given for second command |
2515 | 90 | start slave sql_thread; | 118 | START SLAVE; |
2516 | 91 | start slave until master_log_file='master-bin.000001', master_log_pos=740; | 119 | --replace_result 740 MASTER_LOG_POS |
2517 | 120 | START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=740; | ||
2518 | 121 | |||
2519 | 122 | --source include/stop_slave.inc | ||
2520 | 123 | # Clear slave IO error. | ||
2521 | 124 | RESET SLAVE; | ||
2522 | 125 | |||
2523 | 126 | --let $rpl_only_running_threads= 1 | ||
2524 | 127 | --source include/rpl_end.inc | ||
2525 | 92 | 128 | ||
2526 | === modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb-index.result' | |||
2527 | --- Percona-Server/mysql-test/suite/innodb/r/innodb-index.result 2012-09-01 05:57:53 +0000 | |||
2528 | +++ Percona-Server/mysql-test/suite/innodb/r/innodb-index.result 2013-02-18 05:17:25 +0000 | |||
2529 | @@ -956,7 +956,7 @@ | |||
2530 | 956 | test.t1 check status OK | 956 | test.t1 check status OK |
2531 | 957 | explain select * from t1 where b like 'adfd%'; | 957 | explain select * from t1 where b like 'adfd%'; |
2532 | 958 | id select_type table type possible_keys key key_len ref rows Extra | 958 | id select_type table type possible_keys key key_len ref rows Extra |
2534 | 959 | 1 SIMPLE t1 ALL b NULL NULL NULL 15 Using where | 959 | 1 SIMPLE t1 range b b 769 NULL 11 Using where |
2535 | 960 | drop table t1; | 960 | drop table t1; |
2536 | 961 | set global innodb_file_per_table=on; | 961 | set global innodb_file_per_table=on; |
2537 | 962 | set global innodb_file_format='Barracuda'; | 962 | set global innodb_file_format='Barracuda'; |
2538 | 963 | 963 | ||
2539 | === added file 'Percona-Server/mysql-test/suite/innodb/r/innodb_bug14147491.result' | |||
2540 | --- Percona-Server/mysql-test/suite/innodb/r/innodb_bug14147491.result 1970-01-01 00:00:00 +0000 | |||
2541 | +++ Percona-Server/mysql-test/suite/innodb/r/innodb_bug14147491.result 2013-02-18 05:17:25 +0000 | |||
2542 | @@ -0,0 +1,17 @@ | |||
2543 | 1 | CALL mtr.add_suppression("InnoDB: Error: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts"); | ||
2544 | 2 | CALL mtr.add_suppression("InnoDB: Warning: database page corruption or a failed"); | ||
2545 | 3 | # Create and populate the table to be corrupted | ||
2546 | 4 | CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ENGINE=InnoDB; | ||
2547 | 5 | INSERT INTO t1 (b) VALUES ('corrupt me'); | ||
2548 | 6 | INSERT INTO t1 (b) VALUES ('corrupt me'); | ||
2549 | 7 | # Restart server to flush buffers | ||
2550 | 8 | # Corrupt the table | ||
2551 | 9 | Munged a string. | ||
2552 | 10 | Munged a string. | ||
2553 | 11 | # Write file to make mysql-test-run.pl expect crash and restart | ||
2554 | 12 | SELECT * FROM t1; | ||
2555 | 13 | ERROR HY000: Lost connection to MySQL server during query | ||
2556 | 14 | # Turn on reconnect | ||
2557 | 15 | # Wait for server to fully start | ||
2558 | 16 | # Cleanup | ||
2559 | 17 | DROP TABLE t1; | ||
2560 | 0 | 18 | ||
2561 | === added file 'Percona-Server/mysql-test/suite/innodb/r/innodb_bug14676111.result' | |||
2562 | --- Percona-Server/mysql-test/suite/innodb/r/innodb_bug14676111.result 1970-01-01 00:00:00 +0000 | |||
2563 | +++ Percona-Server/mysql-test/suite/innodb/r/innodb_bug14676111.result 2013-02-18 05:17:25 +0000 | |||
2564 | @@ -0,0 +1,53 @@ | |||
2565 | 1 | drop table if exists t1; | ||
2566 | 2 | CREATE TABLE t1 (a int not null primary key) engine=InnoDB; | ||
2567 | 3 | set global innodb_limit_optimistic_insert_debug = 2; | ||
2568 | 4 | insert into t1 values (1); | ||
2569 | 5 | insert into t1 values (5); | ||
2570 | 6 | insert into t1 values (4); | ||
2571 | 7 | insert into t1 values (3); | ||
2572 | 8 | insert into t1 values (2); | ||
2573 | 9 | analyze table t1; | ||
2574 | 10 | Table Op Msg_type Msg_text | ||
2575 | 11 | test.t1 analyze status OK | ||
2576 | 12 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2577 | 13 | DATA_LENGTH / 16384 | ||
2578 | 14 | 10.0000 | ||
2579 | 15 | delete from t1 where a=4; | ||
2580 | 16 | analyze table t1; | ||
2581 | 17 | Table Op Msg_type Msg_text | ||
2582 | 18 | test.t1 analyze status OK | ||
2583 | 19 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2584 | 20 | DATA_LENGTH / 16384 | ||
2585 | 21 | 8.0000 | ||
2586 | 22 | delete from t1 where a=5; | ||
2587 | 23 | analyze table t1; | ||
2588 | 24 | Table Op Msg_type Msg_text | ||
2589 | 25 | test.t1 analyze status OK | ||
2590 | 26 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2591 | 27 | DATA_LENGTH / 16384 | ||
2592 | 28 | 5.0000 | ||
2593 | 29 | set global innodb_limit_optimistic_insert_debug = 10000; | ||
2594 | 30 | delete from t1 where a=2; | ||
2595 | 31 | analyze table t1; | ||
2596 | 32 | Table Op Msg_type Msg_text | ||
2597 | 33 | test.t1 analyze status OK | ||
2598 | 34 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2599 | 35 | DATA_LENGTH / 16384 | ||
2600 | 36 | 3.0000 | ||
2601 | 37 | insert into t1 values (2); | ||
2602 | 38 | delete from t1 where a=2; | ||
2603 | 39 | analyze table t1; | ||
2604 | 40 | Table Op Msg_type Msg_text | ||
2605 | 41 | test.t1 analyze status OK | ||
2606 | 42 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2607 | 43 | DATA_LENGTH / 16384 | ||
2608 | 44 | 2.0000 | ||
2609 | 45 | insert into t1 values (2); | ||
2610 | 46 | delete from t1 where a=2; | ||
2611 | 47 | analyze table t1; | ||
2612 | 48 | Table Op Msg_type Msg_text | ||
2613 | 49 | test.t1 analyze status OK | ||
2614 | 50 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2615 | 51 | DATA_LENGTH / 16384 | ||
2616 | 52 | 1.0000 | ||
2617 | 53 | drop table t1; | ||
2618 | 0 | 54 | ||
2619 | === modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb_mysql.result' | |||
2620 | --- Percona-Server/mysql-test/suite/innodb/r/innodb_mysql.result 2011-05-26 15:50:06 +0000 | |||
2621 | +++ Percona-Server/mysql-test/suite/innodb/r/innodb_mysql.result 2013-02-18 05:17:25 +0000 | |||
2622 | @@ -343,7 +343,7 @@ | |||
2623 | 343 | 1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary | 343 | 1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary |
2624 | 344 | explain select distinct f1, f2 from t1; | 344 | explain select distinct f1, f2 from t1; |
2625 | 345 | id select_type table type possible_keys key key_len ref rows Extra | 345 | id select_type table type possible_keys key key_len ref rows Extra |
2627 | 346 | 1 SIMPLE t1 range NULL PRIMARY 5 NULL 3 Using index for group-by; Using temporary | 346 | 1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index |
2628 | 347 | drop table t1; | 347 | drop table t1; |
2629 | 348 | CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20), | 348 | CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20), |
2630 | 349 | INDEX (name)); | 349 | INDEX (name)); |
2631 | @@ -1738,7 +1738,7 @@ | |||
2632 | 1738 | FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x; | 1738 | FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x; |
2633 | 1739 | id select_type table type possible_keys key key_len ref rows Extra | 1739 | id select_type table type possible_keys key key_len ref rows Extra |
2634 | 1740 | 1 PRIMARY <derived2> system NULL NULL NULL NULL 1 | 1740 | 1 PRIMARY <derived2> system NULL NULL NULL NULL 1 |
2636 | 1741 | 2 DERIVED t1 ALL c3,c2 c3 5 5 Using filesort | 1741 | 2 DERIVED t1 ALL c3,c2 c3 5 5 Using where; Using filesort |
2637 | 1742 | DROP TABLE t1; | 1742 | DROP TABLE t1; |
2638 | 1743 | CREATE TABLE t1 (c1 REAL, c2 REAL, c3 REAL, KEY (c3), KEY (c2, c3)) | 1743 | CREATE TABLE t1 (c1 REAL, c2 REAL, c3 REAL, KEY (c3), KEY (c2, c3)) |
2639 | 1744 | ENGINE=InnoDB; | 1744 | ENGINE=InnoDB; |
2640 | @@ -1752,7 +1752,7 @@ | |||
2641 | 1752 | FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x; | 1752 | FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x; |
2642 | 1753 | id select_type table type possible_keys key key_len ref rows Extra | 1753 | id select_type table type possible_keys key key_len ref rows Extra |
2643 | 1754 | 1 PRIMARY <derived2> system NULL NULL NULL NULL 1 | 1754 | 1 PRIMARY <derived2> system NULL NULL NULL NULL 1 |
2645 | 1755 | 2 DERIVED t1 ALL c3,c2 c3 9 5 Using filesort | 1755 | 2 DERIVED t1 ALL c3,c2 c3 9 5 Using where; Using filesort |
2646 | 1756 | DROP TABLE t1; | 1756 | DROP TABLE t1; |
2647 | 1757 | CREATE TABLE t1 (c1 DECIMAL(12,2), c2 DECIMAL(12,2), c3 DECIMAL(12,2), | 1757 | CREATE TABLE t1 (c1 DECIMAL(12,2), c2 DECIMAL(12,2), c3 DECIMAL(12,2), |
2648 | 1758 | KEY (c3), KEY (c2, c3)) | 1758 | KEY (c3), KEY (c2, c3)) |
2649 | @@ -1767,7 +1767,7 @@ | |||
2650 | 1767 | FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x; | 1767 | FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x; |
2651 | 1768 | id select_type table type possible_keys key key_len ref rows Extra | 1768 | id select_type table type possible_keys key key_len ref rows Extra |
2652 | 1769 | 1 PRIMARY <derived2> system NULL NULL NULL NULL 1 | 1769 | 1 PRIMARY <derived2> system NULL NULL NULL NULL 1 |
2654 | 1770 | 2 DERIVED t1 ALL c3,c2 c3 7 5 Using filesort | 1770 | 2 DERIVED t1 ALL c3,c2 c3 7 5 Using where; Using filesort |
2655 | 1771 | DROP TABLE t1; | 1771 | DROP TABLE t1; |
2656 | 1772 | End of 5.1 tests | 1772 | End of 5.1 tests |
2657 | 1773 | # | 1773 | # |
2658 | 1774 | 1774 | ||
2659 | === added file 'Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491-master.opt' | |||
2660 | --- Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491-master.opt 1970-01-01 00:00:00 +0000 | |||
2661 | +++ Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491-master.opt 2013-02-18 05:17:25 +0000 | |||
2662 | @@ -0,0 +1,1 @@ | |||
2663 | 1 | --innodb_file_per_table=1 --skip-stack-trace --skip-core-file | ||
2664 | 0 | 2 | ||
2665 | === added file 'Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491.test' | |||
2666 | --- Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491.test 1970-01-01 00:00:00 +0000 | |||
2667 | +++ Percona-Server/mysql-test/suite/innodb/t/innodb_bug14147491.test 2013-02-18 05:17:25 +0000 | |||
2668 | @@ -0,0 +1,75 @@ | |||
2669 | 1 | # | ||
2670 | 2 | # Test opening a corrupted table. | ||
2671 | 3 | # | ||
2672 | 4 | |||
2673 | 5 | # Don't test under valgrind, memory leaks will occur | ||
2674 | 6 | source include/not_valgrind.inc; | ||
2675 | 7 | # Avoid CrashReporter popup on Mac | ||
2676 | 8 | source include/not_crashrep.inc; | ||
2677 | 9 | # Don't test under embedded | ||
2678 | 10 | source include/not_embedded.inc; | ||
2679 | 11 | # Require InnoDB | ||
2680 | 12 | source include/have_innodb.inc; | ||
2681 | 13 | |||
2682 | 14 | CALL mtr.add_suppression("InnoDB: Error: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts"); | ||
2683 | 15 | CALL mtr.add_suppression("InnoDB: Warning: database page corruption or a failed"); | ||
2684 | 16 | |||
2685 | 17 | --echo # Create and populate the table to be corrupted | ||
2686 | 18 | CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ENGINE=InnoDB; | ||
2687 | 19 | INSERT INTO t1 (b) VALUES ('corrupt me'); | ||
2688 | 20 | --disable_query_log | ||
2689 | 21 | --let $i = 10 | ||
2690 | 22 | while ($i) | ||
2691 | 23 | { | ||
2692 | 24 | INSERT INTO t1 (b) VALUES (REPEAT('abcdefghijklmnopqrstuvwxyz', 100)); | ||
2693 | 25 | dec $i; | ||
2694 | 26 | } | ||
2695 | 27 | --enable_query_log | ||
2696 | 28 | INSERT INTO t1 (b) VALUES ('corrupt me'); | ||
2697 | 29 | |||
2698 | 30 | --echo # Restart server to flush buffers | ||
2699 | 31 | source include/restart_mysqld.inc; | ||
2700 | 32 | |||
2701 | 33 | --echo # Corrupt the table | ||
2702 | 34 | let $MYSQLD_DATADIR=`select @@datadir`; | ||
2703 | 35 | let t1_IBD = $MYSQLD_DATADIR/test/t1.ibd; | ||
2704 | 36 | |||
2705 | 37 | perl; | ||
2706 | 38 | use strict; | ||
2707 | 39 | use warnings; | ||
2708 | 40 | use Fcntl qw(:DEFAULT :seek); | ||
2709 | 41 | |||
2710 | 42 | my $ibd_file = $ENV{'t1_IBD'}; | ||
2711 | 43 | |||
2712 | 44 | my $chunk; | ||
2713 | 45 | my $len; | ||
2714 | 46 | |||
2715 | 47 | sysopen IBD_FILE, $ibd_file, O_RDWR || die "Unable to open $ibd_file"; | ||
2716 | 48 | |||
2717 | 49 | while ($len = sysread IBD_FILE, $chunk, 1024) | ||
2718 | 50 | { | ||
2719 | 51 | if ($chunk =~ s/corrupt me/korrupt me/) | ||
2720 | 52 | { | ||
2721 | 53 | print "Munged a string.\n"; | ||
2722 | 54 | sysseek IBD_FILE, -$len, SEEK_CUR; | ||
2723 | 55 | syswrite IBD_FILE, $chunk, $len; | ||
2724 | 56 | } | ||
2725 | 57 | } | ||
2726 | 58 | |||
2727 | 59 | close IBD_FILE; | ||
2728 | 60 | EOF | ||
2729 | 61 | |||
2730 | 62 | --echo # Write file to make mysql-test-run.pl expect crash and restart | ||
2731 | 63 | --exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect | ||
2732 | 64 | |||
2733 | 65 | --error 2013 | ||
2734 | 66 | SELECT * FROM t1; | ||
2735 | 67 | |||
2736 | 68 | --echo # Turn on reconnect | ||
2737 | 69 | --enable_reconnect | ||
2738 | 70 | |||
2739 | 71 | --echo # Wait for server to fully start | ||
2740 | 72 | --source include/wait_until_connected_again.inc | ||
2741 | 73 | |||
2742 | 74 | --echo # Cleanup | ||
2743 | 75 | DROP TABLE t1; | ||
2744 | 0 | 76 | ||
2745 | === added file 'Percona-Server/mysql-test/suite/innodb/t/innodb_bug14676111.test' | |||
2746 | --- Percona-Server/mysql-test/suite/innodb/t/innodb_bug14676111.test 1970-01-01 00:00:00 +0000 | |||
2747 | +++ Percona-Server/mysql-test/suite/innodb/t/innodb_bug14676111.test 2013-02-18 05:17:25 +0000 | |||
2748 | @@ -0,0 +1,128 @@ | |||
2749 | 1 | # Test for bug #14676111: WRONG PAGE_LEVEL WRITTEN FOR UPPER THAN FATHER PAGE AT BTR_LIFT_PAGE_UP() | ||
2750 | 2 | |||
2751 | 3 | -- source include/have_innodb.inc | ||
2752 | 4 | -- source include/have_debug.inc | ||
2753 | 5 | |||
2754 | 6 | if (`select count(*)=0 from information_schema.global_variables where variable_name = 'INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG'`) | ||
2755 | 7 | { | ||
2756 | 8 | --skip Test requires InnoDB built with UNIV_DEBUG definition. | ||
2757 | 9 | } | ||
2758 | 10 | |||
2759 | 11 | --disable_query_log | ||
2760 | 12 | set @old_innodb_limit_optimistic_insert_debug = @@innodb_limit_optimistic_insert_debug; | ||
2761 | 13 | --enable_query_log | ||
2762 | 14 | --disable_warnings | ||
2763 | 15 | drop table if exists t1; | ||
2764 | 16 | --enable_warnings | ||
2765 | 17 | |||
2766 | 18 | CREATE TABLE t1 (a int not null primary key) engine=InnoDB; | ||
2767 | 19 | |||
2768 | 20 | let $wait_condition= | ||
2769 | 21 | SELECT VARIABLE_VALUE < 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS | ||
2770 | 22 | WHERE VARIABLE_NAME = 'INNODB_PURGE_TRX_ID_AGE'; | ||
2771 | 23 | |||
2772 | 24 | # | ||
2773 | 25 | # make 4 leveled straight tree | ||
2774 | 26 | # | ||
2775 | 27 | set global innodb_limit_optimistic_insert_debug = 2; | ||
2776 | 28 | insert into t1 values (1); | ||
2777 | 29 | insert into t1 values (5); | ||
2778 | 30 | #current tree form | ||
2779 | 31 | # (1, 5) | ||
2780 | 32 | |||
2781 | 33 | insert into t1 values (4); | ||
2782 | 34 | #records in a page is limited to 2 artificially. root rise occurs | ||
2783 | 35 | #current tree form | ||
2784 | 36 | # (1, 5) | ||
2785 | 37 | #(1, 4) (5) | ||
2786 | 38 | |||
2787 | 39 | insert into t1 values (3); | ||
2788 | 40 | #current tree form | ||
2789 | 41 | # (1, 5) | ||
2790 | 42 | # (1, 4) (5) | ||
2791 | 43 | #(1, 3) (4) (5) | ||
2792 | 44 | |||
2793 | 45 | insert into t1 values (2); | ||
2794 | 46 | #current tree form | ||
2795 | 47 | # (1, 5) | ||
2796 | 48 | # (1, 4) (5) | ||
2797 | 49 | # (1, 3) (4) (5) | ||
2798 | 50 | #(1, 2) (3) (4) (5) | ||
2799 | 51 | |||
2800 | 52 | analyze table t1; | ||
2801 | 53 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2802 | 54 | |||
2803 | 55 | delete from t1 where a=4; | ||
2804 | 56 | --source include/wait_condition.inc | ||
2805 | 57 | #deleting 1 record of 2 records don't cause merge artificially. | ||
2806 | 58 | #current tree form | ||
2807 | 59 | # (1, 5) | ||
2808 | 60 | # (1) (5) | ||
2809 | 61 | # (1, 3) (5) | ||
2810 | 62 | #(1, 2) (3) (5) | ||
2811 | 63 | |||
2812 | 64 | analyze table t1; | ||
2813 | 65 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2814 | 66 | |||
2815 | 67 | delete from t1 where a=5; | ||
2816 | 68 | --source include/wait_condition.inc | ||
2817 | 69 | #deleting 1 record of 2 records don't cause merge artificially. | ||
2818 | 70 | #current tree form | ||
2819 | 71 | # (1) | ||
2820 | 72 | # (1) | ||
2821 | 73 | # (1, 3) <- lift up this level next, when deleting node ptr | ||
2822 | 74 | #(1, 2) (3) <- merged next | ||
2823 | 75 | |||
2824 | 76 | analyze table t1; | ||
2825 | 77 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2826 | 78 | |||
2827 | 79 | # | ||
2828 | 80 | # cause merge at level 0 | ||
2829 | 81 | # | ||
2830 | 82 | |||
2831 | 83 | #disable the artificial limitation of records in a page | ||
2832 | 84 | set global innodb_limit_optimistic_insert_debug = 10000; | ||
2833 | 85 | delete from t1 where a=2; | ||
2834 | 86 | --source include/wait_condition.inc | ||
2835 | 87 | #merge page occurs. and lift up occurs. | ||
2836 | 88 | #current tree form | ||
2837 | 89 | # (1) | ||
2838 | 90 | # (1) | ||
2839 | 91 | # (1, 3) | ||
2840 | 92 | |||
2841 | 93 | analyze table t1; | ||
2842 | 94 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2843 | 95 | |||
2844 | 96 | insert into t1 values (2); | ||
2845 | 97 | #current tree form | ||
2846 | 98 | # (1) | ||
2847 | 99 | # (1) <- lift up this level next, because it is not root | ||
2848 | 100 | # (1, 2, 3) | ||
2849 | 101 | |||
2850 | 102 | delete from t1 where a=2; | ||
2851 | 103 | --source include/wait_condition.inc | ||
2852 | 104 | #current tree form | ||
2853 | 105 | # (1) | ||
2854 | 106 | # (1, 3) | ||
2855 | 107 | |||
2856 | 108 | analyze table t1; | ||
2857 | 109 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2858 | 110 | |||
2859 | 111 | insert into t1 values (2); | ||
2860 | 112 | #current tree form | ||
2861 | 113 | # (1) | ||
2862 | 114 | # (1, 2, 3) <- lift up this level next, because the father is root | ||
2863 | 115 | |||
2864 | 116 | delete from t1 where a=2; | ||
2865 | 117 | --source include/wait_condition.inc | ||
2866 | 118 | #current tree form | ||
2867 | 119 | # (1, 3) | ||
2868 | 120 | |||
2869 | 121 | analyze table t1; | ||
2870 | 122 | select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1'; | ||
2871 | 123 | |||
2872 | 124 | drop table t1; | ||
2873 | 125 | |||
2874 | 126 | --disable_query_log | ||
2875 | 127 | set global innodb_limit_optimistic_insert_debug = @old_innodb_limit_optimistic_insert_debug; | ||
2876 | 128 | --enable_query_log | ||
2877 | 0 | 129 | ||
2878 | === modified file 'Percona-Server/mysql-test/suite/parts/r/partition_alter4_innodb.result' | |||
2879 | --- Percona-Server/mysql-test/suite/parts/r/partition_alter4_innodb.result 2008-11-04 07:43:21 +0000 | |||
2880 | +++ Percona-Server/mysql-test/suite/parts/r/partition_alter4_innodb.result 2013-02-18 05:17:25 +0000 | |||
2881 | @@ -37566,7 +37566,7 @@ | |||
2882 | 37566 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 37566 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2883 | 37567 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; | 37567 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; |
2884 | 37568 | Table Op Msg_type Msg_text | 37568 | Table Op Msg_type Msg_text |
2886 | 37569 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 37569 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2887 | 37570 | test.t1 optimize status OK | 37570 | test.t1 optimize status OK |
2888 | 37571 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 37571 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2889 | 37572 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 37572 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2890 | @@ -38026,7 +38026,7 @@ | |||
2891 | 38026 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 38026 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2892 | 38027 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; | 38027 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; |
2893 | 38028 | Table Op Msg_type Msg_text | 38028 | Table Op Msg_type Msg_text |
2895 | 38029 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 38029 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2896 | 38030 | test.t1 optimize status OK | 38030 | test.t1 optimize status OK |
2897 | 38031 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 38031 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2898 | 38032 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 38032 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2899 | @@ -38497,7 +38497,7 @@ | |||
2900 | 38497 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 38497 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2901 | 38498 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; | 38498 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; |
2902 | 38499 | Table Op Msg_type Msg_text | 38499 | Table Op Msg_type Msg_text |
2904 | 38500 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 38500 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2905 | 38501 | test.t1 optimize status OK | 38501 | test.t1 optimize status OK |
2906 | 38502 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 38502 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2907 | 38503 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 38503 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2908 | @@ -38969,7 +38969,7 @@ | |||
2909 | 38969 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 38969 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2910 | 38970 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; | 38970 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; |
2911 | 38971 | Table Op Msg_type Msg_text | 38971 | Table Op Msg_type Msg_text |
2913 | 38972 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 38972 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2914 | 38973 | test.t1 optimize status OK | 38973 | test.t1 optimize status OK |
2915 | 38974 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 38974 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2916 | 38975 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 38975 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2917 | @@ -39435,7 +39435,7 @@ | |||
2918 | 39435 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 39435 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2919 | 39436 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; | 39436 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; |
2920 | 39437 | Table Op Msg_type Msg_text | 39437 | Table Op Msg_type Msg_text |
2922 | 39438 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 39438 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2923 | 39439 | test.t1 optimize status OK | 39439 | test.t1 optimize status OK |
2924 | 39440 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 39440 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2925 | 39441 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 39441 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2926 | @@ -39907,7 +39907,7 @@ | |||
2927 | 39907 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 39907 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2928 | 39908 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; | 39908 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; |
2929 | 39909 | Table Op Msg_type Msg_text | 39909 | Table Op Msg_type Msg_text |
2931 | 39910 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 39910 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2932 | 39911 | test.t1 optimize status OK | 39911 | test.t1 optimize status OK |
2933 | 39912 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 39912 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2934 | 39913 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 39913 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2935 | @@ -40384,7 +40384,7 @@ | |||
2936 | 40384 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 40384 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2937 | 40385 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; | 40385 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; |
2938 | 40386 | Table Op Msg_type Msg_text | 40386 | Table Op Msg_type Msg_text |
2940 | 40387 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 40387 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2941 | 40388 | test.t1 optimize status OK | 40388 | test.t1 optimize status OK |
2942 | 40389 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 40389 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2943 | 40390 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 40390 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2944 | @@ -40859,7 +40859,7 @@ | |||
2945 | 40859 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 40859 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2946 | 40860 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; | 40860 | ALTER TABLE t1 OPTIMIZE PARTITION part_1; |
2947 | 40861 | Table Op Msg_type Msg_text | 40861 | Table Op Msg_type Msg_text |
2949 | 40862 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 40862 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2950 | 40863 | test.t1 optimize status OK | 40863 | test.t1 optimize status OK |
2951 | 40864 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 40864 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2952 | 40865 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 40865 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2953 | @@ -41324,7 +41324,7 @@ | |||
2954 | 41324 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 41324 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2955 | 41325 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; | 41325 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; |
2956 | 41326 | Table Op Msg_type Msg_text | 41326 | Table Op Msg_type Msg_text |
2958 | 41327 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 41327 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2959 | 41328 | test.t1 optimize status OK | 41328 | test.t1 optimize status OK |
2960 | 41329 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 41329 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2961 | 41330 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 41330 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2962 | @@ -41784,7 +41784,7 @@ | |||
2963 | 41784 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 41784 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2964 | 41785 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; | 41785 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; |
2965 | 41786 | Table Op Msg_type Msg_text | 41786 | Table Op Msg_type Msg_text |
2967 | 41787 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 41787 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2968 | 41788 | test.t1 optimize status OK | 41788 | test.t1 optimize status OK |
2969 | 41789 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 41789 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2970 | 41790 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 41790 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2971 | @@ -42255,7 +42255,7 @@ | |||
2972 | 42255 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 42255 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2973 | 42256 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; | 42256 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; |
2974 | 42257 | Table Op Msg_type Msg_text | 42257 | Table Op Msg_type Msg_text |
2976 | 42258 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 42258 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2977 | 42259 | test.t1 optimize status OK | 42259 | test.t1 optimize status OK |
2978 | 42260 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 42260 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2979 | 42261 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 42261 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2980 | @@ -42727,7 +42727,7 @@ | |||
2981 | 42727 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 42727 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2982 | 42728 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; | 42728 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; |
2983 | 42729 | Table Op Msg_type Msg_text | 42729 | Table Op Msg_type Msg_text |
2985 | 42730 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 42730 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2986 | 42731 | test.t1 optimize status OK | 42731 | test.t1 optimize status OK |
2987 | 42732 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 42732 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2988 | 42733 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 42733 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2989 | @@ -43193,7 +43193,7 @@ | |||
2990 | 43193 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 43193 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
2991 | 43194 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; | 43194 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; |
2992 | 43195 | Table Op Msg_type Msg_text | 43195 | Table Op Msg_type Msg_text |
2994 | 43196 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 43196 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
2995 | 43197 | test.t1 optimize status OK | 43197 | test.t1 optimize status OK |
2996 | 43198 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 43198 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
2997 | 43199 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 43199 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
2998 | @@ -43665,7 +43665,7 @@ | |||
2999 | 43665 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 43665 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3000 | 43666 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; | 43666 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; |
3001 | 43667 | Table Op Msg_type Msg_text | 43667 | Table Op Msg_type Msg_text |
3003 | 43668 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 43668 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3004 | 43669 | test.t1 optimize status OK | 43669 | test.t1 optimize status OK |
3005 | 43670 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 43670 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3006 | 43671 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 43671 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3007 | @@ -44142,7 +44142,7 @@ | |||
3008 | 44142 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 44142 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3009 | 44143 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; | 44143 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; |
3010 | 44144 | Table Op Msg_type Msg_text | 44144 | Table Op Msg_type Msg_text |
3012 | 44145 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 44145 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3013 | 44146 | test.t1 optimize status OK | 44146 | test.t1 optimize status OK |
3014 | 44147 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 44147 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3015 | 44148 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 44148 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3016 | @@ -44617,7 +44617,7 @@ | |||
3017 | 44617 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 44617 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3018 | 44618 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; | 44618 | ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; |
3019 | 44619 | Table Op Msg_type Msg_text | 44619 | Table Op Msg_type Msg_text |
3021 | 44620 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 44620 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3022 | 44621 | test.t1 optimize status OK | 44621 | test.t1 optimize status OK |
3023 | 44622 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 44622 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3024 | 44623 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 44623 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3025 | @@ -52582,7 +52582,7 @@ | |||
3026 | 52582 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 52582 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3027 | 52583 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; | 52583 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
3028 | 52584 | Table Op Msg_type Msg_text | 52584 | Table Op Msg_type Msg_text |
3030 | 52585 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 52585 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3031 | 52586 | test.t1 optimize status OK | 52586 | test.t1 optimize status OK |
3032 | 52587 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 52587 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3033 | 52588 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 52588 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3034 | @@ -53042,7 +53042,7 @@ | |||
3035 | 53042 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 53042 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3036 | 53043 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; | 53043 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
3037 | 53044 | Table Op Msg_type Msg_text | 53044 | Table Op Msg_type Msg_text |
3039 | 53045 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 53045 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3040 | 53046 | test.t1 optimize status OK | 53046 | test.t1 optimize status OK |
3041 | 53047 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 53047 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3042 | 53048 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 53048 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3043 | @@ -53513,7 +53513,7 @@ | |||
3044 | 53513 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 53513 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3045 | 53514 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; | 53514 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
3046 | 53515 | Table Op Msg_type Msg_text | 53515 | Table Op Msg_type Msg_text |
3048 | 53516 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 53516 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3049 | 53517 | test.t1 optimize status OK | 53517 | test.t1 optimize status OK |
3050 | 53518 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 53518 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3051 | 53519 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 53519 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3052 | @@ -53985,7 +53985,7 @@ | |||
3053 | 53985 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 53985 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3054 | 53986 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; | 53986 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
3055 | 53987 | Table Op Msg_type Msg_text | 53987 | Table Op Msg_type Msg_text |
3057 | 53988 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 53988 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3058 | 53989 | test.t1 optimize status OK | 53989 | test.t1 optimize status OK |
3059 | 53990 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 53990 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3060 | 53991 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 53991 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3061 | @@ -54451,7 +54451,7 @@ | |||
3062 | 54451 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 54451 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3063 | 54452 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; | 54452 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
3064 | 54453 | Table Op Msg_type Msg_text | 54453 | Table Op Msg_type Msg_text |
3066 | 54454 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 54454 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3067 | 54455 | test.t1 optimize status OK | 54455 | test.t1 optimize status OK |
3068 | 54456 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 54456 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3069 | 54457 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 54457 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3070 | @@ -54923,7 +54923,7 @@ | |||
3071 | 54923 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 54923 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3072 | 54924 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; | 54924 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
3073 | 54925 | Table Op Msg_type Msg_text | 54925 | Table Op Msg_type Msg_text |
3075 | 54926 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 54926 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3076 | 54927 | test.t1 optimize status OK | 54927 | test.t1 optimize status OK |
3077 | 54928 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 54928 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3078 | 54929 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 54929 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3079 | @@ -55400,7 +55400,7 @@ | |||
3080 | 55400 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 55400 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3081 | 55401 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; | 55401 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
3082 | 55402 | Table Op Msg_type Msg_text | 55402 | Table Op Msg_type Msg_text |
3084 | 55403 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 55403 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3085 | 55404 | test.t1 optimize status OK | 55404 | test.t1 optimize status OK |
3086 | 55405 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 55405 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3087 | 55406 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 55406 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3088 | @@ -55875,7 +55875,7 @@ | |||
3089 | 55875 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; | 55875 | WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1; |
3090 | 55876 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; | 55876 | ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
3091 | 55877 | Table Op Msg_type Msg_text | 55877 | Table Op Msg_type Msg_text |
3093 | 55878 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 55878 | test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed. |
3094 | 55879 | test.t1 optimize status OK | 55879 | test.t1 optimize status OK |
3095 | 55880 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) | 55880 | INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) |
3096 | 55881 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template | 55881 | SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template |
3097 | 55882 | 55882 | ||
3098 | === added file 'Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history.result' | |||
3099 | --- Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history.result 1970-01-01 00:00:00 +0000 | |||
3100 | +++ Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history.result 2013-02-18 05:17:25 +0000 | |||
3101 | @@ -0,0 +1,63 @@ | |||
3102 | 1 | show databases; | ||
3103 | 2 | Database | ||
3104 | 3 | information_schema | ||
3105 | 4 | mtr | ||
3106 | 5 | mysql | ||
3107 | 6 | performance_schema | ||
3108 | 7 | test | ||
3109 | 8 | select count(*) from performance_schema.performance_timers; | ||
3110 | 9 | count(*) | ||
3111 | 10 | 5 | ||
3112 | 11 | select count(*) from performance_schema.setup_consumers; | ||
3113 | 12 | count(*) | ||
3114 | 13 | 8 | ||
3115 | 14 | select count(*) > 0 from performance_schema.setup_instruments; | ||
3116 | 15 | count(*) > 0 | ||
3117 | 16 | 1 | ||
3118 | 17 | select count(*) from performance_schema.setup_timers; | ||
3119 | 18 | count(*) | ||
3120 | 19 | 1 | ||
3121 | 20 | select * from performance_schema.cond_instances; | ||
3122 | 21 | select * from performance_schema.events_waits_current; | ||
3123 | 22 | select * from performance_schema.events_waits_history; | ||
3124 | 23 | select * from performance_schema.events_waits_history_long; | ||
3125 | 24 | select * from performance_schema.events_waits_summary_by_instance; | ||
3126 | 25 | select * from performance_schema.events_waits_summary_by_thread_by_event_name; | ||
3127 | 26 | select * from performance_schema.events_waits_summary_global_by_event_name; | ||
3128 | 27 | select * from performance_schema.file_instances; | ||
3129 | 28 | select * from performance_schema.file_summary_by_event_name; | ||
3130 | 29 | select * from performance_schema.file_summary_by_instance; | ||
3131 | 30 | select * from performance_schema.mutex_instances; | ||
3132 | 31 | select * from performance_schema.performance_timers; | ||
3133 | 32 | select * from performance_schema.rwlock_instances; | ||
3134 | 33 | select * from performance_schema.setup_consumers; | ||
3135 | 34 | select * from performance_schema.setup_instruments; | ||
3136 | 35 | select * from performance_schema.setup_timers; | ||
3137 | 36 | select * from performance_schema.threads; | ||
3138 | 37 | show variables like "performance_schema%"; | ||
3139 | 38 | Variable_name Value | ||
3140 | 39 | performance_schema ON | ||
3141 | 40 | performance_schema_events_waits_history_long_size 10000 | ||
3142 | 41 | performance_schema_events_waits_history_size 0 | ||
3143 | 42 | performance_schema_max_cond_classes 80 | ||
3144 | 43 | performance_schema_max_cond_instances 1000 | ||
3145 | 44 | performance_schema_max_file_classes 50 | ||
3146 | 45 | performance_schema_max_file_handles 32768 | ||
3147 | 46 | performance_schema_max_file_instances 10000 | ||
3148 | 47 | performance_schema_max_mutex_classes 200 | ||
3149 | 48 | performance_schema_max_mutex_instances 10000 | ||
3150 | 49 | performance_schema_max_rwlock_classes 30 | ||
3151 | 50 | performance_schema_max_rwlock_instances 10000 | ||
3152 | 51 | performance_schema_max_table_handles 1000 | ||
3153 | 52 | performance_schema_max_table_instances 500 | ||
3154 | 53 | performance_schema_max_thread_classes 50 | ||
3155 | 54 | performance_schema_max_thread_instances 1000 | ||
3156 | 55 | show engine PERFORMANCE_SCHEMA status; | ||
3157 | 56 | show status like "performance_schema%"; | ||
3158 | 57 | show variables like "performance_schema_events_waits_history_size"; | ||
3159 | 58 | Variable_name Value | ||
3160 | 59 | performance_schema_events_waits_history_size 0 | ||
3161 | 60 | select count(*) from performance_schema.events_waits_history; | ||
3162 | 61 | count(*) | ||
3163 | 62 | 0 | ||
3164 | 63 | truncate table performance_schema.events_waits_history; | ||
3165 | 0 | 64 | ||
3166 | === added file 'Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result' | |||
3167 | --- Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result 1970-01-01 00:00:00 +0000 | |||
3168 | +++ Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result 2013-02-18 05:17:25 +0000 | |||
3169 | @@ -0,0 +1,63 @@ | |||
3170 | 1 | show databases; | ||
3171 | 2 | Database | ||
3172 | 3 | information_schema | ||
3173 | 4 | mtr | ||
3174 | 5 | mysql | ||
3175 | 6 | performance_schema | ||
3176 | 7 | test | ||
3177 | 8 | select count(*) from performance_schema.performance_timers; | ||
3178 | 9 | count(*) | ||
3179 | 10 | 5 | ||
3180 | 11 | select count(*) from performance_schema.setup_consumers; | ||
3181 | 12 | count(*) | ||
3182 | 13 | 8 | ||
3183 | 14 | select count(*) > 0 from performance_schema.setup_instruments; | ||
3184 | 15 | count(*) > 0 | ||
3185 | 16 | 1 | ||
3186 | 17 | select count(*) from performance_schema.setup_timers; | ||
3187 | 18 | count(*) | ||
3188 | 19 | 1 | ||
3189 | 20 | select * from performance_schema.cond_instances; | ||
3190 | 21 | select * from performance_schema.events_waits_current; | ||
3191 | 22 | select * from performance_schema.events_waits_history; | ||
3192 | 23 | select * from performance_schema.events_waits_history_long; | ||
3193 | 24 | select * from performance_schema.events_waits_summary_by_instance; | ||
3194 | 25 | select * from performance_schema.events_waits_summary_by_thread_by_event_name; | ||
3195 | 26 | select * from performance_schema.events_waits_summary_global_by_event_name; | ||
3196 | 27 | select * from performance_schema.file_instances; | ||
3197 | 28 | select * from performance_schema.file_summary_by_event_name; | ||
3198 | 29 | select * from performance_schema.file_summary_by_instance; | ||
3199 | 30 | select * from performance_schema.mutex_instances; | ||
3200 | 31 | select * from performance_schema.performance_timers; | ||
3201 | 32 | select * from performance_schema.rwlock_instances; | ||
3202 | 33 | select * from performance_schema.setup_consumers; | ||
3203 | 34 | select * from performance_schema.setup_instruments; | ||
3204 | 35 | select * from performance_schema.setup_timers; | ||
3205 | 36 | select * from performance_schema.threads; | ||
3206 | 37 | show variables like "performance_schema%"; | ||
3207 | 38 | Variable_name Value | ||
3208 | 39 | performance_schema ON | ||
3209 | 40 | performance_schema_events_waits_history_long_size 0 | ||
3210 | 41 | performance_schema_events_waits_history_size 10 | ||
3211 | 42 | performance_schema_max_cond_classes 80 | ||
3212 | 43 | performance_schema_max_cond_instances 1000 | ||
3213 | 44 | performance_schema_max_file_classes 50 | ||
3214 | 45 | performance_schema_max_file_handles 32768 | ||
3215 | 46 | performance_schema_max_file_instances 10000 | ||
3216 | 47 | performance_schema_max_mutex_classes 200 | ||
3217 | 48 | performance_schema_max_mutex_instances 10000 | ||
3218 | 49 | performance_schema_max_rwlock_classes 30 | ||
3219 | 50 | performance_schema_max_rwlock_instances 10000 | ||
3220 | 51 | performance_schema_max_table_handles 1000 | ||
3221 | 52 | performance_schema_max_table_instances 500 | ||
3222 | 53 | performance_schema_max_thread_classes 50 | ||
3223 | 54 | performance_schema_max_thread_instances 1000 | ||
3224 | 55 | show engine PERFORMANCE_SCHEMA status; | ||
3225 | 56 | show status like "performance_schema%"; | ||
3226 | 57 | show variables like "performance_schema_events_waits_history_long_size"; | ||
3227 | 58 | Variable_name Value | ||
3228 | 59 | performance_schema_events_waits_history_long_size 0 | ||
3229 | 60 | select count(*) from performance_schema.events_waits_history_long; | ||
3230 | 61 | count(*) | ||
3231 | 62 | 0 | ||
3232 | 63 | truncate table performance_schema.events_waits_history_long; | ||
3233 | 0 | 64 | ||
3234 | === added file 'Percona-Server/mysql-test/suite/perfschema/r/start_server_nothing.result' | |||
3235 | --- Percona-Server/mysql-test/suite/perfschema/r/start_server_nothing.result 1970-01-01 00:00:00 +0000 | |||
3236 | +++ Percona-Server/mysql-test/suite/perfschema/r/start_server_nothing.result 2013-02-18 05:17:25 +0000 | |||
3237 | @@ -0,0 +1,122 @@ | |||
3238 | 1 | show databases; | ||
3239 | 2 | Database | ||
3240 | 3 | information_schema | ||
3241 | 4 | mtr | ||
3242 | 5 | mysql | ||
3243 | 6 | performance_schema | ||
3244 | 7 | test | ||
3245 | 8 | select count(*) from performance_schema.performance_timers; | ||
3246 | 9 | count(*) | ||
3247 | 10 | 5 | ||
3248 | 11 | select count(*) from performance_schema.setup_consumers; | ||
3249 | 12 | count(*) | ||
3250 | 13 | 8 | ||
3251 | 14 | select count(*) > 0 from performance_schema.setup_instruments; | ||
3252 | 15 | count(*) > 0 | ||
3253 | 16 | 0 | ||
3254 | 17 | select count(*) from performance_schema.setup_timers; | ||
3255 | 18 | count(*) | ||
3256 | 19 | 1 | ||
3257 | 20 | select * from performance_schema.cond_instances; | ||
3258 | 21 | select * from performance_schema.events_waits_current; | ||
3259 | 22 | select * from performance_schema.events_waits_history; | ||
3260 | 23 | select * from performance_schema.events_waits_history_long; | ||
3261 | 24 | select * from performance_schema.events_waits_summary_by_instance; | ||
3262 | 25 | select * from performance_schema.events_waits_summary_by_thread_by_event_name; | ||
3263 | 26 | select * from performance_schema.events_waits_summary_global_by_event_name; | ||
3264 | 27 | select * from performance_schema.file_instances; | ||
3265 | 28 | select * from performance_schema.file_summary_by_event_name; | ||
3266 | 29 | select * from performance_schema.file_summary_by_instance; | ||
3267 | 30 | select * from performance_schema.mutex_instances; | ||
3268 | 31 | select * from performance_schema.performance_timers; | ||
3269 | 32 | select * from performance_schema.rwlock_instances; | ||
3270 | 33 | select * from performance_schema.setup_consumers; | ||
3271 | 34 | select * from performance_schema.setup_instruments; | ||
3272 | 35 | select * from performance_schema.setup_timers; | ||
3273 | 36 | select * from performance_schema.threads; | ||
3274 | 37 | show variables like "performance_schema%"; | ||
3275 | 38 | Variable_name Value | ||
3276 | 39 | performance_schema ON | ||
3277 | 40 | performance_schema_events_waits_history_long_size 0 | ||
3278 | 41 | performance_schema_events_waits_history_size 0 | ||
3279 | 42 | performance_schema_max_cond_classes 0 | ||
3280 | 43 | performance_schema_max_cond_instances 0 | ||
3281 | 44 | performance_schema_max_file_classes 0 | ||
3282 | 45 | performance_schema_max_file_handles 0 | ||
3283 | 46 | performance_schema_max_file_instances 0 | ||
3284 | 47 | performance_schema_max_mutex_classes 0 | ||
3285 | 48 | performance_schema_max_mutex_instances 0 | ||
3286 | 49 | performance_schema_max_rwlock_classes 0 | ||
3287 | 50 | performance_schema_max_rwlock_instances 0 | ||
3288 | 51 | performance_schema_max_table_handles 1000 | ||
3289 | 52 | performance_schema_max_table_instances 500 | ||
3290 | 53 | performance_schema_max_thread_classes 0 | ||
3291 | 54 | performance_schema_max_thread_instances 0 | ||
3292 | 55 | show engine PERFORMANCE_SCHEMA status; | ||
3293 | 56 | show status like "performance_schema%"; | ||
3294 | 57 | show variables like "performance_schema%"; | ||
3295 | 58 | Variable_name Value | ||
3296 | 59 | performance_schema ON | ||
3297 | 60 | performance_schema_events_waits_history_long_size 0 | ||
3298 | 61 | performance_schema_events_waits_history_size 0 | ||
3299 | 62 | performance_schema_max_cond_classes 0 | ||
3300 | 63 | performance_schema_max_cond_instances 0 | ||
3301 | 64 | performance_schema_max_file_classes 0 | ||
3302 | 65 | performance_schema_max_file_handles 0 | ||
3303 | 66 | performance_schema_max_file_instances 0 | ||
3304 | 67 | performance_schema_max_mutex_classes 0 | ||
3305 | 68 | performance_schema_max_mutex_instances 0 | ||
3306 | 69 | performance_schema_max_rwlock_classes 0 | ||
3307 | 70 | performance_schema_max_rwlock_instances 0 | ||
3308 | 71 | performance_schema_max_table_handles 1000 | ||
3309 | 72 | performance_schema_max_table_instances 500 | ||
3310 | 73 | performance_schema_max_thread_classes 0 | ||
3311 | 74 | performance_schema_max_thread_instances 0 | ||
3312 | 75 | select * from performance_schema.setup_instruments; | ||
3313 | 76 | NAME ENABLED TIMED | ||
3314 | 77 | select TIMER_NAME from performance_schema.performance_timers; | ||
3315 | 78 | TIMER_NAME | ||
3316 | 79 | CYCLE | ||
3317 | 80 | NANOSECOND | ||
3318 | 81 | MICROSECOND | ||
3319 | 82 | MILLISECOND | ||
3320 | 83 | TICK | ||
3321 | 84 | select * from performance_schema.setup_consumers; | ||
3322 | 85 | NAME ENABLED | ||
3323 | 86 | events_waits_current YES | ||
3324 | 87 | events_waits_history YES | ||
3325 | 88 | events_waits_history_long YES | ||
3326 | 89 | events_waits_summary_by_thread_by_event_name YES | ||
3327 | 90 | events_waits_summary_by_event_name YES | ||
3328 | 91 | events_waits_summary_by_instance YES | ||
3329 | 92 | file_summary_by_event_name YES | ||
3330 | 93 | file_summary_by_instance YES | ||
3331 | 94 | select NAME from performance_schema.setup_timers; | ||
3332 | 95 | NAME | ||
3333 | 96 | wait | ||
3334 | 97 | select * from performance_schema.cond_instances; | ||
3335 | 98 | NAME OBJECT_INSTANCE_BEGIN | ||
3336 | 99 | select * from performance_schema.events_waits_current; | ||
3337 | 100 | THREAD_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 | ||
3338 | 101 | select * from performance_schema.events_waits_history; | ||
3339 | 102 | THREAD_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 | ||
3340 | 103 | select * from performance_schema.events_waits_history_long; | ||
3341 | 104 | THREAD_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 | ||
3342 | 105 | select * from performance_schema.events_waits_summary_by_instance; | ||
3343 | 106 | EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT | ||
3344 | 107 | select * from performance_schema.events_waits_summary_by_thread_by_event_name; | ||
3345 | 108 | THREAD_ID EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT | ||
3346 | 109 | select * from performance_schema.events_waits_summary_global_by_event_name; | ||
3347 | 110 | EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT | ||
3348 | 111 | select * from performance_schema.file_instances; | ||
3349 | 112 | FILE_NAME EVENT_NAME OPEN_COUNT | ||
3350 | 113 | select * from performance_schema.file_summary_by_event_name; | ||
3351 | 114 | EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE | ||
3352 | 115 | select * from performance_schema.file_summary_by_instance; | ||
3353 | 116 | FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE | ||
3354 | 117 | select * from performance_schema.mutex_instances; | ||
3355 | 118 | NAME OBJECT_INSTANCE_BEGIN LOCKED_BY_THREAD_ID | ||
3356 | 119 | select * from performance_schema.rwlock_instances; | ||
3357 | 120 | NAME OBJECT_INSTANCE_BEGIN WRITE_LOCKED_BY_THREAD_ID READ_LOCKED_BY_COUNT | ||
3358 | 121 | select * from performance_schema.threads; | ||
3359 | 122 | THREAD_ID PROCESSLIST_ID NAME | ||
3360 | 0 | 123 | ||
3361 | === added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history-master.opt' | |||
3362 | --- Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history-master.opt 1970-01-01 00:00:00 +0000 | |||
3363 | +++ Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history-master.opt 2013-02-18 05:17:25 +0000 | |||
3364 | @@ -0,0 +1,2 @@ | |||
3365 | 1 | --loose-enable-performance-schema | ||
3366 | 2 | --loose-performance_schema_events_waits_history_size=0 | ||
3367 | 0 | 3 | ||
3368 | === added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history.test' | |||
3369 | --- Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history.test 1970-01-01 00:00:00 +0000 | |||
3370 | +++ Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history.test 2013-02-18 05:17:25 +0000 | |||
3371 | @@ -0,0 +1,14 @@ | |||
3372 | 1 | # Tests for PERFORMANCE_SCHEMA | ||
3373 | 2 | |||
3374 | 3 | --source include/not_embedded.inc | ||
3375 | 4 | --source include/have_perfschema.inc | ||
3376 | 5 | |||
3377 | 6 | --source ../include/start_server_common.inc | ||
3378 | 7 | |||
3379 | 8 | # Expect no history | ||
3380 | 9 | show variables like "performance_schema_events_waits_history_size"; | ||
3381 | 10 | select count(*) from performance_schema.events_waits_history; | ||
3382 | 11 | |||
3383 | 12 | # Valid operation, edge case | ||
3384 | 13 | truncate table performance_schema.events_waits_history; | ||
3385 | 14 | |||
3386 | 0 | 15 | ||
3387 | === added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long-master.opt' | |||
3388 | --- Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long-master.opt 1970-01-01 00:00:00 +0000 | |||
3389 | +++ Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long-master.opt 2013-02-18 05:17:25 +0000 | |||
3390 | @@ -0,0 +1,2 @@ | |||
3391 | 1 | --loose-enable-performance-schema | ||
3392 | 2 | --loose-performance_schema_events_waits_history_long_size=0 | ||
3393 | 0 | 3 | ||
3394 | === added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long.test' | |||
3395 | --- Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long.test 1970-01-01 00:00:00 +0000 | |||
3396 | +++ Percona-Server/mysql-test/suite/perfschema/t/start_server_no_waits_history_long.test 2013-02-18 05:17:25 +0000 | |||
3397 | @@ -0,0 +1,14 @@ | |||
3398 | 1 | # Tests for PERFORMANCE_SCHEMA | ||
3399 | 2 | |||
3400 | 3 | --source include/not_embedded.inc | ||
3401 | 4 | --source include/have_perfschema.inc | ||
3402 | 5 | |||
3403 | 6 | --source ../include/start_server_common.inc | ||
3404 | 7 | |||
3405 | 8 | # Expect no history long | ||
3406 | 9 | show variables like "performance_schema_events_waits_history_long_size"; | ||
3407 | 10 | select count(*) from performance_schema.events_waits_history_long; | ||
3408 | 11 | |||
3409 | 12 | # Valid operation, edge case | ||
3410 | 13 | truncate table performance_schema.events_waits_history_long; | ||
3411 | 14 | |||
3412 | 0 | 15 | ||
3413 | === added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing-master.opt' | |||
3414 | --- Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing-master.opt 1970-01-01 00:00:00 +0000 | |||
3415 | +++ Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing-master.opt 2013-02-18 05:17:25 +0000 | |||
3416 | @@ -0,0 +1,19 @@ | |||
3417 | 1 | --loose-enable-performance-schema | ||
3418 | 2 | |||
3419 | 3 | --loose-performance_schema_events_waits_history_long_size=0 | ||
3420 | 4 | --loose-performance_schema_events_waits_history_size=0 | ||
3421 | 5 | |||
3422 | 6 | --loose-performance_schema_max_mutex_classes=0 | ||
3423 | 7 | --loose-performance_schema_max_rwlock_classes=0 | ||
3424 | 8 | --loose-performance_schema_max_cond_classes=0 | ||
3425 | 9 | --loose-performance_schema_max_file_classes=0 | ||
3426 | 10 | --loose-performance_schema_max_thread_classes=0 | ||
3427 | 11 | |||
3428 | 12 | --loose-performance_schema_max_mutex_instances=0 | ||
3429 | 13 | --loose-performance_schema_max_rwlock_instances=0 | ||
3430 | 14 | --loose-performance_schema_max_cond_instances=0 | ||
3431 | 15 | --loose-performance_schema_max_file_instances=0 | ||
3432 | 16 | --loose-performance_schema_max_thread_instances=0 | ||
3433 | 17 | |||
3434 | 18 | --loose-performance_schema_max_file_handles=0 | ||
3435 | 19 | |||
3436 | 0 | 20 | ||
3437 | === added file 'Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing.test' | |||
3438 | --- Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing.test 1970-01-01 00:00:00 +0000 | |||
3439 | +++ Percona-Server/mysql-test/suite/perfschema/t/start_server_nothing.test 2013-02-18 05:17:25 +0000 | |||
3440 | @@ -0,0 +1,30 @@ | |||
3441 | 1 | # Tests for PERFORMANCE_SCHEMA | ||
3442 | 2 | |||
3443 | 3 | --source include/not_embedded.inc | ||
3444 | 4 | --source include/have_perfschema.inc | ||
3445 | 5 | |||
3446 | 6 | --source ../include/start_server_common.inc | ||
3447 | 7 | |||
3448 | 8 | show variables like "performance_schema%"; | ||
3449 | 9 | |||
3450 | 10 | # Not empty | ||
3451 | 11 | select * from performance_schema.setup_instruments; | ||
3452 | 12 | select TIMER_NAME from performance_schema.performance_timers; | ||
3453 | 13 | select * from performance_schema.setup_consumers; | ||
3454 | 14 | select NAME from performance_schema.setup_timers; | ||
3455 | 15 | |||
3456 | 16 | # All empty | ||
3457 | 17 | select * from performance_schema.cond_instances; | ||
3458 | 18 | select * from performance_schema.events_waits_current; | ||
3459 | 19 | select * from performance_schema.events_waits_history; | ||
3460 | 20 | select * from performance_schema.events_waits_history_long; | ||
3461 | 21 | select * from performance_schema.events_waits_summary_by_instance; | ||
3462 | 22 | select * from performance_schema.events_waits_summary_by_thread_by_event_name; | ||
3463 | 23 | select * from performance_schema.events_waits_summary_global_by_event_name; | ||
3464 | 24 | select * from performance_schema.file_instances; | ||
3465 | 25 | select * from performance_schema.file_summary_by_event_name; | ||
3466 | 26 | select * from performance_schema.file_summary_by_instance; | ||
3467 | 27 | select * from performance_schema.mutex_instances; | ||
3468 | 28 | select * from performance_schema.rwlock_instances; | ||
3469 | 29 | select * from performance_schema.threads; | ||
3470 | 30 | |||
3471 | 0 | 31 | ||
3472 | === modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_bug31076.result' | |||
3473 | --- Percona-Server/mysql-test/suite/rpl/r/rpl_bug31076.result 2010-12-19 17:15:12 +0000 | |||
3474 | +++ Percona-Server/mysql-test/suite/rpl/r/rpl_bug31076.result 2013-02-18 05:17:25 +0000 | |||
3475 | @@ -35,6 +35,7 @@ | |||
3476 | 35 | KEY `visit_id` (`visit_id`), | 35 | KEY `visit_id` (`visit_id`), |
3477 | 36 | KEY `data` (`data`) | 36 | KEY `data` (`data`) |
3478 | 37 | ) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1; | 37 | ) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1; |
3479 | 38 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3480 | 38 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 39 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3481 | 39 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 40 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3482 | 40 | BINLOG ' | 41 | BINLOG ' |
3483 | @@ -47,6 +48,7 @@ | |||
3484 | 47 | TC00LjEvbXlzcWwtNC4xLjEyYS13aW4zMi56aXBPaAIC | 48 | TC00LjEvbXlzcWwtNC4xLjEyYS13aW4zMi56aXBPaAIC |
3485 | 48 | '/*!*/; | 49 | '/*!*/; |
3486 | 49 | SET INSERT_ID=21231039/*!*/; | 50 | SET INSERT_ID=21231039/*!*/; |
3487 | 51 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3488 | 50 | use track/*!*/; | 52 | use track/*!*/; |
3489 | 51 | SET TIMESTAMP=1190087942/*!*/; | 53 | SET TIMESTAMP=1190087942/*!*/; |
3490 | 52 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/; | 54 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/; |
3491 | 53 | 55 | ||
3492 | === modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_mdev382.result' | |||
3493 | --- Percona-Server/mysql-test/suite/rpl/r/rpl_mdev382.result 2012-10-10 20:32:32 +0000 | |||
3494 | +++ Percona-Server/mysql-test/suite/rpl/r/rpl_mdev382.result 2013-02-18 05:17:25 +0000 | |||
3495 | @@ -154,6 +154,7 @@ | |||
3496 | 154 | master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=# | 154 | master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=# |
3497 | 155 | master-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=# | 155 | master-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=# |
3498 | 156 | master-bin.000001 # Xid # # COMMIT /* XID */ | 156 | master-bin.000001 # Xid # # COMMIT /* XID */ |
3499 | 157 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3500 | 157 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 158 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3501 | 158 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 159 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3502 | 159 | DELIMITER /*!*/; | 160 | DELIMITER /*!*/; |
3503 | @@ -193,6 +194,7 @@ | |||
3504 | 193 | # End of log file | 194 | # End of log file |
3505 | 194 | ROLLBACK /* added by mysqlbinlog */; | 195 | ROLLBACK /* added by mysqlbinlog */; |
3506 | 195 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 196 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
3507 | 197 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3508 | 196 | SELECT * FROM `db1``; SELECT 'oops!'`.`t``1`; | 198 | SELECT * FROM `db1``; SELECT 'oops!'`.`t``1`; |
3509 | 197 | a`1 b`2 c`3 | 199 | a`1 b`2 c`3 |
3510 | 198 | fo\o bar |b"a'z! | 200 | fo\o bar |b"a'z! |
3511 | @@ -242,6 +244,7 @@ | |||
3512 | 242 | master-bin.000001 # User var # # @```d```=_latin1 0x78787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878 COLLATE latin1_swedish_ci | 244 | master-bin.000001 # User var # # @```d```=_latin1 0x78787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878 COLLATE latin1_swedish_ci |
3513 | 243 | master-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)) | 245 | master-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)) |
3514 | 244 | master-bin.000001 # Xid # # COMMIT /* XID */ | 246 | master-bin.000001 # Xid # # COMMIT /* XID */ |
3515 | 247 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3516 | 245 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 248 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3517 | 246 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 249 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3518 | 247 | DELIMITER /*!*/; | 250 | DELIMITER /*!*/; |
3519 | @@ -283,6 +286,7 @@ | |||
3520 | 283 | # End of log file | 286 | # End of log file |
3521 | 284 | ROLLBACK /* added by mysqlbinlog */; | 287 | ROLLBACK /* added by mysqlbinlog */; |
3522 | 285 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 288 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
3523 | 289 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3524 | 286 | SELECT * FROM `db1``; SELECT 'oops!'`.t1 ORDER BY a1; | 290 | SELECT * FROM `db1``; SELECT 'oops!'`.t1 ORDER BY a1; |
3525 | 287 | a1 a2 a3 a4 b c d | 291 | a1 a2 a3 a4 b c d |
3526 | 288 | -9223372036854775808 42 9223372036854775807 18446744073709551615 -1.234560123456789e125 -1234501234567890123456789012345678901234567890123456789.0123456789 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | 292 | -9223372036854775808 42 9223372036854775807 18446744073709551615 -1.234560123456789e125 -1234501234567890123456789012345678901234567890123456789.0123456789 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
3527 | 289 | 293 | ||
3528 | === modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_report_port.result' | |||
3529 | --- Percona-Server/mysql-test/suite/rpl/r/rpl_report_port.result 2012-04-26 14:04:03 +0000 | |||
3530 | +++ Percona-Server/mysql-test/suite/rpl/r/rpl_report_port.result 2013-02-18 05:17:25 +0000 | |||
3531 | @@ -2,10 +2,12 @@ | |||
3532 | 2 | [connection master] | 2 | [connection master] |
3533 | 3 | include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000] | 3 | include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000] |
3534 | 4 | include/start_slave.inc | 4 | include/start_slave.inc |
3535 | 5 | include/wait_for_slave_param.inc [Slave_IO_State] | ||
3536 | 5 | [Slave restarted with the report-port set to some value] | 6 | [Slave restarted with the report-port set to some value] |
3537 | 6 | include/assert.inc [The value shown for the slave's port number is user specified port number which is the value set for report-port.] | 7 | include/assert.inc [The value shown for the slave's port number is user specified port number which is the value set for report-port.] |
3538 | 7 | include/rpl_restart_server.inc [server_number=2] | 8 | include/rpl_restart_server.inc [server_number=2] |
3539 | 8 | include/start_slave.inc | 9 | include/start_slave.inc |
3540 | 10 | include/wait_for_slave_param.inc [Slave_IO_State] | ||
3541 | 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] |
3542 | 10 | include/assert.inc [The default value shown for the slave's port number is the actual port number of the slave.] | 12 | include/assert.inc [The default value shown for the slave's port number is the actual port number of the slave.] |
3543 | 11 | include/rpl_end.inc | 13 | include/rpl_end.inc |
3544 | 12 | 14 | ||
3545 | === modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_rotate_logs.result' | |||
3546 | --- Percona-Server/mysql-test/suite/rpl/r/rpl_rotate_logs.result 2012-02-09 17:58:33 +0000 | |||
3547 | +++ Percona-Server/mysql-test/suite/rpl/r/rpl_rotate_logs.result 2013-02-18 05:17:25 +0000 | |||
3548 | @@ -17,10 +17,8 @@ | |||
3549 | 17 | Master_Log_File = 'master-bin.000001' | 17 | Master_Log_File = 'master-bin.000001' |
3550 | 18 | Relay_Master_Log_File = 'master-bin.000001' | 18 | Relay_Master_Log_File = 'master-bin.000001' |
3551 | 19 | include/check_slave_is_running.inc | 19 | include/check_slave_is_running.inc |
3556 | 20 | select * from t1; | 20 | include/assert.inc [Table t1 should contain the first inserted line] |
3557 | 21 | s | 21 | include/assert.inc [Table t1 should contain the second inserted line] |
3554 | 22 | Could not break slave | ||
3555 | 23 | Tried hard | ||
3558 | 24 | flush logs; | 22 | flush logs; |
3559 | 25 | create table t2(m int not null auto_increment primary key); | 23 | create table t2(m int not null auto_increment primary key); |
3560 | 26 | insert into t2 values (34),(67),(123); | 24 | insert into t2 values (34),(67),(123); |
3561 | @@ -31,9 +29,7 @@ | |||
3562 | 31 | master-bin.000002 # | 29 | master-bin.000002 # |
3563 | 32 | master-bin.000003 # | 30 | master-bin.000003 # |
3564 | 33 | create table t3 select * from temp_table; | 31 | create table t3 select * from temp_table; |
3568 | 34 | select * from t3; | 32 | include/assert.inc [Data in t3 should be equal to temp_table] |
3566 | 35 | a | ||
3567 | 36 | testing temporary tables | ||
3569 | 37 | drop table temp_table, t3; | 33 | drop table temp_table, t3; |
3570 | 38 | insert into t2 values(1234); | 34 | insert into t2 values(1234); |
3571 | 39 | set insert_id=1234; | 35 | set insert_id=1234; |
3572 | @@ -60,19 +56,15 @@ | |||
3573 | 60 | Master_Log_File = 'master-bin.000003' | 56 | Master_Log_File = 'master-bin.000003' |
3574 | 61 | Relay_Master_Log_File = 'master-bin.000003' | 57 | Relay_Master_Log_File = 'master-bin.000003' |
3575 | 62 | include/check_slave_is_running.inc | 58 | include/check_slave_is_running.inc |
3583 | 63 | select * from t2; | 59 | include/assert.inc [Table t2 should still contain the first inserted line after creation] |
3584 | 64 | m | 60 | include/assert.inc [Table t2 should contain the line inserted after the purge] |
3585 | 65 | 34 | 61 | include/assert.inc [Table t2 should still contain the second insert line after creation] |
3586 | 66 | 65 | 62 | include/assert.inc [Table t2 should still contain the third inserted line after creation] |
3587 | 67 | 67 | 63 | include/assert.inc [Table t2 should still contain the line from the duplicated key test] |
3581 | 68 | 123 | ||
3582 | 69 | 1234 | ||
3588 | 70 | create temporary table temp_table (a char(80) not null); | 64 | create temporary table temp_table (a char(80) not null); |
3589 | 71 | insert into temp_table values ("testing temporary tables part 2"); | 65 | insert into temp_table values ("testing temporary tables part 2"); |
3590 | 72 | create table t3 (n int); | 66 | create table t3 (n int); |
3594 | 73 | select count(*) from t3 where n >= 4; | 67 | include/assert.inc [Table t3 should contain 100 lines on the master] |
3592 | 74 | count(*) | ||
3593 | 75 | 100 | ||
3595 | 76 | create table t4 select * from temp_table; | 68 | create table t4 select * from temp_table; |
3596 | 77 | show binary logs; | 69 | show binary logs; |
3597 | 78 | Log_name File_size | 70 | Log_name File_size |
3598 | @@ -85,16 +77,12 @@ | |||
3599 | 85 | show master status; | 77 | show master status; |
3600 | 86 | File Position Binlog_Do_DB Binlog_Ignore_DB | 78 | File Position Binlog_Do_DB Binlog_Ignore_DB |
3601 | 87 | master-bin.000008 # <Binlog_Do_DB> <Binlog_Ignore_DB> | 79 | master-bin.000008 # <Binlog_Do_DB> <Binlog_Ignore_DB> |
3605 | 88 | select * from t4; | 80 | include/assert.inc [Data in t4 should be equal to temp_table] |
3603 | 89 | a | ||
3604 | 90 | testing temporary tables part 2 | ||
3606 | 91 | Master_Log_File = 'master-bin.000008' | 81 | Master_Log_File = 'master-bin.000008' |
3607 | 92 | Relay_Master_Log_File = 'master-bin.000008' | 82 | Relay_Master_Log_File = 'master-bin.000008' |
3608 | 93 | include/check_slave_is_running.inc | 83 | include/check_slave_is_running.inc |
3609 | 94 | lock tables t3 read; | 84 | lock tables t3 read; |
3613 | 95 | select count(*) from t3 where n >= 4; | 85 | include/assert.inc [Table t3 should contain 100 lines on the slave] |
3611 | 96 | count(*) | ||
3612 | 97 | 100 | ||
3614 | 98 | unlock tables; | 86 | unlock tables; |
3615 | 99 | drop table if exists t1,t2,t3,t4; | 87 | drop table if exists t1,t2,t3,t4; |
3616 | 100 | End of 4.1 tests | 88 | End of 4.1 tests |
3617 | 101 | 89 | ||
3618 | === modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_row_mysqlbinlog.result' | |||
3619 | --- Percona-Server/mysql-test/suite/rpl/r/rpl_row_mysqlbinlog.result 2013-01-09 23:45:25 +0000 | |||
3620 | +++ Percona-Server/mysql-test/suite/rpl/r/rpl_row_mysqlbinlog.result 2013-02-18 05:17:25 +0000 | |||
3621 | @@ -150,6 +150,7 @@ | |||
3622 | 150 | 5 2006-02-22 00:00:00 Tested in Texas 11 | 150 | 5 2006-02-22 00:00:00 Tested in Texas 11 |
3623 | 151 | 151 | ||
3624 | 152 | --- Test 2 position test -- | 152 | --- Test 2 position test -- |
3625 | 153 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3626 | 153 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 154 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3627 | 154 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 155 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3628 | 155 | DELIMITER /*!*/; | 156 | DELIMITER /*!*/; |
3629 | @@ -170,8 +171,10 @@ | |||
3630 | 170 | # End of log file | 171 | # End of log file |
3631 | 171 | ROLLBACK /* added by mysqlbinlog */; | 172 | ROLLBACK /* added by mysqlbinlog */; |
3632 | 172 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 173 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
3633 | 174 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3634 | 173 | 175 | ||
3635 | 174 | --- Test 3 First Remote test -- | 176 | --- Test 3 First Remote test -- |
3636 | 177 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3637 | 175 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 178 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3638 | 176 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 179 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3639 | 177 | DELIMITER /*!*/; | 180 | DELIMITER /*!*/; |
3640 | @@ -201,6 +204,7 @@ | |||
3641 | 201 | # End of log file | 204 | # End of log file |
3642 | 202 | ROLLBACK /* added by mysqlbinlog */; | 205 | ROLLBACK /* added by mysqlbinlog */; |
3643 | 203 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 206 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
3644 | 207 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3645 | 204 | 208 | ||
3646 | 205 | --- Test 4 Second Remote test -- | 209 | --- Test 4 Second Remote test -- |
3647 | 206 | DROP TABLE t1; | 210 | DROP TABLE t1; |
3648 | @@ -274,6 +278,7 @@ | |||
3649 | 274 | 5 2006-02-22 00:00:00 Tested in Texas 11 | 278 | 5 2006-02-22 00:00:00 Tested in Texas 11 |
3650 | 275 | 279 | ||
3651 | 276 | --- Test 5 LOAD DATA -- | 280 | --- Test 5 LOAD DATA -- |
3652 | 281 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3653 | 277 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 282 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3654 | 278 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 283 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3655 | 279 | DELIMITER /*!*/; | 284 | DELIMITER /*!*/; |
3656 | @@ -281,8 +286,10 @@ | |||
3657 | 281 | # End of log file | 286 | # End of log file |
3658 | 282 | ROLLBACK /* added by mysqlbinlog */; | 287 | ROLLBACK /* added by mysqlbinlog */; |
3659 | 283 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 288 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
3660 | 289 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3661 | 284 | 290 | ||
3662 | 285 | --- Test 6 reading stdin -- | 291 | --- Test 6 reading stdin -- |
3663 | 292 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3664 | 286 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 293 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3665 | 287 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 294 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3666 | 288 | DELIMITER /*!*/; | 295 | DELIMITER /*!*/; |
3667 | @@ -312,8 +319,10 @@ | |||
3668 | 312 | # End of log file | 319 | # End of log file |
3669 | 313 | ROLLBACK /* added by mysqlbinlog */; | 320 | ROLLBACK /* added by mysqlbinlog */; |
3670 | 314 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 321 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
3671 | 322 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3672 | 315 | 323 | ||
3673 | 316 | --- Test 7 reading stdin w/position -- | 324 | --- Test 7 reading stdin w/position -- |
3674 | 325 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3675 | 317 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 326 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3676 | 318 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 327 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3677 | 319 | DELIMITER /*!*/; | 328 | DELIMITER /*!*/; |
3678 | @@ -334,6 +343,7 @@ | |||
3679 | 334 | # End of log file | 343 | # End of log file |
3680 | 335 | ROLLBACK /* added by mysqlbinlog */; | 344 | ROLLBACK /* added by mysqlbinlog */; |
3681 | 336 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 345 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
3682 | 346 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3683 | 337 | 347 | ||
3684 | 338 | --- Test 8 switch internal charset -- | 348 | --- Test 8 switch internal charset -- |
3685 | 339 | stop slave; | 349 | stop slave; |
3686 | 340 | 350 | ||
3687 | === modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_sp.result' | |||
3688 | --- Percona-Server/mysql-test/suite/rpl/r/rpl_sp.result 2013-01-09 23:45:25 +0000 | |||
3689 | +++ Percona-Server/mysql-test/suite/rpl/r/rpl_sp.result 2013-02-18 05:17:25 +0000 | |||
3690 | @@ -652,6 +652,7 @@ | |||
3691 | 652 | Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation | 652 | Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation |
3692 | 653 | test mysqltestbug36570_f1 FUNCTION root@localhost t t DEFINER latin1 latin1_swedish_ci latin1_swedish_ci | 653 | test mysqltestbug36570_f1 FUNCTION root@localhost t t DEFINER latin1 latin1_swedish_ci latin1_swedish_ci |
3693 | 654 | flush logs; | 654 | flush logs; |
3694 | 655 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3695 | 655 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 656 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3696 | 656 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 657 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3697 | 657 | DELIMITER /*!*/; | 658 | DELIMITER /*!*/; |
3698 | @@ -1178,6 +1179,7 @@ | |||
3699 | 1178 | # End of log file | 1179 | # End of log file |
3700 | 1179 | ROLLBACK /* added by mysqlbinlog */; | 1180 | ROLLBACK /* added by mysqlbinlog */; |
3701 | 1180 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; | 1181 | /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; |
3702 | 1182 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3703 | 1181 | use test; | 1183 | use test; |
3704 | 1182 | drop procedure mysqltestbug36570_p1; | 1184 | drop procedure mysqltestbug36570_p1; |
3705 | 1183 | drop procedure ` mysqltestbug36570_p2`; | 1185 | drop procedure ` mysqltestbug36570_p2`; |
3706 | 1184 | 1186 | ||
3707 | === modified file 'Percona-Server/mysql-test/suite/rpl/t/disabled.def' | |||
3708 | --- Percona-Server/mysql-test/suite/rpl/t/disabled.def 2011-05-24 06:40:38 +0000 | |||
3709 | +++ Percona-Server/mysql-test/suite/rpl/t/disabled.def 2013-02-18 05:17:25 +0000 | |||
3710 | @@ -13,5 +13,4 @@ | |||
3711 | 13 | rpl_row_create_table : Bug#11759274 2010-02-27 andrei failed different way than earlier with bug#45576 | 13 | rpl_row_create_table : Bug#11759274 2010-02-27 andrei failed different way than earlier with bug#45576 |
3712 | 14 | rpl_spec_variables : BUG#11755836 2009-10-27 jasonh rpl_spec_variables fails on PB2 hpux | 14 | rpl_spec_variables : BUG#11755836 2009-10-27 jasonh rpl_spec_variables fails on PB2 hpux |
3713 | 15 | rpl_get_master_version_and_clock : Bug#11766137 Jan 05 2011 joro Valgrind warnings rpl_get_master_version_and_clock | 15 | rpl_get_master_version_and_clock : Bug#11766137 Jan 05 2011 joro Valgrind warnings rpl_get_master_version_and_clock |
3714 | 16 | rpl_row_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out | ||
3715 | 17 | rpl_stm_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out | 16 | rpl_stm_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out |
3716 | 18 | 17 | ||
3717 | === modified file 'Percona-Server/mysql-test/suite/rpl/t/rpl_bug31076.test' | |||
3718 | --- Percona-Server/mysql-test/suite/rpl/t/rpl_bug31076.test 2010-12-19 17:15:12 +0000 | |||
3719 | +++ Percona-Server/mysql-test/suite/rpl/t/rpl_bug31076.test 2013-02-18 05:17:25 +0000 | |||
3720 | @@ -40,6 +40,7 @@ | |||
3721 | 40 | KEY `data` (`data`) | 40 | KEY `data` (`data`) |
3722 | 41 | ) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1; | 41 | ) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1; |
3723 | 42 | 42 | ||
3724 | 43 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; | ||
3725 | 43 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 44 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
3726 | 44 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 45 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
3727 | 45 | --delimiter /*!*/; | 46 | --delimiter /*!*/; |
3728 | @@ -119,6 +120,7 @@ | |||
3729 | 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.| |
3730 | 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| |
3731 | 121 | # Query thread_id=28278824 exec_time=0 error_code=0 | 122 | # Query thread_id=28278824 exec_time=0 error_code=0 |
3732 | 123 | /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; | ||
3733 | 122 | use track/*!*/; | 124 | use track/*!*/; |
3734 | 123 | SET TIMESTAMP=1190087942/*!*/; | 125 | SET TIMESTAMP=1190087942/*!*/; |
3735 | 124 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/; | 126 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/; |
3736 | 125 | 127 | ||
3737 | === modified file 'Percona-Server/mysql-test/suite/rpl/t/rpl_report_port.test' | |||
3738 | --- Percona-Server/mysql-test/suite/rpl/t/rpl_report_port.test 2012-04-26 14:04:03 +0000 | |||
3739 | +++ Percona-Server/mysql-test/suite/rpl/t/rpl_report_port.test 2013-02-18 05:17:25 +0000 | |||
3740 | @@ -32,6 +32,9 @@ | |||
3741 | 32 | 32 | ||
3742 | 33 | connection slave; | 33 | connection slave; |
3743 | 34 | --source include/start_slave.inc | 34 | --source include/start_slave.inc |
3744 | 35 | --let $slave_param= Slave_IO_State | ||
3745 | 36 | --let $slave_param_value= Waiting for master to send event | ||
3746 | 37 | --source include/wait_for_slave_param.inc | ||
3747 | 35 | 38 | ||
3748 | 36 | --echo [Slave restarted with the report-port set to some value] | 39 | --echo [Slave restarted with the report-port set to some value] |
3749 | 37 | connection master; | 40 | connection master; |
3750 | @@ -52,6 +55,9 @@ | |||
3751 | 52 | 55 | ||
3752 | 53 | connection slave; | 56 | connection slave; |
3753 | 54 | --source include/start_slave.inc | 57 | --source include/start_slave.inc |
3754 | 58 | --let $slave_param= Slave_IO_State | ||
3755 | 59 | --let $slave_param_value= Waiting for master to send event | ||
3756 | 60 | --source include/wait_for_slave_param.inc | ||
3757 | 55 | 61 | ||
3758 | 56 | connection master; | 62 | connection master; |
3759 | 57 | sync_slave_with_master; | 63 | sync_slave_with_master; |
3760 | 58 | 64 | ||
3761 | === modified file 'Percona-Server/mysql-test/suite/rpl/t/rpl_rotate_logs.test' | |||
3762 | --- Percona-Server/mysql-test/suite/rpl/t/rpl_rotate_logs.test 2012-02-09 17:58:33 +0000 | |||
3763 | +++ Percona-Server/mysql-test/suite/rpl/t/rpl_rotate_logs.test 2013-02-18 05:17:25 +0000 | |||
3764 | @@ -66,7 +66,17 @@ | |||
3765 | 66 | let $status_items= Master_Log_File, Relay_Master_Log_File; | 66 | let $status_items= Master_Log_File, Relay_Master_Log_File; |
3766 | 67 | source include/show_slave_status.inc; | 67 | source include/show_slave_status.inc; |
3767 | 68 | source include/check_slave_is_running.inc; | 68 | source include/check_slave_is_running.inc; |
3769 | 69 | select * from t1; | 69 | |
3770 | 70 | --let $assert_text= Table t1 should contain the first inserted line | ||
3771 | 71 | --let $query_result= query_get_value(select * from t1, "s", 1) | ||
3772 | 72 | --let $assert_cond= "$query_result" = "Could not break slave" | ||
3773 | 73 | --source include/assert.inc | ||
3774 | 74 | |||
3775 | 75 | --let $assert_text= Table t1 should contain the second inserted line | ||
3776 | 76 | --let $query_result= query_get_value(select * from t1, "s", 2) | ||
3777 | 77 | --let $assert_cond= "$query_result" = "Tried hard" | ||
3778 | 78 | --source include/assert.inc | ||
3779 | 79 | |||
3780 | 70 | connection master; | 80 | connection master; |
3781 | 71 | flush logs; | 81 | flush logs; |
3782 | 72 | create table t2(m int not null auto_increment primary key); | 82 | create table t2(m int not null auto_increment primary key); |
3783 | @@ -77,7 +87,11 @@ | |||
3784 | 77 | 87 | ||
3785 | 78 | sync_slave_with_master; | 88 | sync_slave_with_master; |
3786 | 79 | 89 | ||
3788 | 80 | select * from t3; | 90 | --let $query_result= query_get_value(select * from t3, "a", 1) |
3789 | 91 | --let $assert_text= Data in t3 should be equal to temp_table | ||
3790 | 92 | --let $assert_cond= "$query_result" = "testing temporary tables" | ||
3791 | 93 | --source include/assert.inc | ||
3792 | 94 | |||
3793 | 81 | connection master; | 95 | connection master; |
3794 | 82 | drop table temp_table, t3; | 96 | drop table temp_table, t3; |
3795 | 83 | 97 | ||
3796 | @@ -136,11 +150,30 @@ | |||
3797 | 136 | sync_slave_with_master; | 150 | sync_slave_with_master; |
3798 | 137 | source include/show_slave_status.inc; | 151 | source include/show_slave_status.inc; |
3799 | 138 | source include/check_slave_is_running.inc; | 152 | source include/check_slave_is_running.inc; |
3801 | 139 | select * from t2; | 153 | |
3802 | 154 | --let $assert_text= Table t2 should still contain the first inserted line after creation | ||
3803 | 155 | --let $assert_cond= [select * from t2,"m",1] = 34 | ||
3804 | 156 | --source include/assert.inc | ||
3805 | 157 | |||
3806 | 158 | --let $assert_text= Table t2 should contain the line inserted after the purge | ||
3807 | 159 | --let $assert_cond= [select * from t2,"m",2] = 65 | ||
3808 | 160 | --source include/assert.inc | ||
3809 | 161 | |||
3810 | 162 | --let $assert_text= Table t2 should still contain the second insert line after creation | ||
3811 | 163 | --let $assert_cond= [select * from t2,"m",3] = 67 | ||
3812 | 164 | --source include/assert.inc | ||
3813 | 165 | |||
3814 | 166 | --let $assert_text= Table t2 should still contain the third inserted line after creation | ||
3815 | 167 | --let $assert_cond= [select * from t2,"m",4] = 123 | ||
3816 | 168 | --source include/assert.inc | ||
3817 | 169 | |||
3818 | 170 | --let $assert_text= Table t2 should still contain the line from the duplicated key test | ||
3819 | 171 | --let $assert_cond= [select * from t2,"m",5] = 1234 | ||
3820 | 172 | --source include/assert.inc | ||
3821 | 140 | 173 | ||
3822 | 141 | # | 174 | # |
3823 | 142 | # Test forcing the replication log to rotate | 175 | # Test forcing the replication log to rotate |
3825 | 143 | # | 176 | # |
3826 | 144 | 177 | ||
3827 | 145 | connection master; | 178 | connection master; |
3828 | 146 | create temporary table temp_table (a char(80) not null); | 179 | create temporary table temp_table (a char(80) not null); |
3829 | @@ -156,19 +189,31 @@ | |||
3830 | 156 | dec $1; | 189 | dec $1; |
3831 | 157 | } | 190 | } |
3832 | 158 | enable_query_log; | 191 | enable_query_log; |
3834 | 159 | select count(*) from t3 where n >= 4; | 192 | |
3835 | 193 | --let $assert_text= Table t3 should contain 100 lines on the master | ||
3836 | 194 | --let $assert_cond= [select count(*) from t3 where n >= 4,"count(*)",1] = 100 | ||
3837 | 195 | --source include/assert.inc | ||
3838 | 196 | |||
3839 | 160 | create table t4 select * from temp_table; | 197 | create table t4 select * from temp_table; |
3840 | 161 | source include/show_binary_logs.inc; | 198 | source include/show_binary_logs.inc; |
3841 | 162 | source include/show_master_status.inc; | 199 | source include/show_master_status.inc; |
3842 | 163 | sync_slave_with_master; | 200 | sync_slave_with_master; |
3844 | 164 | select * from t4; | 201 | |
3845 | 202 | --let $query_result= query_get_value(select * from t4, "a", 1) | ||
3846 | 203 | --let $assert_text= Data in t4 should be equal to temp_table | ||
3847 | 204 | --let $assert_cond= "$query_result" = "testing temporary tables part 2" | ||
3848 | 205 | --source include/assert.inc | ||
3849 | 165 | 206 | ||
3850 | 166 | source include/show_slave_status.inc; | 207 | source include/show_slave_status.inc; |
3851 | 167 | source include/check_slave_is_running.inc; | 208 | source include/check_slave_is_running.inc; |
3852 | 168 | # because of concurrent insert, the table may not be up to date | 209 | # because of concurrent insert, the table may not be up to date |
3853 | 169 | # if we do not lock | 210 | # if we do not lock |
3854 | 170 | lock tables t3 read; | 211 | lock tables t3 read; |
3856 | 171 | select count(*) from t3 where n >= 4; | 212 | |
3857 | 213 | --let $assert_text= Table t3 should contain 100 lines on the slave | ||
3858 | 214 | --let $assert_cond= [select count(*) from t3 where n >= 4,"count(*)",1] = 100 | ||
3859 | 215 | --source include/assert.inc | ||
3860 | 216 | |||
3861 | 172 | unlock tables; | 217 | unlock tables; |
3862 | 173 | #clean up | 218 | #clean up |
3863 | 174 | connection master; | 219 | connection master; |
3864 | 175 | 220 | ||
3865 | === added file 'Percona-Server/mysql-test/suite/sys_vars/r/innodb_limit_optimistic_insert_debug_basic.result' | |||
3866 | --- Percona-Server/mysql-test/suite/sys_vars/r/innodb_limit_optimistic_insert_debug_basic.result 1970-01-01 00:00:00 +0000 | |||
3867 | +++ Percona-Server/mysql-test/suite/sys_vars/r/innodb_limit_optimistic_insert_debug_basic.result 2013-02-18 05:17:25 +0000 | |||
3868 | @@ -0,0 +1,58 @@ | |||
3869 | 1 | SET @start_global_value = @@global.innodb_limit_optimistic_insert_debug; | ||
3870 | 2 | SELECT @start_global_value; | ||
3871 | 3 | @start_global_value | ||
3872 | 4 | 0 | ||
3873 | 5 | select @@global.innodb_limit_optimistic_insert_debug; | ||
3874 | 6 | @@global.innodb_limit_optimistic_insert_debug | ||
3875 | 7 | 0 | ||
3876 | 8 | select @@session.innodb_limit_optimistic_insert_debug; | ||
3877 | 9 | ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable | ||
3878 | 10 | show global variables like 'innodb_limit_optimistic_insert_debug'; | ||
3879 | 11 | Variable_name Value | ||
3880 | 12 | innodb_limit_optimistic_insert_debug 0 | ||
3881 | 13 | show session variables like 'innodb_limit_optimistic_insert_debug'; | ||
3882 | 14 | Variable_name Value | ||
3883 | 15 | innodb_limit_optimistic_insert_debug 0 | ||
3884 | 16 | select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
3885 | 17 | VARIABLE_NAME VARIABLE_VALUE | ||
3886 | 18 | INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0 | ||
3887 | 19 | select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
3888 | 20 | VARIABLE_NAME VARIABLE_VALUE | ||
3889 | 21 | INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0 | ||
3890 | 22 | set global innodb_limit_optimistic_insert_debug=1; | ||
3891 | 23 | select @@global.innodb_limit_optimistic_insert_debug; | ||
3892 | 24 | @@global.innodb_limit_optimistic_insert_debug | ||
3893 | 25 | 1 | ||
3894 | 26 | select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
3895 | 27 | VARIABLE_NAME VARIABLE_VALUE | ||
3896 | 28 | INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 1 | ||
3897 | 29 | select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
3898 | 30 | VARIABLE_NAME VARIABLE_VALUE | ||
3899 | 31 | INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 1 | ||
3900 | 32 | set @@global.innodb_limit_optimistic_insert_debug=0; | ||
3901 | 33 | select @@global.innodb_limit_optimistic_insert_debug; | ||
3902 | 34 | @@global.innodb_limit_optimistic_insert_debug | ||
3903 | 35 | 0 | ||
3904 | 36 | select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
3905 | 37 | VARIABLE_NAME VARIABLE_VALUE | ||
3906 | 38 | INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0 | ||
3907 | 39 | select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
3908 | 40 | VARIABLE_NAME VARIABLE_VALUE | ||
3909 | 41 | INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0 | ||
3910 | 42 | set session innodb_limit_optimistic_insert_debug='some'; | ||
3911 | 43 | ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable and should be set with SET GLOBAL | ||
3912 | 44 | set @@session.innodb_limit_optimistic_insert_debug='some'; | ||
3913 | 45 | ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable and should be set with SET GLOBAL | ||
3914 | 46 | set global innodb_limit_optimistic_insert_debug=1.1; | ||
3915 | 47 | ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug' | ||
3916 | 48 | set global innodb_limit_optimistic_insert_debug='foo'; | ||
3917 | 49 | ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug' | ||
3918 | 50 | set global innodb_limit_optimistic_insert_debug=-2; | ||
3919 | 51 | Warnings: | ||
3920 | 52 | Warning 1292 Truncated incorrect innodb_limit_optimistic_insert_d value: '-2' | ||
3921 | 53 | set global innodb_limit_optimistic_insert_debug=1e1; | ||
3922 | 54 | ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug' | ||
3923 | 55 | SET @@global.innodb_limit_optimistic_insert_debug = @start_global_value; | ||
3924 | 56 | SELECT @@global.innodb_limit_optimistic_insert_debug; | ||
3925 | 57 | @@global.innodb_limit_optimistic_insert_debug | ||
3926 | 58 | 0 | ||
3927 | 0 | 59 | ||
3928 | === added file 'Percona-Server/mysql-test/suite/sys_vars/r/innodb_print_all_deadlocks_basic.result' | |||
3929 | --- Percona-Server/mysql-test/suite/sys_vars/r/innodb_print_all_deadlocks_basic.result 1970-01-01 00:00:00 +0000 | |||
3930 | +++ Percona-Server/mysql-test/suite/sys_vars/r/innodb_print_all_deadlocks_basic.result 2013-02-18 05:17:25 +0000 | |||
3931 | @@ -0,0 +1,22 @@ | |||
3932 | 1 | SELECT @@innodb_print_all_deadlocks; | ||
3933 | 2 | @@innodb_print_all_deadlocks | ||
3934 | 3 | 0 | ||
3935 | 4 | SET GLOBAL innodb_print_all_deadlocks=1; | ||
3936 | 5 | CREATE TABLE t1 (c1 INT, PRIMARY KEY (c1)) ENGINE=INNODB; | ||
3937 | 6 | INSERT INTO t1 VALUES (123); | ||
3938 | 7 | CREATE TABLE t2 (c2 INT, PRIMARY KEY (c2)) ENGINE=INNODB; | ||
3939 | 8 | INSERT INTO t2 VALUES (456); | ||
3940 | 9 | BEGIN; | ||
3941 | 10 | SELECT * FROM t1 FOR UPDATE; | ||
3942 | 11 | c1 | ||
3943 | 12 | 123 | ||
3944 | 13 | BEGIN; | ||
3945 | 14 | SELECT * FROM t2 FOR UPDATE; | ||
3946 | 15 | c2 | ||
3947 | 16 | 456 | ||
3948 | 17 | SELECT * FROM t2 FOR UPDATE; | ||
3949 | 18 | SELECT * FROM t1 FOR UPDATE; | ||
3950 | 19 | ERROR 40001: Deadlock found when trying to get lock; try restarting transaction | ||
3951 | 20 | DROP TABLE t2; | ||
3952 | 21 | DROP TABLE t1; | ||
3953 | 22 | SET GLOBAL innodb_print_all_deadlocks=default; | ||
3954 | 0 | 23 | ||
3955 | === added file 'Percona-Server/mysql-test/suite/sys_vars/r/innodb_trx_purge_view_update_only_debug_basic.result' | |||
3956 | --- Percona-Server/mysql-test/suite/sys_vars/r/innodb_trx_purge_view_update_only_debug_basic.result 1970-01-01 00:00:00 +0000 | |||
3957 | +++ Percona-Server/mysql-test/suite/sys_vars/r/innodb_trx_purge_view_update_only_debug_basic.result 2013-02-18 05:17:25 +0000 | |||
3958 | @@ -0,0 +1,61 @@ | |||
3959 | 1 | SET @start_global_value = @@global.innodb_trx_purge_view_update_only_debug; | ||
3960 | 2 | SELECT @start_global_value; | ||
3961 | 3 | @start_global_value | ||
3962 | 4 | 0 | ||
3963 | 5 | select @@global.innodb_trx_purge_view_update_only_debug in (0, 1); | ||
3964 | 6 | @@global.innodb_trx_purge_view_update_only_debug in (0, 1) | ||
3965 | 7 | 1 | ||
3966 | 8 | select @@global.innodb_trx_purge_view_update_only_debug; | ||
3967 | 9 | @@global.innodb_trx_purge_view_update_only_debug | ||
3968 | 10 | 0 | ||
3969 | 11 | select @@session.innodb_trx_purge_view_update_only_debug; | ||
3970 | 12 | ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable | ||
3971 | 13 | show global variables like 'innodb_trx_purge_view_update_only_debug'; | ||
3972 | 14 | Variable_name Value | ||
3973 | 15 | innodb_trx_purge_view_update_only_debug OFF | ||
3974 | 16 | show session variables like 'innodb_trx_purge_view_update_only_debug'; | ||
3975 | 17 | Variable_name Value | ||
3976 | 18 | innodb_trx_purge_view_update_only_debug OFF | ||
3977 | 19 | select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
3978 | 20 | VARIABLE_NAME VARIABLE_VALUE | ||
3979 | 21 | INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF | ||
3980 | 22 | select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
3981 | 23 | VARIABLE_NAME VARIABLE_VALUE | ||
3982 | 24 | INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF | ||
3983 | 25 | set global innodb_trx_purge_view_update_only_debug=1; | ||
3984 | 26 | select @@global.innodb_trx_purge_view_update_only_debug; | ||
3985 | 27 | @@global.innodb_trx_purge_view_update_only_debug | ||
3986 | 28 | 1 | ||
3987 | 29 | select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
3988 | 30 | VARIABLE_NAME VARIABLE_VALUE | ||
3989 | 31 | INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG ON | ||
3990 | 32 | select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
3991 | 33 | VARIABLE_NAME VARIABLE_VALUE | ||
3992 | 34 | INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG ON | ||
3993 | 35 | set @@global.innodb_trx_purge_view_update_only_debug=0; | ||
3994 | 36 | select @@global.innodb_trx_purge_view_update_only_debug; | ||
3995 | 37 | @@global.innodb_trx_purge_view_update_only_debug | ||
3996 | 38 | 0 | ||
3997 | 39 | select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
3998 | 40 | VARIABLE_NAME VARIABLE_VALUE | ||
3999 | 41 | INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF | ||
4000 | 42 | select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
4001 | 43 | VARIABLE_NAME VARIABLE_VALUE | ||
4002 | 44 | INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF | ||
4003 | 45 | set session innodb_trx_purge_view_update_only_debug='some'; | ||
4004 | 46 | ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable and should be set with SET GLOBAL | ||
4005 | 47 | set @@session.innodb_trx_purge_view_update_only_debug='some'; | ||
4006 | 48 | ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable and should be set with SET GLOBAL | ||
4007 | 49 | set global innodb_trx_purge_view_update_only_debug=1.1; | ||
4008 | 50 | ERROR 42000: Incorrect argument type to variable 'innodb_trx_purge_view_update_only_debug' | ||
4009 | 51 | set global innodb_trx_purge_view_update_only_debug='foo'; | ||
4010 | 52 | ERROR 42000: Variable 'innodb_trx_purge_view_update_only_debug' can't be set to the value of 'foo' | ||
4011 | 53 | set global innodb_trx_purge_view_update_only_debug=-2; | ||
4012 | 54 | set global innodb_trx_purge_view_update_only_debug=1e1; | ||
4013 | 55 | ERROR 42000: Incorrect argument type to variable 'innodb_trx_purge_view_update_only_debug' | ||
4014 | 56 | set global innodb_trx_purge_view_update_only_debug=2; | ||
4015 | 57 | ERROR 42000: Variable 'innodb_trx_purge_view_update_only_debug' can't be set to the value of '2' | ||
4016 | 58 | SET @@global.innodb_trx_purge_view_update_only_debug = @start_global_value; | ||
4017 | 59 | SELECT @@global.innodb_trx_purge_view_update_only_debug; | ||
4018 | 60 | @@global.innodb_trx_purge_view_update_only_debug | ||
4019 | 61 | 0 | ||
4020 | 0 | 62 | ||
4021 | === removed file 'Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_update_as_write_basic.result' | |||
4022 | --- Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_update_as_write_basic.result 2008-12-19 15:12:15 +0000 | |||
4023 | +++ Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_update_as_write_basic.result 1970-01-01 00:00:00 +0000 | |||
4024 | @@ -1,14 +0,0 @@ | |||
4025 | 1 | SET @global_start_value = @@global.ndb_log_update_as_write; | ||
4026 | 2 | ERROR HY000: Unknown system variable 'ndb_log_update_as_write' | ||
4027 | 3 | SELECT @@global.ndb_log_update_as_write; | ||
4028 | 4 | ERROR HY000: Unknown system variable 'ndb_log_update_as_write' | ||
4029 | 5 | 'Bug: The value is not a system variable or atleast not supported in version 5.1.22' | ||
4030 | 6 | '#--------------------FN_DYNVARS_102_01------------------------#' | ||
4031 | 7 | '#---------------------FN_DYNVARS_102_02-------------------------#' | ||
4032 | 8 | '#--------------------FN_DYNVARS_102_03------------------------#' | ||
4033 | 9 | '#--------------------FN_DYNVARS_102_04-------------------------#' | ||
4034 | 10 | '#-------------------FN_DYNVARS_102_05----------------------------#' | ||
4035 | 11 | '#----------------------FN_DYNVARS_102_06------------------------#' | ||
4036 | 12 | '#----------------------FN_DYNVARS_102_07------------------------#' | ||
4037 | 13 | '#---------------------FN_DYNVARS_102_08-------------------------#' | ||
4038 | 14 | '#---------------------FN_DYNVARS_102_09----------------------#' | ||
4039 | 15 | 0 | ||
4040 | === removed file 'Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_updated_only_basic.result' | |||
4041 | --- Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_updated_only_basic.result 2008-12-19 15:12:15 +0000 | |||
4042 | +++ Percona-Server/mysql-test/suite/sys_vars/r/ndb_log_updated_only_basic.result 1970-01-01 00:00:00 +0000 | |||
4043 | @@ -1,14 +0,0 @@ | |||
4044 | 1 | SET @global_start_value = @@global.ndb_log_updated_only; | ||
4045 | 2 | ERROR HY000: Unknown system variable 'ndb_log_updated_only' | ||
4046 | 3 | SELECT @@global.ndb_log_updated_only; | ||
4047 | 4 | ERROR HY000: Unknown system variable 'ndb_log_updated_only' | ||
4048 | 5 | 'Bug: The value is not a system variable or atleast not supported in version 5.1.22' | ||
4049 | 6 | '#--------------------FN_DYNVARS_103_01------------------------#' | ||
4050 | 7 | '#---------------------FN_DYNVARS_103_02-------------------------#' | ||
4051 | 8 | '#--------------------FN_DYNVARS_103_03------------------------#' | ||
4052 | 9 | '#--------------------FN_DYNVARS_103_04-------------------------#' | ||
4053 | 10 | '#-------------------FN_DYNVARS_103_05----------------------------#' | ||
4054 | 11 | '#----------------------FN_DYNVARS_103_06------------------------#' | ||
4055 | 12 | '#----------------------FN_DYNVARS_103_07------------------------#' | ||
4056 | 13 | '#---------------------FN_DYNVARS_103_08-------------------------#' | ||
4057 | 14 | '#---------------------FN_DYNVARS_103_09----------------------#' | ||
4058 | 15 | 0 | ||
4059 | === added file 'Percona-Server/mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result' | |||
4060 | --- Percona-Server/mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result 1970-01-01 00:00:00 +0000 | |||
4061 | +++ Percona-Server/mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result 2013-02-18 05:17:25 +0000 | |||
4062 | @@ -0,0 +1,119 @@ | |||
4063 | 1 | SET @session_start_value = @@session.pseudo_slave_mode; | ||
4064 | 2 | SELECT @session_start_value; | ||
4065 | 3 | @session_start_value | ||
4066 | 4 | 0 | ||
4067 | 5 | '#--------------------FN_DYNVARS_156_01------------------------#' | ||
4068 | 6 | SET @@session.pseudo_slave_mode = 0; | ||
4069 | 7 | Warnings: | ||
4070 | 8 | Warning 1231 'pseudo_slave_mode' change was ineffective. | ||
4071 | 9 | SET @@session.pseudo_slave_mode = DEFAULT; | ||
4072 | 10 | Warnings: | ||
4073 | 11 | Warning 1231 'pseudo_slave_mode' change was ineffective. | ||
4074 | 12 | SELECT @@session.pseudo_slave_mode; | ||
4075 | 13 | @@session.pseudo_slave_mode | ||
4076 | 14 | 0 | ||
4077 | 15 | SET @@session.pseudo_slave_mode = 1; | ||
4078 | 16 | SET @@session.pseudo_slave_mode = DEFAULT; | ||
4079 | 17 | Warnings: | ||
4080 | 18 | Warning 1231 Slave applier execution mode not active, statement ineffective. | ||
4081 | 19 | SELECT @@session.pseudo_slave_mode; | ||
4082 | 20 | @@session.pseudo_slave_mode | ||
4083 | 21 | 0 | ||
4084 | 22 | '#---------------------FN_DYNVARS_156_02-------------------------#' | ||
4085 | 23 | SET pseudo_slave_mode = 1; | ||
4086 | 24 | SELECT @@pseudo_slave_mode; | ||
4087 | 25 | @@pseudo_slave_mode | ||
4088 | 26 | 1 | ||
4089 | 27 | SELECT session.pseudo_slave_mode; | ||
4090 | 28 | ERROR 42S02: Unknown table 'session' in field list | ||
4091 | 29 | SELECT local.pseudo_slave_mode; | ||
4092 | 30 | ERROR 42S02: Unknown table 'local' in field list | ||
4093 | 31 | SET session pseudo_slave_mode = 0; | ||
4094 | 32 | Warnings: | ||
4095 | 33 | Warning 1231 Slave applier execution mode not active, statement ineffective. | ||
4096 | 34 | SELECT @@session.pseudo_slave_mode; | ||
4097 | 35 | @@session.pseudo_slave_mode | ||
4098 | 36 | 0 | ||
4099 | 37 | '#--------------------FN_DYNVARS_156_03------------------------#' | ||
4100 | 38 | SET @@session.pseudo_slave_mode = 0; | ||
4101 | 39 | Warnings: | ||
4102 | 40 | Warning 1231 'pseudo_slave_mode' change was ineffective. | ||
4103 | 41 | SELECT @@session.pseudo_slave_mode; | ||
4104 | 42 | @@session.pseudo_slave_mode | ||
4105 | 43 | 0 | ||
4106 | 44 | SET @@session.pseudo_slave_mode = 1; | ||
4107 | 45 | SELECT @@session.pseudo_slave_mode; | ||
4108 | 46 | @@session.pseudo_slave_mode | ||
4109 | 47 | 1 | ||
4110 | 48 | '#--------------------FN_DYNVARS_156_04-------------------------#' | ||
4111 | 49 | SET @@session.pseudo_slave_mode = -1; | ||
4112 | 50 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '-1' | ||
4113 | 51 | SET @@session.pseudo_slave_mode = 2; | ||
4114 | 52 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '2' | ||
4115 | 53 | SET @@session.pseudo_slave_mode = "T"; | ||
4116 | 54 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'T' | ||
4117 | 55 | SET @@session.pseudo_slave_mode = "Y"; | ||
4118 | 56 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'Y' | ||
4119 | 57 | SET @@session.pseudo_slave_mode = TRÜE; | ||
4120 | 58 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'TRÜE' | ||
4121 | 59 | SET @@session.pseudo_slave_mode = ÕN; | ||
4122 | 60 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'ÕN' | ||
4123 | 61 | SET @@session.pseudo_slave_mode = OF; | ||
4124 | 62 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'OF' | ||
4125 | 63 | SET @@session.pseudo_slave_mode = ÓFF; | ||
4126 | 64 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'ÓFF' | ||
4127 | 65 | SET @@session.pseudo_slave_mode = '¹'; | ||
4128 | 66 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '¹' | ||
4129 | 67 | SET @@session.pseudo_slave_mode = NO; | ||
4130 | 68 | ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'NO' | ||
4131 | 69 | '#-------------------FN_DYNVARS_156_05----------------------------#' | ||
4132 | 70 | SET @@global.pseudo_slave_mode = 0; | ||
4133 | 71 | ERROR HY000: Variable 'pseudo_slave_mode' is a SESSION variable and can't be used with SET GLOBAL | ||
4134 | 72 | SELECT @@global.pseudo_slave_mode; | ||
4135 | 73 | ERROR HY000: Variable 'pseudo_slave_mode' is a SESSION variable | ||
4136 | 74 | '#----------------------FN_DYNVARS_156_06------------------------#' | ||
4137 | 75 | SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='pseudo_slave_mode'; | ||
4138 | 76 | count(VARIABLE_VALUE) | ||
4139 | 77 | 1 | ||
4140 | 78 | '#----------------------FN_DYNVARS_156_07------------------------#' | ||
4141 | 79 | SELECT IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE | ||
4142 | 80 | FROM INFORMATION_SCHEMA.SESSION_VARIABLES | ||
4143 | 81 | WHERE VARIABLE_NAME='pseudo_slave_mode'; | ||
4144 | 82 | IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE | ||
4145 | 83 | 1 | ||
4146 | 84 | SELECT @@session.pseudo_slave_mode; | ||
4147 | 85 | @@session.pseudo_slave_mode | ||
4148 | 86 | 1 | ||
4149 | 87 | SELECT VARIABLE_VALUE | ||
4150 | 88 | FROM INFORMATION_SCHEMA.SESSION_VARIABLES | ||
4151 | 89 | WHERE VARIABLE_NAME='pseudo_slave_mode'; | ||
4152 | 90 | VARIABLE_VALUE | ||
4153 | 91 | ON | ||
4154 | 92 | '#---------------------FN_DYNVARS_156_08-------------------------#' | ||
4155 | 93 | SET @@session.pseudo_slave_mode = OFF; | ||
4156 | 94 | Warnings: | ||
4157 | 95 | Warning 1231 Slave applier execution mode not active, statement ineffective. | ||
4158 | 96 | SELECT @@session.pseudo_slave_mode; | ||
4159 | 97 | @@session.pseudo_slave_mode | ||
4160 | 98 | 0 | ||
4161 | 99 | SET @@session.pseudo_slave_mode = ON; | ||
4162 | 100 | SELECT @@session.pseudo_slave_mode; | ||
4163 | 101 | @@session.pseudo_slave_mode | ||
4164 | 102 | 1 | ||
4165 | 103 | '#---------------------FN_DYNVARS_156_09----------------------#' | ||
4166 | 104 | SET @@session.pseudo_slave_mode = TRUE; | ||
4167 | 105 | SELECT @@session.pseudo_slave_mode; | ||
4168 | 106 | @@session.pseudo_slave_mode | ||
4169 | 107 | 1 | ||
4170 | 108 | SET @@session.pseudo_slave_mode = FALSE; | ||
4171 | 109 | Warnings: | ||
4172 | 110 | Warning 1231 Slave applier execution mode not active, statement ineffective. | ||
4173 | 111 | SELECT @@session.pseudo_slave_mode; | ||
4174 | 112 | @@session.pseudo_slave_mode | ||
4175 | 113 | 0 | ||
4176 | 114 | SET @@session.pseudo_slave_mode = @session_start_value; | ||
4177 | 115 | Warnings: | ||
4178 | 116 | Warning 1231 'pseudo_slave_mode' change was ineffective. | ||
4179 | 117 | SELECT @@session.pseudo_slave_mode; | ||
4180 | 118 | @@session.pseudo_slave_mode | ||
4181 | 119 | 0 | ||
4182 | 0 | 120 | ||
4183 | === added file 'Percona-Server/mysql-test/suite/sys_vars/t/innodb_limit_optimistic_insert_debug_basic.test' | |||
4184 | --- Percona-Server/mysql-test/suite/sys_vars/t/innodb_limit_optimistic_insert_debug_basic.test 1970-01-01 00:00:00 +0000 | |||
4185 | +++ Percona-Server/mysql-test/suite/sys_vars/t/innodb_limit_optimistic_insert_debug_basic.test 2013-02-18 05:17:25 +0000 | |||
4186 | @@ -0,0 +1,50 @@ | |||
4187 | 1 | --source include/have_innodb.inc | ||
4188 | 2 | --source include/have_debug.inc | ||
4189 | 3 | |||
4190 | 4 | SET @start_global_value = @@global.innodb_limit_optimistic_insert_debug; | ||
4191 | 5 | SELECT @start_global_value; | ||
4192 | 6 | |||
4193 | 7 | # | ||
4194 | 8 | # exists as global only | ||
4195 | 9 | # | ||
4196 | 10 | select @@global.innodb_limit_optimistic_insert_debug; | ||
4197 | 11 | --error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4198 | 12 | select @@session.innodb_limit_optimistic_insert_debug; | ||
4199 | 13 | show global variables like 'innodb_limit_optimistic_insert_debug'; | ||
4200 | 14 | show session variables like 'innodb_limit_optimistic_insert_debug'; | ||
4201 | 15 | select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
4202 | 16 | select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
4203 | 17 | |||
4204 | 18 | # | ||
4205 | 19 | # show that it's writable | ||
4206 | 20 | # | ||
4207 | 21 | set global innodb_limit_optimistic_insert_debug=1; | ||
4208 | 22 | select @@global.innodb_limit_optimistic_insert_debug; | ||
4209 | 23 | select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
4210 | 24 | select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
4211 | 25 | set @@global.innodb_limit_optimistic_insert_debug=0; | ||
4212 | 26 | select @@global.innodb_limit_optimistic_insert_debug; | ||
4213 | 27 | select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
4214 | 28 | select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug'; | ||
4215 | 29 | --error ER_GLOBAL_VARIABLE | ||
4216 | 30 | set session innodb_limit_optimistic_insert_debug='some'; | ||
4217 | 31 | --error ER_GLOBAL_VARIABLE | ||
4218 | 32 | set @@session.innodb_limit_optimistic_insert_debug='some'; | ||
4219 | 33 | |||
4220 | 34 | # | ||
4221 | 35 | # incorrect types | ||
4222 | 36 | # | ||
4223 | 37 | --error ER_WRONG_TYPE_FOR_VAR | ||
4224 | 38 | set global innodb_limit_optimistic_insert_debug=1.1; | ||
4225 | 39 | --error ER_WRONG_TYPE_FOR_VAR | ||
4226 | 40 | set global innodb_limit_optimistic_insert_debug='foo'; | ||
4227 | 41 | set global innodb_limit_optimistic_insert_debug=-2; | ||
4228 | 42 | --error ER_WRONG_TYPE_FOR_VAR | ||
4229 | 43 | set global innodb_limit_optimistic_insert_debug=1e1; | ||
4230 | 44 | |||
4231 | 45 | # | ||
4232 | 46 | # Cleanup | ||
4233 | 47 | # | ||
4234 | 48 | |||
4235 | 49 | SET @@global.innodb_limit_optimistic_insert_debug = @start_global_value; | ||
4236 | 50 | SELECT @@global.innodb_limit_optimistic_insert_debug; | ||
4237 | 0 | 51 | ||
4238 | === added file 'Percona-Server/mysql-test/suite/sys_vars/t/innodb_print_all_deadlocks_basic.test' | |||
4239 | --- Percona-Server/mysql-test/suite/sys_vars/t/innodb_print_all_deadlocks_basic.test 1970-01-01 00:00:00 +0000 | |||
4240 | +++ Percona-Server/mysql-test/suite/sys_vars/t/innodb_print_all_deadlocks_basic.test 2013-02-18 05:17:25 +0000 | |||
4241 | @@ -0,0 +1,48 @@ | |||
4242 | 1 | # | ||
4243 | 2 | # innodb_print_all_deadlocks | ||
4244 | 3 | # | ||
4245 | 4 | |||
4246 | 5 | -- source include/have_innodb.inc | ||
4247 | 6 | |||
4248 | 7 | SELECT @@innodb_print_all_deadlocks; | ||
4249 | 8 | |||
4250 | 9 | SET GLOBAL innodb_print_all_deadlocks=1; | ||
4251 | 10 | |||
4252 | 11 | CREATE TABLE t1 (c1 INT, PRIMARY KEY (c1)) ENGINE=INNODB; | ||
4253 | 12 | INSERT INTO t1 VALUES (123); | ||
4254 | 13 | |||
4255 | 14 | CREATE TABLE t2 (c2 INT, PRIMARY KEY (c2)) ENGINE=INNODB; | ||
4256 | 15 | INSERT INTO t2 VALUES (456); | ||
4257 | 16 | |||
4258 | 17 | -- connect (con1,localhost,root,,) | ||
4259 | 18 | -- connect (con2,localhost,root,,) | ||
4260 | 19 | |||
4261 | 20 | -- connection con1 | ||
4262 | 21 | BEGIN; | ||
4263 | 22 | SELECT * FROM t1 FOR UPDATE; | ||
4264 | 23 | |||
4265 | 24 | -- connection con2 | ||
4266 | 25 | BEGIN; | ||
4267 | 26 | SELECT * FROM t2 FOR UPDATE; | ||
4268 | 27 | |||
4269 | 28 | -- connection con1 | ||
4270 | 29 | -- send | ||
4271 | 30 | SELECT * FROM t2 FOR UPDATE; | ||
4272 | 31 | |||
4273 | 32 | -- connection con2 | ||
4274 | 33 | let $wait_condition= | ||
4275 | 34 | SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST | ||
4276 | 35 | WHERE state = 'Sending data' AND info = 'SELECT * FROM t2 FOR UPDATE'; | ||
4277 | 36 | -- source include/wait_condition.inc | ||
4278 | 37 | -- error ER_LOCK_DEADLOCK | ||
4279 | 38 | SELECT * FROM t1 FOR UPDATE; | ||
4280 | 39 | |||
4281 | 40 | -- connection default | ||
4282 | 41 | |||
4283 | 42 | -- disconnect con1 | ||
4284 | 43 | -- disconnect con2 | ||
4285 | 44 | |||
4286 | 45 | DROP TABLE t2; | ||
4287 | 46 | DROP TABLE t1; | ||
4288 | 47 | |||
4289 | 48 | SET GLOBAL innodb_print_all_deadlocks=default; | ||
4290 | 0 | 49 | ||
4291 | === added file 'Percona-Server/mysql-test/suite/sys_vars/t/innodb_trx_purge_view_update_only_debug_basic.test' | |||
4292 | --- Percona-Server/mysql-test/suite/sys_vars/t/innodb_trx_purge_view_update_only_debug_basic.test 1970-01-01 00:00:00 +0000 | |||
4293 | +++ Percona-Server/mysql-test/suite/sys_vars/t/innodb_trx_purge_view_update_only_debug_basic.test 2013-02-18 05:17:25 +0000 | |||
4294 | @@ -0,0 +1,53 @@ | |||
4295 | 1 | --source include/have_innodb.inc | ||
4296 | 2 | --source include/have_debug.inc | ||
4297 | 3 | |||
4298 | 4 | SET @start_global_value = @@global.innodb_trx_purge_view_update_only_debug; | ||
4299 | 5 | SELECT @start_global_value; | ||
4300 | 6 | |||
4301 | 7 | # | ||
4302 | 8 | # exists as global only | ||
4303 | 9 | # | ||
4304 | 10 | select @@global.innodb_trx_purge_view_update_only_debug in (0, 1); | ||
4305 | 11 | select @@global.innodb_trx_purge_view_update_only_debug; | ||
4306 | 12 | --error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4307 | 13 | select @@session.innodb_trx_purge_view_update_only_debug; | ||
4308 | 14 | show global variables like 'innodb_trx_purge_view_update_only_debug'; | ||
4309 | 15 | show session variables like 'innodb_trx_purge_view_update_only_debug'; | ||
4310 | 16 | select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
4311 | 17 | select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
4312 | 18 | |||
4313 | 19 | # | ||
4314 | 20 | # show that it's writable | ||
4315 | 21 | # | ||
4316 | 22 | set global innodb_trx_purge_view_update_only_debug=1; | ||
4317 | 23 | select @@global.innodb_trx_purge_view_update_only_debug; | ||
4318 | 24 | select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
4319 | 25 | select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
4320 | 26 | set @@global.innodb_trx_purge_view_update_only_debug=0; | ||
4321 | 27 | select @@global.innodb_trx_purge_view_update_only_debug; | ||
4322 | 28 | select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
4323 | 29 | select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug'; | ||
4324 | 30 | --error ER_GLOBAL_VARIABLE | ||
4325 | 31 | set session innodb_trx_purge_view_update_only_debug='some'; | ||
4326 | 32 | --error ER_GLOBAL_VARIABLE | ||
4327 | 33 | set @@session.innodb_trx_purge_view_update_only_debug='some'; | ||
4328 | 34 | |||
4329 | 35 | # | ||
4330 | 36 | # incorrect types | ||
4331 | 37 | # | ||
4332 | 38 | --error ER_WRONG_TYPE_FOR_VAR | ||
4333 | 39 | set global innodb_trx_purge_view_update_only_debug=1.1; | ||
4334 | 40 | --error ER_WRONG_VALUE_FOR_VAR | ||
4335 | 41 | set global innodb_trx_purge_view_update_only_debug='foo'; | ||
4336 | 42 | set global innodb_trx_purge_view_update_only_debug=-2; | ||
4337 | 43 | --error ER_WRONG_TYPE_FOR_VAR | ||
4338 | 44 | set global innodb_trx_purge_view_update_only_debug=1e1; | ||
4339 | 45 | --error ER_WRONG_VALUE_FOR_VAR | ||
4340 | 46 | set global innodb_trx_purge_view_update_only_debug=2; | ||
4341 | 47 | |||
4342 | 48 | # | ||
4343 | 49 | # Cleanup | ||
4344 | 50 | # | ||
4345 | 51 | |||
4346 | 52 | SET @@global.innodb_trx_purge_view_update_only_debug = @start_global_value; | ||
4347 | 53 | SELECT @@global.innodb_trx_purge_view_update_only_debug; | ||
4348 | 0 | 54 | ||
4349 | === removed file 'Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_update_as_write_basic.test' | |||
4350 | --- Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_update_as_write_basic.test 2010-07-15 11:13:30 +0000 | |||
4351 | +++ Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_update_as_write_basic.test 1970-01-01 00:00:00 +0000 | |||
4352 | @@ -1,216 +0,0 @@ | |||
4353 | 1 | ############## mysql-test\t\ndb_log_update_as_write_basic.test ############### | ||
4354 | 2 | # # | ||
4355 | 3 | # Variable Name: ndb_log_update_as_write # | ||
4356 | 4 | # Scope: GLOBAL # | ||
4357 | 5 | # Access Type: Dynamic # | ||
4358 | 6 | # Data Type: boolean # | ||
4359 | 7 | # Default Value: # | ||
4360 | 8 | # Range: # | ||
4361 | 9 | # # | ||
4362 | 10 | # # | ||
4363 | 11 | # Creation Date: 2008-02-07 # | ||
4364 | 12 | # Author: Rizwan # | ||
4365 | 13 | # # | ||
4366 | 14 | # Description: Test Cases of Dynamic System Variable ndb_log_update_as_write # | ||
4367 | 15 | # that checks the behavior of this variable in the following ways# | ||
4368 | 16 | # * Default Value # | ||
4369 | 17 | # * Valid & Invalid values # | ||
4370 | 18 | # * Scope & Access method # | ||
4371 | 19 | # * Data Integrity # | ||
4372 | 20 | # # | ||
4373 | 21 | # Reference: http://dev.mysql.com/doc/refman/5.1/en/ # | ||
4374 | 22 | # server-system-variables.html # | ||
4375 | 23 | # # | ||
4376 | 24 | ############################################################################### | ||
4377 | 25 | ############## mysql-test\t\ndb_log_update_as_write_basic.test ################ | ||
4378 | 26 | # # | ||
4379 | 27 | # Variable Name: ndb_log_update_as_write # | ||
4380 | 28 | # Scope: GLOBAL & SESSION # | ||
4381 | 29 | # Access Type: Dynamic # | ||
4382 | 30 | # Data Type: Numeric # | ||
4383 | 31 | # Default Value: 1 # | ||
4384 | 32 | # Range: 1 - 65536 # | ||
4385 | 33 | # # | ||
4386 | 34 | # # | ||
4387 | 35 | # Creation Date: 2008-02-07 # | ||
4388 | 36 | # Author: Rizwan Maredia # | ||
4389 | 37 | # # | ||
4390 | 38 | # Description: Test Cases of Dynamic System Variable ndb_log_update_as_write # | ||
4391 | 39 | # that checks the behavior of this variable in the following ways # | ||
4392 | 40 | # * Default Value # | ||
4393 | 41 | # * Valid & Invalid values # | ||
4394 | 42 | # * Scope & Access method # | ||
4395 | 43 | # * Data Integrity # | ||
4396 | 44 | # # | ||
4397 | 45 | # Reference: http://dev.mysql.com/doc/refman/5.1/en/ # | ||
4398 | 46 | # server-system-variables.html # | ||
4399 | 47 | # # | ||
4400 | 48 | ################################################################################ | ||
4401 | 49 | ################# mysql-test\t\ndb_log_update_as_write_basic.test ###### | ||
4402 | 50 | # # | ||
4403 | 51 | # # | ||
4404 | 52 | # Creation Date: 2008-02-07 # | ||
4405 | 53 | # Author: Rizwan Maredia # | ||
4406 | 54 | # # | ||
4407 | 55 | # Description: Test Cases of Dynamic System Variable # | ||
4408 | 56 | # ndb_log_update_as_write that check behavior of this # | ||
4409 | 57 | # variable with valid values, invalid values, # | ||
4410 | 58 | # accessing variable with scope that is # | ||
4411 | 59 | # allowed and with scope that is now allowed. # | ||
4412 | 60 | # Scope: Global # | ||
4413 | 61 | # Reference: http://dev.mysql.com/doc/refman/5.1/en/server-system # | ||
4414 | 62 | # -variables.html # | ||
4415 | 63 | # # | ||
4416 | 64 | ######################################################################## | ||
4417 | 65 | |||
4418 | 66 | --source include/load_sysvars.inc | ||
4419 | 67 | |||
4420 | 68 | ######################################################################## | ||
4421 | 69 | # START OF ndb_log_update_as_write TESTS # | ||
4422 | 70 | ######################################################################## | ||
4423 | 71 | |||
4424 | 72 | |||
4425 | 73 | ################################################################################ | ||
4426 | 74 | # Saving initial value of ndb_log_update_as_write in a temporary variable # | ||
4427 | 75 | ################################################################################ | ||
4428 | 76 | |||
4429 | 77 | |||
4430 | 78 | --Error ER_UNKNOWN_SYSTEM_VARIABLE | ||
4431 | 79 | SET @global_start_value = @@global.ndb_log_update_as_write; | ||
4432 | 80 | --Error ER_UNKNOWN_SYSTEM_VARIABLE | ||
4433 | 81 | SELECT @@global.ndb_log_update_as_write; | ||
4434 | 82 | |||
4435 | 83 | --echo 'Bug: The value is not a system variable or atleast not supported in version 5.1.22' | ||
4436 | 84 | |||
4437 | 85 | |||
4438 | 86 | --echo '#--------------------FN_DYNVARS_102_01------------------------#' | ||
4439 | 87 | ######################################################################## | ||
4440 | 88 | # Display the DEFAULT value of ndb_log_update_as_write # | ||
4441 | 89 | ######################################################################## | ||
4442 | 90 | |||
4443 | 91 | #SET @@ndb_log_update_as_write = 0; | ||
4444 | 92 | #SET @@ndb_log_update_as_write = DEFAULT; | ||
4445 | 93 | #SELECT @@ndb_log_update_as_write; | ||
4446 | 94 | # | ||
4447 | 95 | #SET @@ndb_log_update_as_write = 1; | ||
4448 | 96 | #SET @@ndb_log_update_as_write = DEFAULT; | ||
4449 | 97 | #SELECT @@ndb_log_update_as_write; | ||
4450 | 98 | |||
4451 | 99 | |||
4452 | 100 | --echo '#---------------------FN_DYNVARS_102_02-------------------------#' | ||
4453 | 101 | ############################################################################# | ||
4454 | 102 | # Check if ndb_log_update_as_write can be accessed with and without @@ sign # | ||
4455 | 103 | ############################################################################# | ||
4456 | 104 | |||
4457 | 105 | #SET ndb_log_update_as_write = 1; | ||
4458 | 106 | #SELECT @@ndb_log_update_as_write; | ||
4459 | 107 | #--Error ER_UNKNOWN_TABLE | ||
4460 | 108 | #SELECT global.ndb_log_update_as_write; | ||
4461 | 109 | # | ||
4462 | 110 | #SET global ndb_log_update_as_write = 1; | ||
4463 | 111 | #SELECT @@global.ndb_log_update_as_write; | ||
4464 | 112 | |||
4465 | 113 | |||
4466 | 114 | --echo '#--------------------FN_DYNVARS_102_03------------------------#' | ||
4467 | 115 | ######################################################################## | ||
4468 | 116 | # Change the value of ndb_log_update_as_write to a valid value # | ||
4469 | 117 | ######################################################################## | ||
4470 | 118 | |||
4471 | 119 | #SET @@global.ndb_log_update_as_write = 0; | ||
4472 | 120 | #SELECT @@global.ndb_log_update_as_write; | ||
4473 | 121 | #SET @@global.ndb_log_update_as_write = 1; | ||
4474 | 122 | #SELECT @@global.ndb_log_update_as_write; | ||
4475 | 123 | ## a value of 2 is used to just flush logs and then shutdown cold. | ||
4476 | 124 | #SET @@global.ndb_log_update_as_write = 2; | ||
4477 | 125 | #SELECT @@global.ndb_log_update_as_write; | ||
4478 | 126 | |||
4479 | 127 | --echo '#--------------------FN_DYNVARS_102_04-------------------------#' | ||
4480 | 128 | ########################################################################### | ||
4481 | 129 | # Change the value of ndb_log_update_as_write to invalid value # | ||
4482 | 130 | ########################################################################### | ||
4483 | 131 | |||
4484 | 132 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4485 | 133 | #SET @@global.ndb_log_update_as_write = -1; | ||
4486 | 134 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4487 | 135 | #SET @@global.ndb_log_update_as_write = TRU; | ||
4488 | 136 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4489 | 137 | #SET @@global.ndb_log_update_as_write = TRUE_F; | ||
4490 | 138 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4491 | 139 | #SET @@global.ndb_log_update_as_write = FALS; | ||
4492 | 140 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4493 | 141 | #SET @@global.ndb_log_update_as_write = OON; | ||
4494 | 142 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4495 | 143 | #SET @@global.ndb_log_update_as_write = ONN; | ||
4496 | 144 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4497 | 145 | #SET @@global.ndb_log_update_as_write = OOFF; | ||
4498 | 146 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4499 | 147 | #SET @@global.ndb_log_update_as_write = 0FF; | ||
4500 | 148 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4501 | 149 | #SET @@global.ndb_log_update_as_write = ' 1'; | ||
4502 | 150 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4503 | 151 | #SET @@global.ndb_log_update_as_write = "0 "; | ||
4504 | 152 | |||
4505 | 153 | |||
4506 | 154 | |||
4507 | 155 | --echo '#-------------------FN_DYNVARS_102_05----------------------------#' | ||
4508 | 156 | ########################################################################### | ||
4509 | 157 | # Test if accessing session ndb_log_update_as_write gives error # | ||
4510 | 158 | ########################################################################### | ||
4511 | 159 | |||
4512 | 160 | #--Error ER_LOCAL_VARIABLE | ||
4513 | 161 | #SET @@session.ndb_log_update_as_write = 0; | ||
4514 | 162 | #--Error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4515 | 163 | #SET @@ndb_log_update_as_write = 0; | ||
4516 | 164 | #--Error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4517 | 165 | #SET @@local.ndb_log_update_as_write = 0; | ||
4518 | 166 | #--Error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4519 | 167 | #SELECT @@session.ndb_log_update_as_write; | ||
4520 | 168 | #--Error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4521 | 169 | #SELECT @@local.ndb_log_update_as_write; | ||
4522 | 170 | |||
4523 | 171 | --echo '#----------------------FN_DYNVARS_102_06------------------------#' | ||
4524 | 172 | ######################################################################### | ||
4525 | 173 | # Check if the value in SESSION Table contains variable value # | ||
4526 | 174 | ######################################################################### | ||
4527 | 175 | |||
4528 | 176 | #SELECT count(VARIABLE_VALUE) AS res_is_0 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='ndb_log_update_as_write'; | ||
4529 | 177 | |||
4530 | 178 | |||
4531 | 179 | --echo '#----------------------FN_DYNVARS_102_07------------------------#' | ||
4532 | 180 | ######################################################################### | ||
4533 | 181 | # Check if the value in GLOBAL Table matches value in variable # | ||
4534 | 182 | ######################################################################### | ||
4535 | 183 | |||
4536 | 184 | #SELECT @@global.ndb_log_update_as_write = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='ndb_log_update_as_write'; | ||
4537 | 185 | |||
4538 | 186 | |||
4539 | 187 | --echo '#---------------------FN_DYNVARS_102_08-------------------------#' | ||
4540 | 188 | ################################################################### | ||
4541 | 189 | # Check if ON and OFF values can be used on variable # | ||
4542 | 190 | ################################################################### | ||
4543 | 191 | |||
4544 | 192 | #SET @@ndb_log_update_as_write = OFF; | ||
4545 | 193 | #SELECT @@ndb_log_update_as_write; | ||
4546 | 194 | #SET @@ndb_log_update_as_write = ON; | ||
4547 | 195 | #SELECT @@ndb_log_update_as_write; | ||
4548 | 196 | |||
4549 | 197 | --echo '#---------------------FN_DYNVARS_102_09----------------------#' | ||
4550 | 198 | ################################################################### | ||
4551 | 199 | # Check if TRUE and FALSE values can be used on variable # | ||
4552 | 200 | ################################################################### | ||
4553 | 201 | |||
4554 | 202 | #SET @@ndb_log_update_as_write = TRUE; | ||
4555 | 203 | #SELECT @@ndb_log_update_as_write; | ||
4556 | 204 | #SET @@ndb_log_update_as_write = 'FALSE'; | ||
4557 | 205 | #SELECT @@ndb_log_update_as_write; | ||
4558 | 206 | |||
4559 | 207 | ############################## | ||
4560 | 208 | # Restore initial value # | ||
4561 | 209 | ############################## | ||
4562 | 210 | |||
4563 | 211 | #SET @@ndb_log_update_as_write = @global_start_value; | ||
4564 | 212 | #SELECT @@ndb_log_update_as_write; | ||
4565 | 213 | |||
4566 | 214 | ######################################################################## | ||
4567 | 215 | # END OF ndb_log_update_as_write TESTS # | ||
4568 | 216 | ######################################################################## | ||
4569 | 217 | 0 | ||
4570 | === removed file 'Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_updated_only_basic.test' | |||
4571 | --- Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_updated_only_basic.test 2010-07-15 11:13:30 +0000 | |||
4572 | +++ Percona-Server/mysql-test/suite/sys_vars/t/ndb_log_updated_only_basic.test 1970-01-01 00:00:00 +0000 | |||
4573 | @@ -1,216 +0,0 @@ | |||
4574 | 1 | ############## mysql-test\t\ndb_log_updated_only_basic.test ############### | ||
4575 | 2 | # # | ||
4576 | 3 | # Variable Name: ndb_log_updated_only # | ||
4577 | 4 | # Scope: GLOBAL # | ||
4578 | 5 | # Access Type: Dynamic # | ||
4579 | 6 | # Data Type: boolean # | ||
4580 | 7 | # Default Value: # | ||
4581 | 8 | # Range: # | ||
4582 | 9 | # # | ||
4583 | 10 | # # | ||
4584 | 11 | # Creation Date: 2008-02-07 # | ||
4585 | 12 | # Author: Rizwan # | ||
4586 | 13 | # # | ||
4587 | 14 | # Description: Test Cases of Dynamic System Variable ndb_log_updated_only # | ||
4588 | 15 | # that checks the behavior of this variable in the following ways# | ||
4589 | 16 | # * Default Value # | ||
4590 | 17 | # * Valid & Invalid values # | ||
4591 | 18 | # * Scope & Access method # | ||
4592 | 19 | # * Data Integrity # | ||
4593 | 20 | # # | ||
4594 | 21 | # Reference: http://dev.mysql.com/doc/refman/5.1/en/ # | ||
4595 | 22 | # server-system-variables.html # | ||
4596 | 23 | # # | ||
4597 | 24 | ############################################################################### | ||
4598 | 25 | ############## mysql-test\t\ndb_log_updated_only_basic.test ################ | ||
4599 | 26 | # # | ||
4600 | 27 | # Variable Name: ndb_log_updated_only # | ||
4601 | 28 | # Scope: GLOBAL & SESSION # | ||
4602 | 29 | # Access Type: Dynamic # | ||
4603 | 30 | # Data Type: Numeric # | ||
4604 | 31 | # Default Value: 1 # | ||
4605 | 32 | # Range: 1 - 65536 # | ||
4606 | 33 | # # | ||
4607 | 34 | # # | ||
4608 | 35 | # Creation Date: 2008-02-07 # | ||
4609 | 36 | # Author: Rizwan Maredia # | ||
4610 | 37 | # # | ||
4611 | 38 | # Description: Test Cases of Dynamic System Variable ndb_log_updated_only # | ||
4612 | 39 | # that checks the behavior of this variable in the following ways # | ||
4613 | 40 | # * Default Value # | ||
4614 | 41 | # * Valid & Invalid values # | ||
4615 | 42 | # * Scope & Access method # | ||
4616 | 43 | # * Data Integrity # | ||
4617 | 44 | # # | ||
4618 | 45 | # Reference: http://dev.mysql.com/doc/refman/5.1/en/ # | ||
4619 | 46 | # server-system-variables.html # | ||
4620 | 47 | # # | ||
4621 | 48 | ################################################################################ | ||
4622 | 49 | ################# mysql-test\t\ndb_log_updated_only_basic.test ######### | ||
4623 | 50 | # # | ||
4624 | 51 | # # | ||
4625 | 52 | # Creation Date: 2008-02-07 # | ||
4626 | 53 | # Author: Rizwan Maredia # | ||
4627 | 54 | # # | ||
4628 | 55 | # Description: Test Cases of Dynamic System Variable # | ||
4629 | 56 | # ndb_log_updated_only that check behavior of this # | ||
4630 | 57 | # variable with valid values, invalid values, # | ||
4631 | 58 | # accessing variable with scope that is # | ||
4632 | 59 | # allowed and with scope that is now allowed. # | ||
4633 | 60 | # Scope: Global # | ||
4634 | 61 | # Reference: http://dev.mysql.com/doc/refman/5.1/en/server-system # | ||
4635 | 62 | # -variables.html # | ||
4636 | 63 | # # | ||
4637 | 64 | ######################################################################## | ||
4638 | 65 | |||
4639 | 66 | --source include/load_sysvars.inc | ||
4640 | 67 | |||
4641 | 68 | ######################################################################## | ||
4642 | 69 | # START OF ndb_log_updated_only TESTS # | ||
4643 | 70 | ######################################################################## | ||
4644 | 71 | |||
4645 | 72 | |||
4646 | 73 | ################################################################################ | ||
4647 | 74 | # Saving initial value of ndb_log_updated_only in a temporary variable # | ||
4648 | 75 | ################################################################################ | ||
4649 | 76 | |||
4650 | 77 | |||
4651 | 78 | --Error ER_UNKNOWN_SYSTEM_VARIABLE | ||
4652 | 79 | SET @global_start_value = @@global.ndb_log_updated_only; | ||
4653 | 80 | --Error ER_UNKNOWN_SYSTEM_VARIABLE | ||
4654 | 81 | SELECT @@global.ndb_log_updated_only; | ||
4655 | 82 | |||
4656 | 83 | --echo 'Bug: The value is not a system variable or atleast not supported in version 5.1.22' | ||
4657 | 84 | |||
4658 | 85 | |||
4659 | 86 | --echo '#--------------------FN_DYNVARS_103_01------------------------#' | ||
4660 | 87 | ######################################################################## | ||
4661 | 88 | # Display the DEFAULT value of ndb_log_updated_only # | ||
4662 | 89 | ######################################################################## | ||
4663 | 90 | |||
4664 | 91 | #SET @@ndb_log_updated_only = 0; | ||
4665 | 92 | #SET @@ndb_log_updated_only = DEFAULT; | ||
4666 | 93 | #SELECT @@ndb_log_updated_only; | ||
4667 | 94 | # | ||
4668 | 95 | #SET @@ndb_log_updated_only = 1; | ||
4669 | 96 | #SET @@ndb_log_updated_only = DEFAULT; | ||
4670 | 97 | #SELECT @@ndb_log_updated_only; | ||
4671 | 98 | |||
4672 | 99 | |||
4673 | 100 | --echo '#---------------------FN_DYNVARS_103_02-------------------------#' | ||
4674 | 101 | ############################################################################# | ||
4675 | 102 | # Check if ndb_log_updated_only can be accessed with and without @@ sign # | ||
4676 | 103 | ############################################################################# | ||
4677 | 104 | |||
4678 | 105 | #SET ndb_log_updated_only = 1; | ||
4679 | 106 | #SELECT @@ndb_log_updated_only; | ||
4680 | 107 | #--Error ER_UNKNOWN_TABLE | ||
4681 | 108 | #SELECT global.ndb_log_updated_only; | ||
4682 | 109 | # | ||
4683 | 110 | #SET global ndb_log_updated_only = 1; | ||
4684 | 111 | #SELECT @@global.ndb_log_updated_only; | ||
4685 | 112 | |||
4686 | 113 | |||
4687 | 114 | --echo '#--------------------FN_DYNVARS_103_03------------------------#' | ||
4688 | 115 | ######################################################################## | ||
4689 | 116 | # Change the value of ndb_log_updated_only to a valid value # | ||
4690 | 117 | ######################################################################## | ||
4691 | 118 | |||
4692 | 119 | #SET @@global.ndb_log_updated_only = 0; | ||
4693 | 120 | #SELECT @@global.ndb_log_updated_only; | ||
4694 | 121 | #SET @@global.ndb_log_updated_only = 1; | ||
4695 | 122 | #SELECT @@global.ndb_log_updated_only; | ||
4696 | 123 | ## a value of 2 is used to just flush logs and then shutdown cold. | ||
4697 | 124 | #SET @@global.ndb_log_updated_only = 2; | ||
4698 | 125 | #SELECT @@global.ndb_log_updated_only; | ||
4699 | 126 | |||
4700 | 127 | --echo '#--------------------FN_DYNVARS_103_04-------------------------#' | ||
4701 | 128 | ########################################################################### | ||
4702 | 129 | # Change the value of ndb_log_updated_only to invalid value # | ||
4703 | 130 | ########################################################################### | ||
4704 | 131 | |||
4705 | 132 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4706 | 133 | #SET @@global.ndb_log_updated_only = -1; | ||
4707 | 134 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4708 | 135 | #SET @@global.ndb_log_updated_only = TRU; | ||
4709 | 136 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4710 | 137 | #SET @@global.ndb_log_updated_only = TRUE_F; | ||
4711 | 138 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4712 | 139 | #SET @@global.ndb_log_updated_only = FALS; | ||
4713 | 140 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4714 | 141 | #SET @@global.ndb_log_updated_only = OON; | ||
4715 | 142 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4716 | 143 | #SET @@global.ndb_log_updated_only = ONN; | ||
4717 | 144 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4718 | 145 | #SET @@global.ndb_log_updated_only = OOFF; | ||
4719 | 146 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4720 | 147 | #SET @@global.ndb_log_updated_only = 0FF; | ||
4721 | 148 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4722 | 149 | #SET @@global.ndb_log_updated_only = ' 1'; | ||
4723 | 150 | #--Error ER_WRONG_VALUE_FOR_VAR | ||
4724 | 151 | #SET @@global.ndb_log_updated_only = "0 "; | ||
4725 | 152 | |||
4726 | 153 | |||
4727 | 154 | |||
4728 | 155 | --echo '#-------------------FN_DYNVARS_103_05----------------------------#' | ||
4729 | 156 | ########################################################################### | ||
4730 | 157 | # Test if accessing session ndb_log_updated_only gives error # | ||
4731 | 158 | ########################################################################### | ||
4732 | 159 | |||
4733 | 160 | #--Error ER_LOCAL_VARIABLE | ||
4734 | 161 | #SET @@session.ndb_log_updated_only = 0; | ||
4735 | 162 | #--Error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4736 | 163 | #SET @@ndb_log_updated_only = 0; | ||
4737 | 164 | #--Error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4738 | 165 | #SET @@local.ndb_log_updated_only = 0; | ||
4739 | 166 | #--Error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4740 | 167 | #SELECT @@session.ndb_log_updated_only; | ||
4741 | 168 | #--Error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4742 | 169 | #SELECT @@local.ndb_log_updated_only; | ||
4743 | 170 | |||
4744 | 171 | --echo '#----------------------FN_DYNVARS_103_06------------------------#' | ||
4745 | 172 | ######################################################################### | ||
4746 | 173 | # Check if the value in SESSION Table contains variable value # | ||
4747 | 174 | ######################################################################### | ||
4748 | 175 | |||
4749 | 176 | #SELECT count(VARIABLE_VALUE) AS res_is_0 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='ndb_log_updated_only'; | ||
4750 | 177 | |||
4751 | 178 | |||
4752 | 179 | --echo '#----------------------FN_DYNVARS_103_07------------------------#' | ||
4753 | 180 | ######################################################################### | ||
4754 | 181 | # Check if the value in GLOBAL Table matches value in variable # | ||
4755 | 182 | ######################################################################### | ||
4756 | 183 | |||
4757 | 184 | #SELECT @@global.ndb_log_updated_only = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='ndb_log_updated_only'; | ||
4758 | 185 | |||
4759 | 186 | |||
4760 | 187 | --echo '#---------------------FN_DYNVARS_103_08-------------------------#' | ||
4761 | 188 | ################################################################### | ||
4762 | 189 | # Check if ON and OFF values can be used on variable # | ||
4763 | 190 | ################################################################### | ||
4764 | 191 | |||
4765 | 192 | #SET @@ndb_log_updated_only = OFF; | ||
4766 | 193 | #SELECT @@ndb_log_updated_only; | ||
4767 | 194 | #SET @@ndb_log_updated_only = ON; | ||
4768 | 195 | #SELECT @@ndb_log_updated_only; | ||
4769 | 196 | |||
4770 | 197 | --echo '#---------------------FN_DYNVARS_103_09----------------------#' | ||
4771 | 198 | ################################################################### | ||
4772 | 199 | # Check if TRUE and FALSE values can be used on variable # | ||
4773 | 200 | ################################################################### | ||
4774 | 201 | |||
4775 | 202 | #SET @@ndb_log_updated_only = TRUE; | ||
4776 | 203 | #SELECT @@ndb_log_updated_only; | ||
4777 | 204 | #SET @@ndb_log_updated_only = 'FALSE'; | ||
4778 | 205 | #SELECT @@ndb_log_updated_only; | ||
4779 | 206 | |||
4780 | 207 | ############################## | ||
4781 | 208 | # Restore initial value # | ||
4782 | 209 | ############################## | ||
4783 | 210 | |||
4784 | 211 | #SET @@ndb_log_updated_only = @global_start_value; | ||
4785 | 212 | #SELECT @@ndb_log_updated_only; | ||
4786 | 213 | |||
4787 | 214 | ######################################################################## | ||
4788 | 215 | # END OF ndb_log_updated_only TESTS # | ||
4789 | 216 | ######################################################################## | ||
4790 | 217 | 0 | ||
4791 | === added file 'Percona-Server/mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test' | |||
4792 | --- Percona-Server/mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test 1970-01-01 00:00:00 +0000 | |||
4793 | +++ Percona-Server/mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test 2013-02-18 05:17:25 +0000 | |||
4794 | @@ -0,0 +1,168 @@ | |||
4795 | 1 | ####################### mysql-test\t\pseudo_slave_mode_basic.test ################### | ||
4796 | 2 | # # | ||
4797 | 3 | # Variable Name: pseudo_slave_mode # | ||
4798 | 4 | # Scope: SESSION # | ||
4799 | 5 | # Access Type: Dynamic # | ||
4800 | 6 | # Data Type: boolean # | ||
4801 | 7 | # Default Value: # | ||
4802 | 8 | # Valid Values: 0,1 # | ||
4803 | 9 | # # | ||
4804 | 10 | # # | ||
4805 | 11 | # Creation Date: 2012-11-16 # | ||
4806 | 12 | # # | ||
4807 | 13 | # Description: Test Cases of Dynamic System Variable pseudo_slave_mode # | ||
4808 | 14 | # that checks the behavior of this variable in the following ways# | ||
4809 | 15 | # * Default Value # | ||
4810 | 16 | # * Valid & Invalid values # | ||
4811 | 17 | # * Scope & Access method # | ||
4812 | 18 | # * Data Integrity # | ||
4813 | 19 | # # | ||
4814 | 20 | # Reference: http://dev.mysql.com/doc/refman/5.5/en/ # | ||
4815 | 21 | # server-system-variables.html # | ||
4816 | 22 | # # | ||
4817 | 23 | ############################################################################### | ||
4818 | 24 | |||
4819 | 25 | --source include/load_sysvars.inc | ||
4820 | 26 | |||
4821 | 27 | ######################################################################## | ||
4822 | 28 | # START OF pseudo_slave_mode TESTS # | ||
4823 | 29 | ######################################################################## | ||
4824 | 30 | |||
4825 | 31 | |||
4826 | 32 | ############################################################################## | ||
4827 | 33 | # Saving initial value of pseudo_slave_mode in a temporary variable # | ||
4828 | 34 | ############################################################################## | ||
4829 | 35 | |||
4830 | 36 | SET @session_start_value = @@session.pseudo_slave_mode; | ||
4831 | 37 | SELECT @session_start_value; | ||
4832 | 38 | |||
4833 | 39 | --echo '#--------------------FN_DYNVARS_156_01------------------------#' | ||
4834 | 40 | ######################################################################## | ||
4835 | 41 | # Display the DEFAULT value of pseudo_slave_mode # | ||
4836 | 42 | ######################################################################## | ||
4837 | 43 | |||
4838 | 44 | SET @@session.pseudo_slave_mode = 0; | ||
4839 | 45 | SET @@session.pseudo_slave_mode = DEFAULT; | ||
4840 | 46 | SELECT @@session.pseudo_slave_mode; | ||
4841 | 47 | |||
4842 | 48 | SET @@session.pseudo_slave_mode = 1; | ||
4843 | 49 | SET @@session.pseudo_slave_mode = DEFAULT; | ||
4844 | 50 | SELECT @@session.pseudo_slave_mode; | ||
4845 | 51 | |||
4846 | 52 | |||
4847 | 53 | --echo '#---------------------FN_DYNVARS_156_02-------------------------#' | ||
4848 | 54 | ############################################################################# | ||
4849 | 55 | # Check if pseudo_slave_mode can be accessed with and without @@ sign # | ||
4850 | 56 | ############################################################################# | ||
4851 | 57 | |||
4852 | 58 | SET pseudo_slave_mode = 1; | ||
4853 | 59 | SELECT @@pseudo_slave_mode; | ||
4854 | 60 | |||
4855 | 61 | --Error ER_UNKNOWN_TABLE | ||
4856 | 62 | SELECT session.pseudo_slave_mode; | ||
4857 | 63 | |||
4858 | 64 | --Error ER_UNKNOWN_TABLE | ||
4859 | 65 | SELECT local.pseudo_slave_mode; | ||
4860 | 66 | |||
4861 | 67 | SET session pseudo_slave_mode = 0; | ||
4862 | 68 | SELECT @@session.pseudo_slave_mode; | ||
4863 | 69 | |||
4864 | 70 | |||
4865 | 71 | --echo '#--------------------FN_DYNVARS_156_03------------------------#' | ||
4866 | 72 | ######################################################################## | ||
4867 | 73 | # change the value of pseudo_slave_mode to a valid value # | ||
4868 | 74 | ######################################################################## | ||
4869 | 75 | |||
4870 | 76 | SET @@session.pseudo_slave_mode = 0; | ||
4871 | 77 | SELECT @@session.pseudo_slave_mode; | ||
4872 | 78 | SET @@session.pseudo_slave_mode = 1; | ||
4873 | 79 | SELECT @@session.pseudo_slave_mode; | ||
4874 | 80 | |||
4875 | 81 | |||
4876 | 82 | --echo '#--------------------FN_DYNVARS_156_04-------------------------#' | ||
4877 | 83 | ########################################################################### | ||
4878 | 84 | # Change the value of pseudo_slave_mode to invalid value # | ||
4879 | 85 | ########################################################################### | ||
4880 | 86 | |||
4881 | 87 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4882 | 88 | SET @@session.pseudo_slave_mode = -1; | ||
4883 | 89 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4884 | 90 | SET @@session.pseudo_slave_mode = 2; | ||
4885 | 91 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4886 | 92 | SET @@session.pseudo_slave_mode = "T"; | ||
4887 | 93 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4888 | 94 | SET @@session.pseudo_slave_mode = "Y"; | ||
4889 | 95 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4890 | 96 | SET @@session.pseudo_slave_mode = TRÜE; | ||
4891 | 97 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4892 | 98 | SET @@session.pseudo_slave_mode = ÕN; | ||
4893 | 99 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4894 | 100 | SET @@session.pseudo_slave_mode = OF; | ||
4895 | 101 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4896 | 102 | SET @@session.pseudo_slave_mode = ÓFF; | ||
4897 | 103 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4898 | 104 | SET @@session.pseudo_slave_mode = '¹'; | ||
4899 | 105 | --Error ER_WRONG_VALUE_FOR_VAR | ||
4900 | 106 | SET @@session.pseudo_slave_mode = NO; | ||
4901 | 107 | |||
4902 | 108 | |||
4903 | 109 | --echo '#-------------------FN_DYNVARS_156_05----------------------------#' | ||
4904 | 110 | ########################################################################### | ||
4905 | 111 | # Test if accessing global pseudo_slave_mode gives error # | ||
4906 | 112 | ########################################################################### | ||
4907 | 113 | |||
4908 | 114 | --error ER_LOCAL_VARIABLE | ||
4909 | 115 | SET @@global.pseudo_slave_mode = 0; | ||
4910 | 116 | --error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
4911 | 117 | SELECT @@global.pseudo_slave_mode; | ||
4912 | 118 | |||
4913 | 119 | --echo '#----------------------FN_DYNVARS_156_06------------------------#' | ||
4914 | 120 | ######################################################################### | ||
4915 | 121 | # Check if the value in SESSION Table contains variable value # | ||
4916 | 122 | ######################################################################### | ||
4917 | 123 | |||
4918 | 124 | SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='pseudo_slave_mode'; | ||
4919 | 125 | |||
4920 | 126 | --echo '#----------------------FN_DYNVARS_156_07------------------------#' | ||
4921 | 127 | ######################################################################### | ||
4922 | 128 | # Check if the value in SESSION Table matches value in variable # | ||
4923 | 129 | ######################################################################### | ||
4924 | 130 | |||
4925 | 131 | SELECT IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE | ||
4926 | 132 | FROM INFORMATION_SCHEMA.SESSION_VARIABLES | ||
4927 | 133 | WHERE VARIABLE_NAME='pseudo_slave_mode'; | ||
4928 | 134 | SELECT @@session.pseudo_slave_mode; | ||
4929 | 135 | SELECT VARIABLE_VALUE | ||
4930 | 136 | FROM INFORMATION_SCHEMA.SESSION_VARIABLES | ||
4931 | 137 | WHERE VARIABLE_NAME='pseudo_slave_mode'; | ||
4932 | 138 | |||
4933 | 139 | --echo '#---------------------FN_DYNVARS_156_08-------------------------#' | ||
4934 | 140 | ################################################################### | ||
4935 | 141 | # Check if ON and OFF values can be used on variable # | ||
4936 | 142 | ################################################################### | ||
4937 | 143 | |||
4938 | 144 | SET @@session.pseudo_slave_mode = OFF; | ||
4939 | 145 | SELECT @@session.pseudo_slave_mode; | ||
4940 | 146 | SET @@session.pseudo_slave_mode = ON; | ||
4941 | 147 | SELECT @@session.pseudo_slave_mode; | ||
4942 | 148 | |||
4943 | 149 | --echo '#---------------------FN_DYNVARS_156_09----------------------#' | ||
4944 | 150 | ################################################################### | ||
4945 | 151 | # Check if TRUE and FALSE values can be used on variable # | ||
4946 | 152 | ################################################################### | ||
4947 | 153 | |||
4948 | 154 | SET @@session.pseudo_slave_mode = TRUE; | ||
4949 | 155 | SELECT @@session.pseudo_slave_mode; | ||
4950 | 156 | SET @@session.pseudo_slave_mode = FALSE; | ||
4951 | 157 | SELECT @@session.pseudo_slave_mode; | ||
4952 | 158 | |||
4953 | 159 | ############################## | ||
4954 | 160 | # Restore initial value # | ||
4955 | 161 | ############################## | ||
4956 | 162 | |||
4957 | 163 | SET @@session.pseudo_slave_mode = @session_start_value; | ||
4958 | 164 | SELECT @@session.pseudo_slave_mode; | ||
4959 | 165 | |||
4960 | 166 | ############################################################### | ||
4961 | 167 | # END OF pseudo_slave_mode TESTS # | ||
4962 | 168 | ############################################################### | ||
4963 | 0 | 169 | ||
4964 | === modified file 'Percona-Server/mysql-test/t/mysqldump.test' | |||
4965 | --- Percona-Server/mysql-test/t/mysqldump.test 2012-11-28 05:09:57 +0000 | |||
4966 | +++ Percona-Server/mysql-test/t/mysqldump.test 2013-02-18 05:17:25 +0000 | |||
4967 | @@ -2347,12 +2347,17 @@ | |||
4968 | 2347 | --echo # Note : In the following dump the transaction | 2347 | --echo # Note : In the following dump the transaction |
4969 | 2348 | --echo # should start only after the logs are | 2348 | --echo # should start only after the logs are |
4970 | 2349 | --echo # flushed, as 'flush logs' causes implicit | 2349 | --echo # flushed, as 'flush logs' causes implicit |
4972 | 2350 | --echo # commit starting 5.5. | 2350 | --echo # commit starting 5.5.Also, as stderr is |
4973 | 2351 | --echo # unbuffered, it is redirected to a different | ||
4974 | 2352 | --echo # file to avoid diffs due to bad stdout/stderr | ||
4975 | 2353 | --echo # order in the output. | ||
4976 | 2351 | --echo | 2354 | --echo |
4977 | 2352 | --echo #### Dump starts here #### | 2355 | --echo #### Dump starts here #### |
4978 | 2353 | --replace_regex /-- Server version.*// /-- MySQL dump .*// /-- Dump completed on .*/-- Dump completed/ | 2356 | --replace_regex /-- Server version.*// /-- MySQL dump .*// /-- Dump completed on .*/-- Dump completed/ |
4981 | 2354 | --exec $MYSQL_DUMP --verbose --single-transaction --flush-log b12809202_db --result-file $MYSQLTEST_VARDIR/tmp/stfl.sql 2>&1 | 2357 | --exec $MYSQL_DUMP --verbose --single-transaction --flush-log b12809202_db 2>$MYSQLTEST_VARDIR/tmp/b12809202_stderr.sql |
4982 | 2355 | --remove_file $MYSQLTEST_VARDIR/tmp/stfl.sql | 2358 | --echo |
4983 | 2359 | --echo ## stderr ## | ||
4984 | 2360 | --cat_file $MYSQLTEST_VARDIR/tmp/b12809202_stderr.sql | ||
4985 | 2356 | --echo | 2361 | --echo |
4986 | 2357 | --echo #### Dump ends here #### | 2362 | --echo #### Dump ends here #### |
4987 | 2358 | 2363 | ||
4988 | @@ -2360,6 +2365,7 @@ | |||
4989 | 2360 | DROP TABLE b12809202_db.t1; | 2365 | DROP TABLE b12809202_db.t1; |
4990 | 2361 | DROP TABLE b12809202_db.t2; | 2366 | DROP TABLE b12809202_db.t2; |
4991 | 2362 | DROP DATABASE b12809202_db; | 2367 | DROP DATABASE b12809202_db; |
4992 | 2368 | --remove_file $MYSQLTEST_VARDIR/tmp/b12809202_stderr.sql | ||
4993 | 2363 | 2369 | ||
4994 | 2364 | --echo # | 2370 | --echo # |
4995 | 2365 | --echo # Delete all existing binary logs. | 2371 | --echo # Delete all existing binary logs. |
4996 | 2366 | 2372 | ||
4997 | === modified file 'Percona-Server/mysql-test/t/percona_innodb_version.test' | |||
4998 | --- Percona-Server/mysql-test/t/percona_innodb_version.test 2012-04-18 23:26:42 +0000 | |||
4999 | +++ Percona-Server/mysql-test/t/percona_innodb_version.test 2013-02-18 05:17:25 +0000 | |||
5000 | @@ -4,5 +4,5 @@ |
The diff has been truncated for viewing.
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.