Merge lp:~stewart/percona-server/5.6.8 into lp:percona-server/5.6

Proposed by Stewart Smith
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 310
Proposed branch: lp:~stewart/percona-server/5.6.8
Merge into: lp:percona-server/5.6
Diff against target: 184964 lines (+129336/-15035)
660 files modified
Makefile (+2/-2)
Percona-Server/CMakeLists.txt (+3/-1)
Percona-Server/SPECIFIC-ULN/CMakeLists.txt (+38/-0)
Percona-Server/SPECIFIC-ULN/README-ULN (+15/-0)
Percona-Server/SPECIFIC-ULN/README.mysql-docs (+4/-0)
Percona-Server/SPECIFIC-ULN/filter-requires-mysql.sh (+3/-0)
Percona-Server/SPECIFIC-ULN/generate-tarball.sh (+15/-0)
Percona-Server/SPECIFIC-ULN/my.cnf (+10/-0)
Percona-Server/SPECIFIC-ULN/my_config.h (+29/-0)
Percona-Server/SPECIFIC-ULN/mysql-5.5-errno.patch (+21/-0)
Percona-Server/SPECIFIC-ULN/mysql-5.5-fix-tests.patch (+34/-0)
Percona-Server/SPECIFIC-ULN/mysql-5.5-libdir.patch (+28/-0)
Percona-Server/SPECIFIC-ULN/mysql-5.5-mtr1.patch (+25/-0)
Percona-Server/SPECIFIC-ULN/mysql-5.5-stack-guard.patch (+140/-0)
Percona-Server/SPECIFIC-ULN/mysql-5.5-testing.patch (+23/-0)
Percona-Server/SPECIFIC-ULN/mysql-chain-certs.patch (+41/-0)
Percona-Server/SPECIFIC-ULN/mysql-embedded-check.c (+26/-0)
Percona-Server/SPECIFIC-ULN/mysql-expired-certs.patch (+555/-0)
Percona-Server/SPECIFIC-ULN/mysql-install-test.patch (+33/-0)
Percona-Server/SPECIFIC-ULN/mysql-strmov.patch (+32/-0)
Percona-Server/SPECIFIC-ULN/mysql.init (+209/-0)
Percona-Server/SPECIFIC-ULN/mysql.spec.sh (+1959/-0)
Percona-Server/SPECIFIC-ULN/scriptstub.c (+32/-0)
Percona-Server/VERSION (+1/-1)
Percona-Server/client/CMakeLists.txt (+5/-0)
Percona-Server/client/client_priv.h (+1/-0)
Percona-Server/client/mysql.cc (+224/-7)
Percona-Server/client/mysql_plugin.c (+36/-3)
Percona-Server/client/mysqladmin.cc (+68/-23)
Percona-Server/client/mysqltest.cc (+17/-7)
Percona-Server/cmake/configure.pl (+10/-0)
Percona-Server/cmake/create_initial_db.cmake.in (+9/-3)
Percona-Server/cmake/info_macros.cmake.in (+5/-3)
Percona-Server/cmake/install_layout.cmake (+6/-1)
Percona-Server/cmake/os/Darwin.cmake (+6/-2)
Percona-Server/cmake/os/SunOS.cmake (+6/-1)
Percona-Server/cmake/ssl.cmake (+57/-0)
Percona-Server/dbug/dbug.c (+20/-1)
Percona-Server/extra/CMakeLists.txt (+9/-0)
Percona-Server/include/my_dbug.h (+1/-0)
Percona-Server/libmysql/CMakeLists.txt (+13/-1)
Percona-Server/mysql-test/collections/default.daily (+3/-5)
Percona-Server/mysql-test/collections/default.experimental (+0/-18)
Percona-Server/mysql-test/collections/default.weekly (+18/-50)
Percona-Server/mysql-test/collections/mysql-5.6.release (+0/-6)
Percona-Server/mysql-test/collections/mysql-trunk-bug27480.push (+0/-4)
Percona-Server/mysql-test/collections/mysql-trunk-stage.push (+0/-6)
Percona-Server/mysql-test/collections/mysql-trunk-wl3584-gtid-ON.push (+0/-20)
Percona-Server/mysql-test/collections/mysql-trunk-wl3584.push (+0/-16)
Percona-Server/mysql-test/collections/mysql-trunk-wl5223.push (+0/-2)
Percona-Server/mysql-test/collections/mysql-trunk.release (+0/-6)
Percona-Server/mysql-test/include/Load_data.inc (+14/-0)
Percona-Server/mysql-test/include/create_table.inc (+8/-0)
Percona-Server/mysql-test/include/have_partition_open_file_limit.inc (+5/-0)
Percona-Server/mysql-test/include/ib_logfile_size_check.inc (+14/-0)
Percona-Server/mysql-test/include/innodb-util.inc (+54/-21)
Percona-Server/mysql-test/include/mtr_warnings.sql (+3/-0)
Percona-Server/mysql-test/include/mysqld--help.inc (+1/-1)
Percona-Server/mysql-test/include/rpl_start_server.inc (+11/-5)
Percona-Server/mysql-test/include/subquery_sj.inc (+11/-0)
Percona-Server/mysql-test/include/vardir_size_check.inc (+26/-0)
Percona-Server/mysql-test/mysql-test-run.pl (+17/-6)
Percona-Server/mysql-test/r/alter_table.result (+10/-10)
Percona-Server/mysql-test/r/contributors.result (+0/-5)
Percona-Server/mysql-test/r/ctype_ucs.result (+26/-0)
Percona-Server/mysql-test/r/gis-debug.result (+3/-3)
Percona-Server/mysql-test/r/gis-precise.result (+3/-3)
Percona-Server/mysql-test/r/gis.result (+1/-1)
Percona-Server/mysql-test/r/implicit_commit.result (+0/-16)
Percona-Server/mysql-test/r/innodb_log_file_size_functionality.result (+73/-0)
Percona-Server/mysql-test/r/innodb_mysql_sync.result (+1/-1)
Percona-Server/mysql-test/r/loaddata.result (+0/-29)
Percona-Server/mysql-test/r/lowercase_table_qcache.result (+1/-1)
Percona-Server/mysql-test/r/merge.result (+3/-0)
Percona-Server/mysql-test/r/mysql_plugin.result (+3/-0)
Percona-Server/mysql-test/r/mysqlbinlog.result (+16/-16)
Percona-Server/mysql-test/r/mysqlbinlog_row.result (+201/-201)
Percona-Server/mysql-test/r/mysqlbinlog_row_innodb.result (+1425/-1425)
Percona-Server/mysql-test/r/mysqlbinlog_row_myisam.result (+1445/-1445)
Percona-Server/mysql-test/r/mysqlbinlog_row_trans.result (+29/-29)
Percona-Server/mysql-test/r/mysqlbinlog_start_stop.result (+49/-49)
Percona-Server/mysql-test/r/mysqld--help-notwin.result (+8/-7)
Percona-Server/mysql-test/r/mysqld--help-win.result (+8/-7)
Percona-Server/mysql-test/r/partition_innodb_plugin.result (+1/-1)
Percona-Server/mysql-test/r/partition_innodb_tablespace.result (+2/-2)
Percona-Server/mysql-test/r/plugin_auth.result (+12/-9)
Percona-Server/mysql-test/r/query_cache.result (+1/-1)
Percona-Server/mysql-test/r/query_cache_debug.result (+0/-1)
Percona-Server/mysql-test/r/query_cache_disabled.result (+1/-1)
Percona-Server/mysql-test/r/query_cache_merge.result (+1/-1)
Percona-Server/mysql-test/r/query_cache_notembedded.result (+0/-1)
Percona-Server/mysql-test/r/query_cache_size_functionality.result (+226/-0)
Percona-Server/mysql-test/r/query_cache_type_functionality.result (+250/-0)
Percona-Server/mysql-test/r/show_check.result (+9/-3)
Percona-Server/mysql-test/r/show_profile.result (+6/-1)
Percona-Server/mysql-test/r/sort_buffer_size_functionality.result (+184/-0)
Percona-Server/mysql-test/r/sp-error.result (+0/-7)
Percona-Server/mysql-test/r/subquery_all.result (+4/-4)
Percona-Server/mysql-test/r/subquery_all_bka.result (+4/-4)
Percona-Server/mysql-test/r/subquery_all_bka_nixbnl.result (+4/-4)
Percona-Server/mysql-test/r/subquery_nomat_nosj.result (+5/-5)
Percona-Server/mysql-test/r/subquery_nomat_nosj_bka.result (+5/-5)
Percona-Server/mysql-test/r/subquery_nomat_nosj_bka_nixbnl.result (+5/-5)
Percona-Server/mysql-test/r/subquery_none.result (+5/-5)
Percona-Server/mysql-test/r/subquery_none_bka.result (+5/-5)
Percona-Server/mysql-test/r/subquery_none_bka_nixbnl.result (+5/-5)
Percona-Server/mysql-test/r/subquery_sj_all.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_all_bka.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_all_bka_nixbnl.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_all_bkaunique.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_dupsweed.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_dupsweed_bka.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_dupsweed_bka_nixbnl.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_dupsweed_bkaunique.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_firstmatch.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_firstmatch_bka.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_firstmatch_bka_nixbnl.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_firstmatch_bkaunique.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_loosescan.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_loosescan_bka.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_loosescan_bka_nixbnl.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_loosescan_bkaunique.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_mat.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_mat_bka.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_mat_bka_nixbnl.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_mat_bkaunique.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_mat_nosj.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_none.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_none_bka.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_none_bka_nixbnl.result (+8/-0)
Percona-Server/mysql-test/r/subquery_sj_none_bkaunique.result (+8/-0)
Percona-Server/mysql-test/r/table_open_cache_functionality.result (+260/-0)
Percona-Server/mysql-test/r/thread_cache_size_functionality.result (+158/-0)
Percona-Server/mysql-test/r/user_var-binlog.result (+1/-1)
Percona-Server/mysql-test/r/variables.result (+2/-0)
Percona-Server/mysql-test/r/wl6443_deprecation.result (+36/-0)
Percona-Server/mysql-test/suite/binlog/r/binlog_base64_flag.result (+1/-1)
Percona-Server/mysql-test/suite/binlog/r/binlog_hexdump.result (+1/-1)
Percona-Server/mysql-test/suite/binlog/r/binlog_row_mysqlbinlog_verbose.result (+28/-28)
Percona-Server/mysql-test/suite/binlog/r/binlog_stm_ctype_ucs.result (+1/-1)
Percona-Server/mysql-test/suite/funcs_1/t/innodb_trig_1011ext-master.opt (+1/-0)
Percona-Server/mysql-test/suite/funcs_1/t/memory_trig_1011ext-master.opt (+1/-0)
Percona-Server/mysql-test/suite/funcs_1/t/myisam_trig_1011ext-master.opt (+1/-0)
Percona-Server/mysql-test/suite/funcs_1/t/myisam_views-big.test (+2/-1)
Percona-Server/mysql-test/suite/innodb/r/innodb-alter.result (+40/-4)
Percona-Server/mysql-test/suite/innodb/r/innodb-blob.result (+1/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb-bug-14068765.result (+1/-1)
Percona-Server/mysql-test/suite/innodb/r/innodb-bug-14084530.result (+1/-1)
Percona-Server/mysql-test/suite/innodb/r/innodb-create-options.result (+22/-22)
Percona-Server/mysql-test/suite/innodb/r/innodb-index-online-fk.result (+37/-380)
Percona-Server/mysql-test/suite/innodb/r/innodb-index-online.result (+1/-5)
Percona-Server/mysql-test/suite/innodb/r/innodb-log-file-size-1.result (+178/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb-log-file-size.result (+36/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb-table-online.result (+2/-2)
Percona-Server/mysql-test/suite/innodb/r/innodb-tablespace.result (+6/-6)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl5522-1.result (+15/-15)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl5522-debug-zip.result (+24/-402)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl5522-debug.result (+50/-40)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl5522-zip.result (+10/-10)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl5522.result (+21/-21)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl5980-alter.result (+192/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl6445-1.result (+1338/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl6445-2.result (+127/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb-wl6445.result (+54/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb-zip.result (+34/-34)
Percona-Server/mysql-test/suite/innodb/r/innodb_16k.result (+8/-8)
Percona-Server/mysql-test/suite/innodb/r/innodb_4k.result (+12/-12)
Percona-Server/mysql-test/suite/innodb/r/innodb_8k.result (+10/-10)
Percona-Server/mysql-test/suite/innodb/r/innodb_bug14006907.result (+6/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb_i_s_innodb_locks.result (+114/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb_i_s_innodb_trx.result (+81/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb_information_schema.result (+0/-54)
Percona-Server/mysql-test/suite/innodb/t/innodb-alter.test (+44/-6)
Percona-Server/mysql-test/suite/innodb/t/innodb-blob.test (+2/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb-create-options.test (+11/-11)
Percona-Server/mysql-test/suite/innodb/t/innodb-index-online-fk.test (+25/-5)
Percona-Server/mysql-test/suite/innodb/t/innodb-index-online.test (+0/-6)
Percona-Server/mysql-test/suite/innodb/t/innodb-log-file-size-1.test (+298/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb-log-file-size.test (+212/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb-multiple-tablespaces.test (+15/-8)
Percona-Server/mysql-test/suite/innodb/t/innodb-table-online.test (+2/-2)
Percona-Server/mysql-test/suite/innodb/t/innodb-tablespace.test (+3/-3)
Percona-Server/mysql-test/suite/innodb/t/innodb-wl5522-debug-zip.test (+2/-720)
Percona-Server/mysql-test/suite/innodb/t/innodb-wl5522-debug.test (+68/-24)
Percona-Server/mysql-test/suite/innodb/t/innodb-wl5980-alter.test (+64/-1)
Percona-Server/mysql-test/suite/innodb/t/innodb-wl5980-discard.test (+2/-1)
Percona-Server/mysql-test/suite/innodb/t/innodb-wl5980-linux.test (+6/-5)
Percona-Server/mysql-test/suite/innodb/t/innodb-wl6445-1.test (+755/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb-wl6445-2.test (+242/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb-wl6445.test (+100/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb-zip.test (+17/-17)
Percona-Server/mysql-test/suite/innodb/t/innodb_16k.test (+4/-4)
Percona-Server/mysql-test/suite/innodb/t/innodb_4k.test (+6/-6)
Percona-Server/mysql-test/suite/innodb/t/innodb_8k.test (+5/-5)
Percona-Server/mysql-test/suite/innodb/t/innodb_bug14006907.test (+8/-1)
Percona-Server/mysql-test/suite/innodb/t/innodb_i_s_innodb_locks.test (+174/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb_i_s_innodb_trx.test (+100/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb_information_schema.test (+0/-285)
Percona-Server/mysql-test/suite/innodb/t/innodb_mysql-master.opt (+1/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb_page_size_func.test (+2/-6)
Percona-Server/mysql-test/suite/innodb/t/innodb_stats_drop_locked.test (+4/-0)
Percona-Server/mysql-test/suite/innodb_fts/r/fulltext.result (+0/-1)
Percona-Server/mysql-test/suite/innodb_fts/r/innodb_fts_misc.result (+31/-1)
Percona-Server/mysql-test/suite/innodb_fts/r/innodb_fts_misc_debug.result (+96/-0)
Percona-Server/mysql-test/suite/innodb_fts/t/innodb_fts_misc.test (+23/-1)
Percona-Server/mysql-test/suite/innodb_fts/t/innodb_fts_misc_debug.test (+209/-0)
Percona-Server/mysql-test/suite/opt_trace/r/general2_no_prot.result (+31/-0)
Percona-Server/mysql-test/suite/opt_trace/r/general2_ps_prot.result (+31/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_parts_hash.inc (+52/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_parts_inv.inc (+125/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_parts_key.inc (+52/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_parts_list.inc (+83/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_parts_range.inc (+83/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_sub_parts_key_list.inc (+83/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_sub_parts_key_range.inc (+85/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_sub_parts_list.inc (+83/-0)
Percona-Server/mysql-test/suite/parts/inc/partition_max_sub_parts_range.inc (+85/-0)
Percona-Server/mysql-test/suite/parts/r/partition_basic_symlink_innodb.result (+2/-2)
Percona-Server/mysql-test/suite/parts/r/partition_debug.result (+1/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_hash_innodb.result (+125/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_hash_myisam.result (+125/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_inv_innodb.result (+16430/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_inv_myisam.result (+16430/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_key_innodb.result (+113/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_key_myisam.result (+113/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_list_innodb.result (+8282/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_list_myisam.result (+8282/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_range_innodb.result (+8310/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_parts_range_myisam.result (+8310/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_sub_parts_key_list_innodb.result (+4180/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_sub_parts_key_list_myisam.result (+4180/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_sub_parts_key_range_innodb.result (+4205/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_sub_parts_key_range_myisam.result (+4205/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_sub_parts_list_innodb.result (+4180/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_sub_parts_list_myisam.result (+4180/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_sub_parts_range_innodb.result (+4205/-0)
Percona-Server/mysql-test/suite/parts/r/partition_max_sub_parts_range_myisam.result (+4205/-0)
Percona-Server/mysql-test/suite/parts/t/part_supported_sql_func_innodb.test (+2/-0)
Percona-Server/mysql-test/suite/parts/t/partition_alter1_1_2_innodb.test (+2/-0)
Percona-Server/mysql-test/suite/parts/t/partition_alter1_2_innodb.test (+3/-0)
Percona-Server/mysql-test/suite/parts/t/partition_alter2_1_1_innodb.test (+2/-0)
Percona-Server/mysql-test/suite/parts/t/partition_alter2_1_2_innodb.test (+2/-0)
Percona-Server/mysql-test/suite/parts/t/partition_alter2_2_1_innodb.test (+4/-2)
Percona-Server/mysql-test/suite/parts/t/partition_alter2_2_2_innodb.test (+2/-0)
Percona-Server/mysql-test/suite/parts/t/partition_alter4_innodb.test (+2/-0)
Percona-Server/mysql-test/suite/parts/t/partition_basic_innodb.test (+2/-0)
Percona-Server/mysql-test/suite/parts/t/partition_basic_symlink_innodb.test (+1/-1)
Percona-Server/mysql-test/suite/parts/t/partition_debug.test (+1/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_hash_innodb.test (+24/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_hash_myisam.test (+23/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_inv_innodb.test (+24/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_inv_myisam.test (+23/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_key_innodb.test (+25/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_key_myisam.test (+24/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_list_innodb.test (+24/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_list_myisam.test (+23/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_range_innodb.test (+24/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_parts_range_myisam.test (+23/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_sub_parts_key_list_innodb.test (+26/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_sub_parts_key_list_myisam.test (+25/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_sub_parts_key_range_innodb.test (+25/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_sub_parts_key_range_myisam.test (+24/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_sub_parts_list_innodb.test (+30/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_sub_parts_list_myisam.test (+24/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_sub_parts_range_innodb.test (+29/-0)
Percona-Server/mysql-test/suite/parts/t/partition_max_sub_parts_range_myisam.test (+23/-0)
Percona-Server/mysql-test/suite/perfschema/include/event_aggregate_load.inc (+24/-0)
Percona-Server/mysql-test/suite/perfschema/include/event_aggregate_setup.inc (+2/-1)
Percona-Server/mysql-test/suite/perfschema/r/digest_table_full.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/func_file_io.result (+26/-0)
Percona-Server/mysql-test/suite/perfschema/r/func_mutex.result (+34/-0)
Percona-Server/mysql-test/suite/perfschema/r/multi_table_io.result (+2/-11)
Percona-Server/mysql-test/suite/perfschema/r/ortho_iter.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/privilege_table_io.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/relaylog.result (+4/-0)
Percona-Server/mysql-test/suite/perfschema/r/sizing_default.result (+16/-16)
Percona-Server/mysql-test/suite/perfschema/r/sizing_high.result (+16/-16)
Percona-Server/mysql-test/suite/perfschema/r/sizing_low.result (+16/-16)
Percona-Server/mysql-test/suite/perfschema/r/sizing_med.result (+16/-16)
Percona-Server/mysql-test/suite/perfschema/r/sizing_off.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_disable_idle.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_disable_stages.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_disable_statements.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_disable_waits.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_innodb.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_account.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_cond_class.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_cond_inst.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_file_class.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_file_inst.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_host.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_mutex_class.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_mutex_inst.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_rwlock_class.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_rwlock_inst.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_setup_actors.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_setup_objects.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_socket_class.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_socket_inst.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_stage_class.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_stages_history.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_stages_history_long.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_statements_history.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_statements_history_long.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_table_hdl.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_table_inst.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_thread_class.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_thread_inst.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_user.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_off.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/start_server_on.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/statement_digest.result (+37/-37)
Percona-Server/mysql-test/suite/perfschema/r/statement_digest_consumers.result (+37/-37)
Percona-Server/mysql-test/suite/perfschema/r/statement_digest_long_query.result (+2/-2)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_global_2u_2t.result (+73/-73)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_global_2u_3t.result (+73/-73)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_global_4u_2t.result (+73/-73)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_global_4u_3t.result (+73/-73)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_hist_2u_2t.result (+150/-150)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_hist_2u_3t.result (+150/-150)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_hist_4u_2t.result (+150/-150)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_hist_4u_3t.result (+150/-150)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_off.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_thread_2u_2t.result (+131/-131)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_thread_2u_3t.result (+131/-131)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_thread_4u_2t.result (+131/-131)
Percona-Server/mysql-test/suite/perfschema/r/table_aggregate_thread_4u_3t.result (+131/-131)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_global_2u_2t.result (+73/-73)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_global_2u_3t.result (+73/-73)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_global_4u_2t.result (+73/-73)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_global_4u_3t.result (+73/-73)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_hist_2u_2t.result (+150/-150)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_hist_2u_3t.result (+150/-150)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_hist_4u_2t.result (+150/-150)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_hist_4u_3t.result (+150/-150)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_thread_2u_2t.result (+131/-131)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_thread_2u_3t.result (+131/-131)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_thread_4u_2t.result (+131/-131)
Percona-Server/mysql-test/suite/perfschema/r/table_io_aggregate_thread_4u_3t.result (+131/-131)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_global_2u_2t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_global_2u_3t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_global_4u_2t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_global_4u_3t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_hist_2u_2t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_hist_2u_3t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_hist_4u_2t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_hist_4u_3t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_thread_2u_2t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_thread_2u_3t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_thread_4u_2t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/table_lock_aggregate_thread_4u_3t.result (+1/-1)
Percona-Server/mysql-test/suite/perfschema/r/trigger_table_io.result (+0/-5)
Percona-Server/mysql-test/suite/perfschema/t/disabled.def (+3/-0)
Percona-Server/mysql-test/suite/perfschema/t/func_file_io.test (+7/-0)
Percona-Server/mysql-test/suite/perfschema/t/func_mutex.test (+12/-0)
Percona-Server/mysql-test/suite/perfschema/t/query_cache-master.opt (+1/-0)
Percona-Server/mysql-test/suite/perfschema/t/stage_mdl_global-master.opt (+1/-0)
Percona-Server/mysql-test/suite/perfschema/t/threads_mysql-master.opt (+1/-0)
Percona-Server/mysql-test/suite/rpl/r/rpl_do_grant.result (+17/-1)
Percona-Server/mysql-test/suite/rpl/r/rpl_grant.result (+35/-15)
Percona-Server/mysql-test/suite/rpl/r/rpl_master_pos_wait.result (+0/-18)
Percona-Server/mysql-test/suite/rpl/r/rpl_row_basic_11bugs.result (+1/-1)
Percona-Server/mysql-test/suite/rpl/r/rpl_row_ignorable_event.result (+133/-133)
Percona-Server/mysql-test/suite/rpl/r/rpl_row_mysqlbinlog.result (+4/-4)
Percona-Server/mysql-test/suite/rpl/r/rpl_seconds_behind_master.result (+4/-0)
Percona-Server/mysql-test/suite/rpl/r/rpl_sp.result (+6/-6)
Percona-Server/mysql-test/suite/rpl/t/rpl_binlog_index.test (+1/-1)
Percona-Server/mysql-test/suite/rpl/t/rpl_do_grant.test (+24/-4)
Percona-Server/mysql-test/suite/rpl/t/rpl_grant.test (+46/-49)
Percona-Server/mysql-test/suite/rpl/t/rpl_master_pos_wait.test (+1/-29)
Percona-Server/mysql-test/suite/rpl/t/rpl_mix_found_rows-master.opt (+1/-0)
Percona-Server/mysql-test/suite/rpl/t/rpl_row_basic_11bugs.test (+1/-1)
Percona-Server/mysql-test/suite/rpl/t/rpl_row_sp011-master.opt (+1/-0)
Percona-Server/mysql-test/suite/rpl/t/rpl_seconds_behind_master.test (+31/-33)
Percona-Server/mysql-test/suite/sys_vars/inc/query_cache_size_basic.inc (+1/-1)
Percona-Server/mysql-test/suite/sys_vars/r/have_profiling_basic.result (+2/-0)
Percona-Server/mysql-test/suite/sys_vars/r/innodb_change_buffering_debug_basic.result (+0/-3)
Percona-Server/mysql-test/suite/sys_vars/r/innodb_force_recovery_crash_basic.result (+33/-0)
Percona-Server/mysql-test/suite/sys_vars/r/innodb_read_only_basic.result (+22/-0)
Percona-Server/mysql-test/suite/sys_vars/r/metadata_locks_hash_instances_basic.result (+51/-0)
Percona-Server/mysql-test/suite/sys_vars/r/profiling_basic.result (+26/-0)
Percona-Server/mysql-test/suite/sys_vars/r/profiling_h_size_basic.result (+25/-0)
Percona-Server/mysql-test/suite/sys_vars/r/query_cache_size_basic_32.result (+1/-1)
Percona-Server/mysql-test/suite/sys_vars/r/query_cache_size_basic_64.result (+1/-1)
Percona-Server/mysql-test/suite/sys_vars/r/query_cache_type_basic.result (+2/-2)
Percona-Server/mysql-test/suite/sys_vars/r/table_definition_cache_basic.result (+5/-5)
Percona-Server/mysql-test/suite/sys_vars/r/table_open_cache_basic.result (+5/-5)
Percona-Server/mysql-test/suite/sys_vars/r/thread_cache_size_basic.result (+7/-7)
Percona-Server/mysql-test/suite/sys_vars/t/innodb_change_buffering_debug_basic.test (+3/-1)
Percona-Server/mysql-test/suite/sys_vars/t/innodb_force_recovery_crash_basic.test (+28/-0)
Percona-Server/mysql-test/suite/sys_vars/t/innodb_read_only_basic.test (+20/-0)
Percona-Server/mysql-test/suite/sys_vars/t/max_sp_recursion_depth_func-master.opt (+1/-0)
Percona-Server/mysql-test/suite/sys_vars/t/metadata_locks_hash_instances_basic.test (+60/-0)
Percona-Server/mysql-test/suite/sys_vars/t/query_cache_limit_func-master.opt (+1/-0)
Percona-Server/mysql-test/suite/sys_vars/t/query_cache_type_basic-master.opt (+1/-0)
Percona-Server/mysql-test/suite/sys_vars/t/query_cache_type_basic.test (+1/-1)
Percona-Server/mysql-test/suite/sys_vars/t/query_cache_type_func-master.opt (+1/-0)
Percona-Server/mysql-test/suite/sys_vars/t/query_cache_wlock_invalidate_func-master.opt (+1/-0)
Percona-Server/mysql-test/suite/sys_vars/t/slow_launch_time_func-master.opt (+1/-0)
Percona-Server/mysql-test/suite/sys_vars/t/table_definition_cache_basic.test (+2/-2)
Percona-Server/mysql-test/suite/sys_vars/t/table_open_cache_basic.test (+2/-2)
Percona-Server/mysql-test/suite/sys_vars/t/thread_cache_size_func-master.opt (+1/-0)
Percona-Server/mysql-test/t/alter_table.test (+5/-4)
Percona-Server/mysql-test/t/bug33509-master.opt (+1/-0)
Percona-Server/mysql-test/t/cache_innodb-master.opt (+1/-0)
Percona-Server/mysql-test/t/contributors.test (+0/-1)
Percona-Server/mysql-test/t/ctype_ucs.test (+32/-0)
Percona-Server/mysql-test/t/disabled.def (+3/-1)
Percona-Server/mysql-test/t/func_misc-master.opt (+1/-0)
Percona-Server/mysql-test/t/grant_cache-master.opt (+1/-0)
Percona-Server/mysql-test/t/implicit_commit.test (+0/-16)
Percona-Server/mysql-test/t/index_merge_innodb.test (+2/-2)
Percona-Server/mysql-test/t/innodb_log_file_size_functionality.test (+124/-0)
Percona-Server/mysql-test/t/innodb_mysql_sync.test (+1/-1)
Percona-Server/mysql-test/t/loaddata.test (+34/-30)
Percona-Server/mysql-test/t/lowercase_table_qcache-master.opt (+1/-0)
Percona-Server/mysql-test/t/lowercase_table_qcache.test (+1/-1)
Percona-Server/mysql-test/t/main.lowercase_table_qcache-master.opt (+1/-0)
Percona-Server/mysql-test/t/merge.test (+3/-0)
Percona-Server/mysql-test/t/mix2_myisam-master.opt (+1/-0)
Percona-Server/mysql-test/t/mysql_client_test-master.opt (+1/-0)
Percona-Server/mysql-test/t/mysql_plugin.test (+4/-0)
Percona-Server/mysql-test/t/partition_cache-master.opt (+1/-0)
Percona-Server/mysql-test/t/partition_innodb_plugin.test (+1/-1)
Percona-Server/mysql-test/t/partition_innodb_tablespace.test (+1/-1)
Percona-Server/mysql-test/t/plugin_auth.test (+23/-9)
Percona-Server/mysql-test/t/profiling.test (+45/-1)
Percona-Server/mysql-test/t/query_cache-master.opt (+1/-0)
Percona-Server/mysql-test/t/query_cache.test (+1/-1)
Percona-Server/mysql-test/t/query_cache_28249-master.opt (+1/-0)
Percona-Server/mysql-test/t/query_cache_debug-master.opt (+1/-0)
Percona-Server/mysql-test/t/query_cache_debug.test (+0/-1)
Percona-Server/mysql-test/t/query_cache_disabled.test (+1/-2)
Percona-Server/mysql-test/t/query_cache_merge-master.opt (+1/-0)
Percona-Server/mysql-test/t/query_cache_merge.test (+1/-1)
Percona-Server/mysql-test/t/query_cache_notembedded-master.opt (+1/-0)
Percona-Server/mysql-test/t/query_cache_notembedded.test (+0/-1)
Percona-Server/mysql-test/t/query_cache_ps_no_prot-master.opt (+1/-0)
Percona-Server/mysql-test/t/query_cache_ps_ps_prot-master.opt (+1/-0)
Percona-Server/mysql-test/t/query_cache_size_functionality.test (+258/-0)
Percona-Server/mysql-test/t/query_cache_type_functionality.test (+265/-0)
Percona-Server/mysql-test/t/query_cache_with_views-master.opt (+1/-0)
Percona-Server/mysql-test/t/show_check.test (+13/-5)
Percona-Server/mysql-test/t/signal_demo3-master.opt (+1/-0)
Percona-Server/mysql-test/t/sp-error.test (+0/-16)
Percona-Server/mysql-test/t/sp-fib-master.opt (+1/-0)
Percona-Server/mysql-test/t/sp-lock-master.opt (+1/-0)
Percona-Server/mysql-test/t/sp-master.opt (+2/-0)
Percona-Server/mysql-test/t/sp-prelocking-master.opt (+1/-0)
Percona-Server/mysql-test/t/sp_notembedded-master.opt (+1/-0)
Percona-Server/mysql-test/t/ssl-big.test (+2/-0)
Percona-Server/mysql-test/t/table_open_cache_functionality.test (+298/-0)
Percona-Server/mysql-test/t/udf-master.opt (+1/-0)
Percona-Server/mysql-test/t/variables-master.opt (+1/-0)
Percona-Server/mysql-test/t/variables.test (+2/-0)
Percona-Server/mysql-test/t/wl6443_deprecation.test (+8/-0)
Percona-Server/mysys/stacktrace.c (+0/-11)
Percona-Server/plugin/innodb_memcached/innodb_memcache/src/innodb_config.c (+9/-3)
Percona-Server/scripts/CMakeLists.txt (+18/-9)
Percona-Server/scripts/mysql_install_db.pl.in (+360/-24)
Percona-Server/scripts/mysql_secure_installation.pl.in (+12/-5)
Percona-Server/scripts/mysql_secure_installation.sh (+15/-5)
Percona-Server/scripts/mysql_security_commands.sql (+36/-0)
Percona-Server/sql-common/client_authentication.cc (+1/-1)
Percona-Server/sql/CMakeLists.txt (+12/-3)
Percona-Server/sql/abstract_query_plan.cc (+7/-5)
Percona-Server/sql/authors.h (+0/-163)
Percona-Server/sql/binlog.cc (+25/-5)
Percona-Server/sql/binlog.h (+4/-0)
Percona-Server/sql/contributors.h (+0/-45)
Percona-Server/sql/event_db_repository.cc (+4/-2)
Percona-Server/sql/filesort.cc (+6/-2)
Percona-Server/sql/gcalc_slicescan.cc (+5/-1)
Percona-Server/sql/gcalc_tools.cc (+15/-12)
Percona-Server/sql/ha_ndbcluster_binlog.cc (+28/-7)
Percona-Server/sql/ha_partition.cc (+175/-49)
Percona-Server/sql/ha_partition.h (+4/-0)
Percona-Server/sql/handler.cc (+8/-6)
Percona-Server/sql/handler.h (+13/-2)
Percona-Server/sql/item.cc (+13/-3)
Percona-Server/sql/item.h (+7/-4)
Percona-Server/sql/item_func.cc (+21/-9)
Percona-Server/sql/item_func.h (+19/-4)
Percona-Server/sql/item_geofunc.cc (+7/-2)
Percona-Server/sql/item_subselect.cc (+12/-16)
Percona-Server/sql/lex.h (+0/-2)
Percona-Server/sql/log_event.cc (+188/-54)
Percona-Server/sql/log_event.h (+18/-3)
Percona-Server/sql/log_event_old.cc (+3/-3)
Percona-Server/sql/mdl.cc (+151/-55)
Percona-Server/sql/mdl.h (+8/-0)
Percona-Server/sql/mysqld.cc (+143/-74)
Percona-Server/sql/mysqld.h (+6/-1)
Percona-Server/sql/opt_range.cc (+185/-77)
Percona-Server/sql/opt_sum.cc (+1/-1)
Percona-Server/sql/partition_info.cc (+3/-0)
Percona-Server/sql/password.c (+15/-6)
Percona-Server/sql/protocol.cc (+1/-1)
Percona-Server/sql/records.cc (+1/-1)
Percona-Server/sql/rpl_gtid.h (+130/-24)
Percona-Server/sql/rpl_gtid_execution.cc (+1/-8)
Percona-Server/sql/rpl_gtid_owned.cc (+18/-0)
Percona-Server/sql/rpl_gtid_state.cc (+63/-8)
Percona-Server/sql/rpl_rli.cc (+20/-4)
Percona-Server/sql/rpl_rli_pdb.cc (+12/-9)
Percona-Server/sql/rpl_slave.cc (+2/-1)
Percona-Server/sql/set_var.h (+2/-0)
Percona-Server/sql/share/CMakeLists.txt (+22/-10)
Percona-Server/sql/share/errmsg-utf8.txt (+3/-0)
Percona-Server/sql/sp.cc (+3/-4)
Percona-Server/sql/sp_instr.h (+12/-0)
Percona-Server/sql/sp_rcontext.cc (+9/-10)
Percona-Server/sql/sp_rcontext.h (+8/-9)
Percona-Server/sql/sql_acl.cc (+229/-160)
Percona-Server/sql/sql_base.cc (+15/-19)
Percona-Server/sql/sql_cache.cc (+48/-10)
Percona-Server/sql/sql_class.cc (+19/-39)
Percona-Server/sql/sql_class.h (+0/-29)
Percona-Server/sql/sql_cmd.h (+1/-2)
Percona-Server/sql/sql_const.h (+1/-1)
Percona-Server/sql/sql_db.cc (+22/-10)
Percona-Server/sql/sql_delete.cc (+1/-1)
Percona-Server/sql/sql_executor.cc (+57/-47)
Percona-Server/sql/sql_executor.h (+32/-1)
Percona-Server/sql/sql_help.cc (+5/-8)
Percona-Server/sql/sql_lex.cc (+23/-2)
Percona-Server/sql/sql_lex.h (+20/-3)
Percona-Server/sql/sql_load.cc (+12/-19)
Percona-Server/sql/sql_optimizer.cc (+65/-47)
Percona-Server/sql/sql_parse.cc (+13/-9)
Percona-Server/sql/sql_prepare.cc (+9/-0)
Percona-Server/sql/sql_select.cc (+51/-31)
Percona-Server/sql/sql_show.cc (+5/-73)
Percona-Server/sql/sql_show.h (+1/-2)
Percona-Server/sql/sql_table.cc (+11/-10)
Percona-Server/sql/sql_truncate.cc (+19/-15)
Percona-Server/sql/sql_update.cc (+0/-78)
Percona-Server/sql/sql_yacc.yy (+47/-19)
Percona-Server/sql/sys_vars.cc (+19/-8)
Percona-Server/sql/table.cc (+5/-2)
Percona-Server/sql/table.h (+0/-2)
Percona-Server/storage/innobase/api/api0api.cc (+48/-14)
Percona-Server/storage/innobase/btr/btr0btr.cc (+20/-18)
Percona-Server/storage/innobase/btr/btr0cur.cc (+14/-12)
Percona-Server/storage/innobase/buf/buf0buf.cc (+11/-16)
Percona-Server/storage/innobase/buf/buf0dblwr.cc (+32/-40)
Percona-Server/storage/innobase/buf/buf0dump.cc (+2/-0)
Percona-Server/storage/innobase/buf/buf0flu.cc (+3/-2)
Percona-Server/storage/innobase/buf/buf0lru.cc (+3/-1)
Percona-Server/storage/innobase/dict/dict0boot.cc (+32/-13)
Percona-Server/storage/innobase/dict/dict0crea.cc (+51/-11)
Percona-Server/storage/innobase/dict/dict0dict.cc (+172/-39)
Percona-Server/storage/innobase/dict/dict0load.cc (+138/-35)
Percona-Server/storage/innobase/dict/dict0mem.cc (+28/-0)
Percona-Server/storage/innobase/dict/dict0stats.cc (+123/-120)
Percona-Server/storage/innobase/dict/dict0stats_bg.cc (+25/-18)
Percona-Server/storage/innobase/fil/fil0fil.cc (+374/-186)
Percona-Server/storage/innobase/fsp/fsp0fsp.cc (+39/-107)
Percona-Server/storage/innobase/fts/fts0ast.cc (+14/-2)
Percona-Server/storage/innobase/fts/fts0fts.cc (+205/-119)
Percona-Server/storage/innobase/fts/fts0opt.cc (+35/-7)
Percona-Server/storage/innobase/fts/fts0que.cc (+32/-21)
Percona-Server/storage/innobase/handler/ha_innodb.cc (+241/-128)
Percona-Server/storage/innobase/handler/ha_innodb.h (+5/-4)
Percona-Server/storage/innobase/handler/handler0alter.cc (+318/-110)
Percona-Server/storage/innobase/ibuf/ibuf0ibuf.cc (+34/-4)
Percona-Server/storage/innobase/include/btr0cur.h (+5/-2)
Percona-Server/storage/innobase/include/buf0flu.ic (+2/-2)
Percona-Server/storage/innobase/include/dict0boot.h (+20/-6)
Percona-Server/storage/innobase/include/dict0boot.ic (+13/-1)
Percona-Server/storage/innobase/include/dict0dict.h (+26/-0)
Percona-Server/storage/innobase/include/dict0dict.ic (+1/-1)
Percona-Server/storage/innobase/include/dict0mem.h (+25/-1)
Percona-Server/storage/innobase/include/fil0fil.h (+36/-6)
Percona-Server/storage/innobase/include/fsp0fsp.h (+36/-2)
Percona-Server/storage/innobase/include/fsp0fsp.ic (+89/-0)
Percona-Server/storage/innobase/include/fts0fts.h (+3/-2)
Percona-Server/storage/innobase/include/fts0priv.h (+2/-0)
Percona-Server/storage/innobase/include/fts0priv.ic (+1/-7)
Percona-Server/storage/innobase/include/lock0lock.h (+27/-2)
Percona-Server/storage/innobase/include/log0log.h (+9/-3)
Percona-Server/storage/innobase/include/log0recv.h (+8/-8)
Percona-Server/storage/innobase/include/mach0data.h (+10/-0)
Percona-Server/storage/innobase/include/mach0data.ic (+23/-0)
Percona-Server/storage/innobase/include/page0zip.h (+5/-3)
Percona-Server/storage/innobase/include/row0ins.h (+2/-0)
Percona-Server/storage/innobase/include/row0merge.h (+1/-0)
Percona-Server/storage/innobase/include/row0mysql.h (+13/-1)
Percona-Server/storage/innobase/include/row0undo.h (+0/-7)
Percona-Server/storage/innobase/include/row0upd.ic (+3/-0)
Percona-Server/storage/innobase/include/srv0srv.h (+23/-7)
Percona-Server/storage/innobase/include/trx0rec.h (+3/-2)
Percona-Server/storage/innobase/include/trx0rec.ic (+1/-1)
Percona-Server/storage/innobase/include/trx0sys.h (+8/-0)
Percona-Server/storage/innobase/include/trx0trx.h (+16/-2)
Percona-Server/storage/innobase/include/trx0trx.ic (+1/-0)
Percona-Server/storage/innobase/include/univ.i (+12/-0)
Percona-Server/storage/innobase/include/ut0crc32.h (+3/-0)
Percona-Server/storage/innobase/lock/lock0lock.cc (+120/-24)
Percona-Server/storage/innobase/lock/lock0wait.cc (+5/-1)
Percona-Server/storage/innobase/log/log0log.cc (+110/-83)
Percona-Server/storage/innobase/log/log0recv.cc (+148/-137)
Percona-Server/storage/innobase/mtr/mtr0mtr.cc (+9/-12)
Percona-Server/storage/innobase/os/os0file.cc (+915/-689)
Percona-Server/storage/innobase/page/page0cur.cc (+3/-3)
Percona-Server/storage/innobase/page/page0page.cc (+24/-8)
Percona-Server/storage/innobase/page/page0zip.cc (+114/-49)
Percona-Server/storage/innobase/pars/pars0pars.cc (+16/-4)
Percona-Server/storage/innobase/row/row0ftsort.cc (+4/-4)
Percona-Server/storage/innobase/row/row0import.cc (+750/-172)
Percona-Server/storage/innobase/row/row0ins.cc (+339/-88)
Percona-Server/storage/innobase/row/row0log.cc (+79/-39)
Percona-Server/storage/innobase/row/row0merge.cc (+26/-11)
Percona-Server/storage/innobase/row/row0mysql.cc (+153/-57)
Percona-Server/storage/innobase/row/row0purge.cc (+17/-25)
Percona-Server/storage/innobase/row/row0quiesce.cc (+54/-1)
Percona-Server/storage/innobase/row/row0sel.cc (+18/-0)
Percona-Server/storage/innobase/row/row0umod.cc (+0/-55)
Percona-Server/storage/innobase/row/row0undo.cc (+0/-19)
Percona-Server/storage/innobase/row/row0upd.cc (+31/-11)
Percona-Server/storage/innobase/row/row0vers.cc (+1/-1)
Percona-Server/storage/innobase/srv/srv0srv.cc (+120/-58)
Percona-Server/storage/innobase/srv/srv0start.cc (+867/-648)
Percona-Server/storage/innobase/trx/trx0rec.cc (+3/-1)
Percona-Server/storage/innobase/trx/trx0roll.cc (+2/-0)
Percona-Server/storage/innobase/trx/trx0sys.cc (+23/-23)
Percona-Server/storage/innobase/trx/trx0trx.cc (+54/-17)
Percona-Server/storage/innobase/trx/trx0undo.cc (+8/-2)
Percona-Server/storage/innobase/ut/ut0crc32.cc (+2/-6)
Percona-Server/storage/myisam/mi_check.c (+6/-0)
Percona-Server/storage/perfschema/pfs.cc (+4/-4)
Percona-Server/storage/perfschema/pfs_engine_table.cc (+6/-4)
Percona-Server/storage/perfschema/pfs_instr.cc (+3/-0)
Percona-Server/storage/perfschema/pfs_instr.h (+2/-0)
Percona-Server/storage/perfschema/pfs_lock.h (+70/-37)
Percona-Server/storage/perfschema/table_threads.cc (+19/-0)
Percona-Server/storage/perfschema/unittest/CMakeLists.txt (+3/-0)
Percona-Server/support-files/CMakeLists.txt (+8/-7)
Percona-Server/support-files/my-default.cnf.sh (+31/-0)
Percona-Server/support-files/my-huge.cnf.sh (+0/-149)
Percona-Server/support-files/my-innodb-heavy-4G.cnf.sh (+0/-479)
Percona-Server/support-files/my-large.cnf.sh (+0/-149)
Percona-Server/support-files/my-medium.cnf.sh (+0/-147)
Percona-Server/support-files/my-small.cnf.sh (+0/-92)
Percona-Server/support-files/mysql.spec.sh (+44/-16)
Percona-Server/tests/mysql_client_fw.c (+2/-2)
Percona-Server/tests/mysql_client_test.c (+2/-2)
Percona-Server/unittest/gunit/CMakeLists.txt (+5/-1)
Percona-Server/unittest/gunit/dbug-t.cc (+43/-1)
Percona-Server/unittest/gunit/fake_table.h (+8/-0)
Percona-Server/unittest/gunit/handler-t.cc (+64/-0)
Percona-Server/unittest/gunit/handler-t.h (+86/-0)
Percona-Server/unittest/gunit/item-t.cc (+1/-1)
Percona-Server/unittest/gunit/make_sortkey-t.cc (+8/-8)
Percona-Server/unittest/gunit/mdl-t.cc (+1/-0)
Percona-Server/unittest/gunit/mdl_mytap-t.cc (+1/-0)
Percona-Server/unittest/gunit/test_utils.cc (+17/-1)
Percona-Server/unittest/gunit/test_utils.h (+1/-0)
To merge this branch: bzr merge lp:~stewart/percona-server/5.6.8
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+140134@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2012-08-21 07:35:48 +0000
+++ Makefile 2012-12-17 04:11:35 +0000
@@ -1,5 +1,5 @@
1MYSQL_VERSION=5.6.61MYSQL_VERSION=5.6.8
2PERCONA_SERVER_VERSION=alpha60.12PERCONA_SERVER_VERSION=alpha60.2
3PERCONA_SERVER ?=Percona-Server-$(MYSQL_VERSION)-$(PERCONA_SERVER_VERSION)3PERCONA_SERVER ?=Percona-Server-$(MYSQL_VERSION)-$(PERCONA_SERVER_VERSION)
4PERCONA_SERVER_SHORT_1 ?=Percona-Server-$(MYSQL_VERSION)4PERCONA_SERVER_SHORT_1 ?=Percona-Server-$(MYSQL_VERSION)
5PERCONA_SERVER_SHORT_2 ?=Percona-Server5PERCONA_SERVER_SHORT_2 ?=Percona-Server
66
=== modified file 'Percona-Server/CMakeLists.txt'
--- Percona-Server/CMakeLists.txt 2012-10-16 06:21:51 +0000
+++ Percona-Server/CMakeLists.txt 2012-12-17 04:11:35 +0000
@@ -19,6 +19,7 @@
19 CMAKE_POLICY(VERSION 2.8)19 CMAKE_POLICY(VERSION 2.8)
20endif()20endif()
2121
22MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}")
2223
23SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)24SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
2425
@@ -108,7 +109,7 @@
108 ${CMAKE_SOURCE_DIR}/cmake/build_configurations/${BUILD_CONFIG}.cmake)109 ${CMAKE_SOURCE_DIR}/cmake/build_configurations/${BUILD_CONFIG}.cmake)
109ENDIF()110ENDIF()
110111
111#cmake on 64 bit windows doesn't set CMAKE_SYSTEM_PROCESSOR correctly112#cmake on 64bit windows/mac/solaris doesn't set CMAKE_SYSTEM_PROCESSOR correctly
112SET(MYSQL_MACHINE_TYPE ${CMAKE_SYSTEM_PROCESSOR})113SET(MYSQL_MACHINE_TYPE ${CMAKE_SYSTEM_PROCESSOR})
113114
114115
@@ -401,6 +402,7 @@
401 IF(EXISTS ${CMAKE_SOURCE_DIR}/internal/CMakeLists.txt)402 IF(EXISTS ${CMAKE_SOURCE_DIR}/internal/CMakeLists.txt)
402 ADD_SUBDIRECTORY(internal)403 ADD_SUBDIRECTORY(internal)
403 ENDIF()404 ENDIF()
405 ADD_SUBDIRECTORY(SPECIFIC-ULN)
404ENDIF()406ENDIF()
405407
406INCLUDE(cmake/abi_check.cmake)408INCLUDE(cmake/abi_check.cmake)
407409
=== added directory 'Percona-Server/SPECIFIC-ULN'
=== added file 'Percona-Server/SPECIFIC-ULN/CMakeLists.txt'
--- Percona-Server/SPECIFIC-ULN/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/CMakeLists.txt 2012-12-17 04:11:35 +0000
@@ -0,0 +1,38 @@
1# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
2#
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; version 2 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11#
12# You should have received a copy of the GNU General Public License
13# along with this program; if not, write to the Free Software
14# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15
16
17IF(UNIX)
18 SET(prefix ${CMAKE_INSTALL_PREFIX})
19
20 SET(SPECFILENAME "mysql.${VERSION}.spec")
21 IF("${VERSION}" MATCHES "-ndb-")
22 STRING(REGEX REPLACE "^.*-ndb-" "" NDBVERSION "${VERSION}")
23 SET(SPECFILENAME "mysql-cluster-${NDBVERSION}.spec")
24 ENDIF()
25
26 # Left in current directory, to be taken during build
27 CONFIGURE_FILE(mysql.spec.sh ${CMAKE_CURRENT_BINARY_DIR}/${SPECFILENAME} @ONLY)
28
29 FOREACH(ulnfile filter-requires-mysql.sh generate-tarball.sh my.cnf my_config.h
30 mysql-5.5-errno.patch mysql-5.5-fix-tests.patch mysql-5.5-libdir.patch
31 mysql-5.5-mtr1.patch mysql-5.5-stack-guard.patch mysql-5.5-testing.patch
32 mysql-chain-certs.patch mysql-embedded-check.c mysql-expired-certs.patch
33 mysql.init mysql-install-test.patch mysql-strmov.patch scriptstub.c
34 README.mysql-docs)
35 CONFIGURE_FILE(${ulnfile} ${CMAKE_CURRENT_BINARY_DIR}/${ulnfile} COPYONLY)
36 ENDFOREACH()
37ENDIF()
38
039
=== added file 'Percona-Server/SPECIFIC-ULN/README-ULN'
--- Percona-Server/SPECIFIC-ULN/README-ULN 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/README-ULN 2012-12-17 04:11:35 +0000
@@ -0,0 +1,15 @@
1In order to have RPMs of MySQL which are distributed via ULN for Oracle Linux
2to be as closely compatible to such RPMs built and distributed by RedHat,
3this directory contains additional files which originated at RedHat
4and are used only for such RPMs intended for distribution via ULN.
5
6Especially, this directory contains the spec file used to build these RPMs,
7named "mysql.spec". Please regard the following note:
8
9 You are receiving a copy of the Red Hat spec file.
10 The terms of the Oracle license do NOT apply to the Red Hat spec file;
11 it is licensed under the
12 GNU GENERAL PUBLIC LICENSE Version 2, June 1991
13 separately from the Oracle programs you receive.
14
15
016
=== added file 'Percona-Server/SPECIFIC-ULN/README.mysql-docs'
--- Percona-Server/SPECIFIC-ULN/README.mysql-docs 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/README.mysql-docs 2012-12-17 04:11:35 +0000
@@ -0,0 +1,4 @@
1The official MySQL documentation is not freely redistributable, so we cannot
2include it in RHEL or Fedora. You can find it on-line at
3
4http://dev.mysql.com/doc/
05
=== added file 'Percona-Server/SPECIFIC-ULN/filter-requires-mysql.sh'
--- Percona-Server/SPECIFIC-ULN/filter-requires-mysql.sh 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/filter-requires-mysql.sh 2012-12-17 04:11:35 +0000
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3/usr/lib/rpm/perl.req $* | grep -v -e "perl(th" -e "perl(lib::mtr" -e "perl(mtr"
04
=== added file 'Percona-Server/SPECIFIC-ULN/generate-tarball.sh'
--- Percona-Server/SPECIFIC-ULN/generate-tarball.sh 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/generate-tarball.sh 2012-12-17 04:11:35 +0000
@@ -0,0 +1,15 @@
1#!/bin/sh
2
3VERSION=$1
4
5rm -rf mysql-$VERSION
6
7tar xfz mysql-$VERSION.tar.gz || exit 1
8
9rm mysql-$VERSION/Docs/mysql.info
10
11tar cfz mysql-$VERSION-nodocs.tar.gz mysql-$VERSION || exit 1
12
13rm -rf mysql-$VERSION
14
15exit 0
016
=== added file 'Percona-Server/SPECIFIC-ULN/my.cnf'
--- Percona-Server/SPECIFIC-ULN/my.cnf 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/my.cnf 2012-12-17 04:11:35 +0000
@@ -0,0 +1,10 @@
1[mysqld]
2datadir=/var/lib/mysql
3socket=/var/lib/mysql/mysql.sock
4user=mysql
5# Disabling symbolic-links is recommended to prevent assorted security risks
6symbolic-links=0
7
8[mysqld_safe]
9log-error=/var/log/mysqld.log
10pid-file=/var/run/mysqld/mysqld.pid
011
=== added file 'Percona-Server/SPECIFIC-ULN/my_config.h'
--- Percona-Server/SPECIFIC-ULN/my_config.h 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/my_config.h 2012-12-17 04:11:35 +0000
@@ -0,0 +1,29 @@
1/*
2 * Kluge to support multilib installation of both 32- and 64-bit RPMS:
3 * we need to arrange that header files that appear in both RPMs are
4 * identical. Hence, this file is architecture-independent and calls
5 * in an arch-dependent file that will appear in just one RPM.
6 *
7 * To avoid breaking arches not explicitly supported by Red Hat, we
8 * use this indirection file *only* on known multilib arches.
9 *
10 * Note: this may well fail if user tries to use gcc's -I- option.
11 * But that option is deprecated anyway.
12 */
13#if defined(__x86_64__)
14#include "my_config_x86_64.h"
15#elif defined(__i386__)
16#include "my_config_i386.h"
17#elif defined(__ppc64__) || defined(__powerpc64__)
18#include "my_config_ppc64.h"
19#elif defined(__ppc__) || defined(__powerpc__)
20#include "my_config_ppc.h"
21#elif defined(__s390x__)
22#include "my_config_s390x.h"
23#elif defined(__s390__)
24#include "my_config_s390.h"
25#elif defined(__sparc__) && defined(__arch64__)
26#include "my_config_sparc64.h"
27#elif defined(__sparc__)
28#include "my_config_sparc.h"
29#endif
030
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-5.5-errno.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-5.5-errno.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-5.5-errno.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,21 @@
1"extern int errno" is just a really bad idea.
2
3
4diff -Naur mysql-5.1.32.orig/include/my_sys.h mysql-5.1.32/include/my_sys.h
5--- mysql-5.1.32.orig/include/my_sys.h 2009-02-13 19:52:19.000000000 -0500
6+++ mysql-5.1.32/include/my_sys.h 2009-03-04 18:08:40.000000000 -0500
7@@ -199,13 +199,8 @@
8 #define my_afree(PTR) my_free(PTR)
9 #endif /* HAVE_ALLOCA */
10
11-#ifndef errno /* did we already get it? */
12-#ifdef HAVE_ERRNO_AS_DEFINE
13 #include <errno.h> /* errno is a define */
14-#else
15-extern int errno; /* declare errno */
16-#endif
17-#endif /* #ifndef errno */
18+
19 extern char *home_dir; /* Home directory for user */
20 extern const char *my_progname; /* program-name (printed in errors) */
21 extern char curr_dir[]; /* Current directory for user */
022
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-5.5-fix-tests.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-5.5-fix-tests.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-5.5-fix-tests.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,34 @@
1Adapt tests (where needed) to RedHat conventions.
2
31) The RedHat convention uses the package name "mysql*" whereas upstream uses "MySQL*".
4 Test "file_contents" constructs path names and needs to be adapted.
5
6=== modified file 'mysql-test/t/file_contents.test'
7--- mysql-5.5.17-orig/mysql-test/t/file_contents.test 2011-10-10 12:03:29 +0000
8+++ mysql-5.5.17/mysql-test/t/file_contents.test 2011-11-16 18:07:55 +0000
9@@ -17,20 +17,20 @@ if ($dir_bin =~ m|/usr/|) {
10 $dir_docs =~ s|/lib|/share/doc|;
11 if(-d "$dir_docs/packages") {
12 # SuSE: "packages/" in the documentation path
13- $dir_docs = glob "$dir_docs/packages/MySQL-server*";
14+ $dir_docs = glob "$dir_docs/packages/mysql-server*";
15 } else {
16 # RedHat: version number in directory name
17- $dir_docs = glob "$dir_docs/MySQL-server*";
18+ $dir_docs = glob "$dir_docs/mysql-server*";
19 }
20 } elsif ($dir_bin =~ m|/usr$|) {
21 # RPM build during development
22 $dir_docs = "$dir_bin/share/doc";
23 if(-d "$dir_docs/packages") {
24 # SuSE: "packages/" in the documentation path
25- $dir_docs = glob "$dir_docs/packages/MySQL-server*";
26+ $dir_docs = glob "$dir_docs/packages/mysql-server*";
27 } else {
28 # RedHat: version number in directory name
29- $dir_docs = glob "$dir_docs/MySQL-server*";
30+ $dir_docs = glob "$dir_docs/mysql-server*";
31 }
32 } else {
33 # tar.gz package, Windows, or developer work (in BZR)
34
035
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-5.5-libdir.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-5.5-libdir.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-5.5-libdir.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,28 @@
1The RPMs built by MySQL AB (-> Sun -> Oracle) put the libraries into "/usr/lib".
2Those built by RedHat put them into "/usr/lib/mysql".
3This patch is to modify the cmake files to follow the RedHat convention.
4Similar, the server is now in "/usr/libexec" (formerly "/usr/sbin").
5
6
7diff -Naur mysql-5.5.17.orig/cmake/install_layout.cmake mysql-5.5.17/cmake/install_layout.cmake
8--- mysql-5.5.17.orig/cmake/install_layout.cmake 2011-06-30 15:46:53 +0000
9+++ mysql-5.5.17/cmake/install_layout.cmake 2011-10-27 16:40:10 +0000
10@@ -140,14 +140,14 @@ SET(INSTALL_SBINDIR_RPM
11 # be applied at build time via "rpmbuild".
12 #
13 SET(INSTALL_BINDIR_RPM "bin")
14-SET(INSTALL_SBINDIR_RPM "sbin")
15+SET(INSTALL_SBINDIR_RPM "libexec")
16 SET(INSTALL_SCRIPTDIR_RPM "bin")
17 #
18 IF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
19- SET(INSTALL_LIBDIR_RPM "lib64")
20+ SET(INSTALL_LIBDIR_RPM "lib64/mysql")
21 SET(INSTALL_PLUGINDIR_RPM "lib64/mysql/plugin")
22 ELSE()
23- SET(INSTALL_LIBDIR_RPM "lib")
24+ SET(INSTALL_LIBDIR_RPM "lib/mysql")
25 SET(INSTALL_PLUGINDIR_RPM "lib/mysql/plugin")
26 ENDIF()
27 #
28
029
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-5.5-mtr1.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-5.5-mtr1.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-5.5-mtr1.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,25 @@
1Drop support for version 1 of "mysql-test-run.pl" from the RPMs:
2
31) The auto-generation of Perl dependencies will mishandle that code,
4 probably because its run directory differs from its storage location.
52) It does not provide several variables which are used in tests of MySQL 5.5
6
7If you really need it, take it from the source tarball.
8
9=== modified file 'mysql-test/mysql-test-run.pl'
10--- mysql-5.5.17-orig/mysql-test/mysql-test-run.pl 2011-10-03 11:16:40 +0000
11+++ mysql-5.5.17/mysql-test/mysql-test-run.pl 2011-11-16 19:06:38 +0000
12@@ -58,10 +58,9 @@ BEGIN {
13 if ( $version == 1 )
14 {
15 print "=======================================================\n";
16- print " WARNING: Using mysql-test-run.pl version 1! \n";
17+ print " ERROR: Support for version 1 is dropped in this distribution! \n";
18 print "=======================================================\n";
19- # Should use exec() here on *nix but this appears not to work on Windows
20- exit(system($^X, "lib/v1/mysql-test-run.pl", @ARGV) >> 8);
21+ exit(1);
22 }
23 elsif ( $version == 2 )
24 {
25
026
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-5.5-stack-guard.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-5.5-stack-guard.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-5.5-stack-guard.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,140 @@
1mysql is not accounting for the "guard page" when setting thread stack size
2requests. This is fatal on PPC systems, which may use guard pages as large
3as 64K. This patch also documents the IA64 situation a bit better.
4
5Note: there are quite a few other setstacksize calls besides the two in
6mysqld.cc; is it important to fix any of the others?
7
8Filed upstream at http://bugs.mysql.com/bug.php?id=35019
9
10
11diff -Naur mysql-5.1.30.orig/sql/mysqld.cc mysql-5.1.30/sql/mysqld.cc
12--- mysql-5.1.30.orig/sql/mysqld.cc 2008-11-14 11:37:13.000000000 -0500
13+++ mysql-5.1.30/sql/mysqld.cc 2009-01-13 12:08:35.000000000 -0500
14@@ -2653,6 +2653,70 @@
15 }
16
17
18+/* pthread_attr_setstacksize without so much platform-dependency */
19+/* returns the actual stack size if possible */
20+static size_t my_setstacksize(pthread_attr_t *attr, size_t stacksize)
21+{
22+ size_t guard_size = 0;
23+
24+#if defined(__ia64__) || defined(__ia64)
25+ /*
26+ On IA64, half of the requested stack size is used for "normal stack"
27+ and half for "register stack". The space measured by check_stack_overrun
28+ is the "normal stack", so double the request to make sure we have the
29+ caller-expected amount of normal stack.
30+
31+ NOTE: there is no guarantee that the register stack can't grow faster
32+ than normal stack, so it's very unclear that we won't dump core due to
33+ stack overrun despite check_stack_overrun's efforts. Experimentation
34+ shows that in the execution_constants test, the register stack grows
35+ less than half as fast as normal stack, but perhaps other scenarios are
36+ less forgiving. If it turns out that more space is needed for the
37+ register stack, that could be forced (rather inefficiently) by using a
38+ multiplier higher than 2 here.
39+ */
40+ stacksize *= 2;
41+#endif
42+
43+ /*
44+ On many machines, the "guard space" is subtracted from the requested
45+ stack size, and that space is quite large on some platforms. So add
46+ it to our request, if we can find out what it is.
47+
48+ FIXME: autoconfiscate use of pthread_attr_getguardsize
49+ */
50+ if (pthread_attr_getguardsize(attr, &guard_size))
51+ guard_size = 0; /* if can't find it out, treat as 0 */
52+
53+ pthread_attr_setstacksize(attr, stacksize + guard_size);
54+
55+ /* Retrieve actual stack size if possible */
56+#ifdef HAVE_PTHREAD_ATTR_GETSTACKSIZE
57+ {
58+ size_t real_stack_size= 0;
59+ /* We must ignore real_stack_size = 0 as Solaris 2.9 can return 0 here */
60+ if (pthread_attr_getstacksize(attr, &real_stack_size) == 0 &&
61+ real_stack_size > guard_size)
62+ {
63+ real_stack_size -= guard_size;
64+ if (real_stack_size < stacksize)
65+ {
66+ if (global_system_variables.log_warnings)
67+ sql_print_warning("Asked for %ld thread stack, but got %ld",
68+ (long) stacksize, (long) real_stack_size);
69+ stacksize= real_stack_size;
70+ }
71+ }
72+ }
73+#endif
74+
75+#if defined(__ia64__) || defined(__ia64)
76+ stacksize /= 2;
77+#endif
78+ return stacksize;
79+}
80+
81+
82 static void start_signal_handler(void)
83 {
84 int error;
85@@ -2663,15 +2727,7 @@
86 #if !defined(HAVE_DEC_3_2_THREADS)
87 pthread_attr_setscope(&thr_attr,PTHREAD_SCOPE_SYSTEM);
88 (void) pthread_attr_setdetachstate(&thr_attr,PTHREAD_CREATE_DETACHED);
89-#if defined(__ia64__) || defined(__ia64)
90- /*
91- Peculiar things with ia64 platforms - it seems we only have half the
92- stack size in reality, so we have to double it here
93- */
94- pthread_attr_setstacksize(&thr_attr,my_thread_stack_size*2);
95-#else
96- pthread_attr_setstacksize(&thr_attr,my_thread_stack_size);
97-#endif
98+ (void) my_setstacksize(&thr_attr,my_thread_stack_size);
99 #endif
100
101 mysql_mutex_lock(&LOCK_thread_count);
102@@ -4445,37 +4501,7 @@
103 unireg_abort(1); // Will do exit
104
105 init_signals();
106-#if defined(__ia64__) || defined(__ia64)
107- /*
108- Peculiar things with ia64 platforms - it seems we only have half the
109- stack size in reality, so we have to double it here
110- */
111- pthread_attr_setstacksize(&connection_attrib,my_thread_stack_size*2);
112-#else
113- pthread_attr_setstacksize(&connection_attrib,my_thread_stack_size);
114-#endif
115-#ifdef HAVE_PTHREAD_ATTR_GETSTACKSIZE
116- {
117- /* Retrieve used stack size; Needed for checking stack overflows */
118- size_t stack_size= 0;
119- pthread_attr_getstacksize(&connection_attrib, &stack_size);
120-#if defined(__ia64__) || defined(__ia64)
121- stack_size/= 2;
122-#endif
123- /* We must check if stack_size = 0 as Solaris 2.9 can return 0 here */
124- if (stack_size && stack_size < my_thread_stack_size)
125- {
126- if (global_system_variables.log_warnings)
127- sql_print_warning("Asked for %lu thread stack, but got %ld",
128- my_thread_stack_size, (long) stack_size);
129-#if defined(__ia64__) || defined(__ia64)
130- my_thread_stack_size= stack_size*2;
131-#else
132- my_thread_stack_size= stack_size;
133-#endif
134- }
135- }
136-#endif
137+ my_thread_stack_size = my_setstacksize(&connection_attrib,my_thread_stack_size);
138
139 (void) thr_setconcurrency(concurrency); // 10 by default
140
0141
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-5.5-testing.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-5.5-testing.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-5.5-testing.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,23 @@
1Hack the top-level Makefile to enable the openssl regression tests.
2(Why doesn't this happen automatically given the configure option??)
3
4Also, increase the overall timeout for the regression tests to 12 hours,
5because on a slow or heavily-loaded build machine sometimes the default of
65 hours isn't enough. (This has been demonstrated to fail in mass-rebuild
7scenarios, which aren't that uncommon for Fedora.) Similarly increase the
8per-testcase timeout to 30 minutes, since the default of 15 hasn't got a
9great deal of headroom either.
10
11
12diff -Naur mysql-5.1.32.orig/Makefile.am mysql-5.1.32/Makefile.am
13--- mysql-5.1.32.orig/Makefile.am 2009-02-13 19:51:56.000000000 -0500
14+++ mysql-5.1.32/Makefile.am 2009-03-04 18:12:36.000000000 -0500
15@@ -98,7 +98,7 @@
16
17 test-ns:
18 cd mysql-test ; \
19- @PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
20+ @PERL@ ./mysql-test-run.pl $(force) $(mem) --ssl --mysqld=--binlog-format=mixed --suite-timeout=720 --testcase-timeout=30
21
22 test-binlog-statement:
23 cd mysql-test ; \
024
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-chain-certs.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-chain-certs.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-chain-certs.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,41 @@
1Fix things so that chains of certificates work in the server and client
2certificate files.
3
4This only really works for OpenSSL-based builds, as yassl is unable to read
5multiple certificates from a file. The patch below to yassl/src/ssl.cpp
6doesn't fix that, but just arranges that the viosslfactories.c patch won't
7have any ill effects in a yassl build. Since we don't use yassl in Red Hat/
8Fedora builds, I'm not feeling motivated to try to fix yassl for this.
9
10See RH bug #598656. Filed upstream at http://bugs.mysql.com/bug.php?id=54158
11
12
13diff -Naur mysql-5.1.47.orig/vio/viosslfactories.c mysql-5.1.47/vio/viosslfactories.c
14--- mysql-5.1.47.orig/vio/viosslfactories.c 2010-05-06 11:28:07.000000000 -0400
15+++ mysql-5.1.47/vio/viosslfactories.c 2010-05-26 23:23:46.000000000 -0400
16@@ -100,7 +100,7 @@
17 (long) ctx, cert_file, key_file));
18 if (cert_file)
19 {
20- if (SSL_CTX_use_certificate_file(ctx, cert_file, SSL_FILETYPE_PEM) <= 0)
21+ if (SSL_CTX_use_certificate_chain_file(ctx, cert_file) <= 0)
22 {
23 *error= SSL_INITERR_CERT;
24 DBUG_PRINT("error",("%s from file '%s'", sslGetErrString(*error), cert_file));
25diff -Naur mysql-5.1.47.orig/extra/yassl/src/ssl.cpp mysql-5.1.47/extra/yassl/src/ssl.cpp
26--- mysql-5.1.47.orig/extra/yassl/src/ssl.cpp 2010-05-06 11:24:26.000000000 -0400
27+++ mysql-5.1.47/extra/yassl/src/ssl.cpp 2010-05-26 23:29:13.000000000 -0400
28@@ -1606,10 +1606,10 @@
29 }
30
31
32- int SSL_CTX_use_certificate_chain_file(SSL_CTX*, const char*)
33+ int SSL_CTX_use_certificate_chain_file(SSL_CTX* ctx, const char* file)
34 {
35- // TDOD:
36- return SSL_SUCCESS;
37+ // For the moment, treat like use_certificate_file
38+ return read_file(ctx, file, SSL_FILETYPE_PEM, Cert);
39 }
40
41
042
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-embedded-check.c'
--- Percona-Server/SPECIFIC-ULN/mysql-embedded-check.c 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-embedded-check.c 2012-12-17 04:11:35 +0000
@@ -0,0 +1,26 @@
1/* simple test program to see if we can link the embedded server library */
2
3#include <stdio.h>
4#include <stdlib.h>
5#include <stdarg.h>
6
7#include "mysql.h"
8
9MYSQL *mysql;
10
11static char *server_options[] = \
12 { "mysql_test", "--defaults-file=my.cnf", NULL };
13int num_elements = (sizeof(server_options) / sizeof(char *)) - 1;
14
15static char *server_groups[] = { "libmysqld_server",
16 "libmysqld_client", NULL };
17
18int main(int argc, char **argv)
19{
20 mysql_library_init(num_elements, server_options, server_groups);
21 mysql = mysql_init(NULL);
22 mysql_close(mysql);
23 mysql_library_end();
24
25 return 0;
26}
027
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-expired-certs.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-expired-certs.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-expired-certs.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,555 @@
1Upstream insists on generating SSL testing certificates with relatively short
2lifespan, which has repeatedly caused problems (ie, one day the regression
3tests suddenly stop working). Replace them with certificates with 20-year
4lifespan. We should periodically regenerate these, too, but at least not
5very often.
6
7
8diff -Naur mysql-5.1.50.orig/mysql-test/std_data/cacert.pem mysql-5.1.50/mysql-test/std_data/cacert.pem
9--- mysql-5.1.50.orig/mysql-test/std_data/cacert.pem 2010-08-03 13:55:04.000000000 -0400
10+++ mysql-5.1.50/mysql-test/std_data/cacert.pem 2010-08-27 23:42:05.751428144 -0400
11@@ -1,17 +1,22 @@
12 -----BEGIN CERTIFICATE-----
13-MIICrTCCAhagAwIBAgIJAMI7xZKjhrDbMA0GCSqGSIb3DQEBBAUAMEQxCzAJBgNV
14+MIIDsjCCApqgAwIBAgIJAL5YrUwfPSWVMA0GCSqGSIb3DQEBBQUAMEQxCzAJBgNV
15 BAYTAlNFMRAwDgYDVQQIEwdVcHBzYWxhMRAwDgYDVQQHEwdVcHBzYWxhMREwDwYD
16-VQQKEwhNeVNRTCBBQjAeFw0xMDAxMjkxMTQ3MTBaFw0xNTAxMjgxMTQ3MTBaMEQx
17+VQQKEwhNeVNRTCBBQjAeFw0xMDAxMjkwNTU5NTNaFw0xNTAxMjgwNTU5NTNaMEQx
18 CzAJBgNVBAYTAlNFMRAwDgYDVQQIEwdVcHBzYWxhMRAwDgYDVQQHEwdVcHBzYWxh
19-MREwDwYDVQQKEwhNeVNRTCBBQjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
20-wQYsOEfrN4ESP3FjsI8cghE+tZVuyK2gck61lwieVxjgFMtBd65mI5a1y9pmlOI1
21-yM4SB2Ppqcuw7/e1CdV1y7lvHrGNt5yqEHbN4QX1gvsN8TQauP/2WILturk4R4Hq
22-rKg0ZySu7f1Xhl0ed9a48LpaEHD17IcxWEGMMJwAxF0CAwEAAaOBpjCBozAMBgNV
23-HRMEBTADAQH/MB0GA1UdDgQWBBSvktYQ0ahLnyxyVKqty+WpBbBrDTB0BgNVHSME
24-bTBrgBSvktYQ0ahLnyxyVKqty+WpBbBrDaFIpEYwRDELMAkGA1UEBhMCU0UxEDAO
25-BgNVBAgTB1VwcHNhbGExEDAOBgNVBAcTB1VwcHNhbGExETAPBgNVBAoTCE15U1FM
26-IEFCggkAwjvFkqOGsNswDQYJKoZIhvcNAQEEBQADgYEAdKN1PjwMHAKG2Ww1145g
27-JQGBnKxSFOUaoSvkBi/4ntTM+ysnViWh7WvxyWjR9zU9arfr7aqsDeQxm0XDOqzj
28-AQ/cQIla2/Li8tXyfc06bisH/IHRaSc2zWqioTKbEwMdVOdrvq4a8V8ic3xYyIWn
29-7F4WeS07J8LKardSvM0+hOA=
30+MREwDwYDVQQKEwhNeVNRTCBBQjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
31+ggEBAL6kNN4peX7uhK9rb06W/QbPEpVuejmdWdl2PqMshP/eSuXXw7kwVgfpxx9R
32+vC000CKQQSG9MCoZjtqPnFRsetmWLZgApRpEalGXTXJqq9sEbCfoFizg94U8G7d2
33+u5XJjLVmcG34ru36KoBgVx1zeH1puBAf8dOzrE4L7Y+ZQBFzFohjh8C2LqWC4nM5
34+qsLmOkDWMipGqYU5DvkKjIbTbwTyRNRgZHWSPfVDDPUIUOsY4BGUp2DpgeGY9aEv
35+lIs57Ev9JqlIUCV65lOhhDkG+xwmkHKHA+ECEU9cALI8+uXbh48MB9XpMOuk408X
36+/lX89aZwD0/G9kmObVGnE2G+H5UCAwEAAaOBpjCBozAdBgNVHQ4EFgQUsft+d7VA
37+jWgRftkR5cPG2k2sUbAwdAYDVR0jBG0wa4AUsft+d7VAjWgRftkR5cPG2k2sUbCh
38+SKRGMEQxCzAJBgNVBAYTAlNFMRAwDgYDVQQIEwdVcHBzYWxhMRAwDgYDVQQHEwdV
39+cHBzYWxhMREwDwYDVQQKEwhNeVNRTCBBQoIJAL5YrUwfPSWVMAwGA1UdEwQFMAMB
40+Af8wDQYJKoZIhvcNAQEFBQADggEBALRUOAmdL8R8sl1y8kiEiFgDatdXK5RDqWai
41+8yZChfmwTIToHhmQsOEshJe2e8hky3huUj+33VyXjINoMbebIwMuXPwEkbJal8RZ
42+nSJmF0jN1Qz7J/jFffwK9xmejWZJx49Kt2+Qwrwp6kDeq9TLFqQOoVczgyJPYsTL
43+NAOib5WqTud3XWvCwxrhqmWu7JZq6sp1fomP/uunprb8y2miWfLESZN2mKAhm44Q
44+Lws867LT8v2lskEjq2dT1LutD5+R66XcdjgSr0uDziDs64jZwCD6ea94hVFM7ej0
45+ZOXYeSEZJ56FjUxu632e9fY8NyMh30yKjjmQf1mM9PuGJvdvsWU=
46 -----END CERTIFICATE-----
47diff -Naur mysql-5.1.50.orig/mysql-test/std_data/client-cert.pem mysql-5.1.50/mysql-test/std_data/client-cert.pem
48--- mysql-5.1.50.orig/mysql-test/std_data/client-cert.pem 2010-08-03 13:55:04.000000000 -0400
49+++ mysql-5.1.50/mysql-test/std_data/client-cert.pem 2010-08-27 23:42:05.752428395 -0400
50@@ -1,46 +1,69 @@
51 Certificate:
52 Data:
53- Version: 1 (0x0)
54- Serial Number: 1048577 (0x100001)
55- Signature Algorithm: md5WithRSAEncryption
56+ Version: 3 (0x2)
57+ Serial Number: 6 (0x6)
58+ Signature Algorithm: sha1WithRSAEncryption
59 Issuer: C=SE, ST=Uppsala, L=Uppsala, O=MySQL AB
60 Validity
61- Not Before: Jan 29 11:50:22 2010 GMT
62- Not After : Jan 28 11:50:22 2015 GMT
63+ Not Before: Feb 20 03:03:26 2010 GMT
64+ Not After : Sep 3 03:03:26 2030 GMT
65 Subject: C=SE, ST=Uppsala, O=MySQL AB
66 Subject Public Key Info:
67 Public Key Algorithm: rsaEncryption
68- Public-Key: (1024 bit)
69- Modulus:
70- 00:cc:9a:37:49:13:66:dc:cf:e3:0b:13:a1:23:ed:
71- 78:db:4e:bd:11:f6:8c:0d:76:f9:a3:32:56:9a:f8:
72- a1:21:6a:55:4e:4d:3f:e6:67:9d:26:99:b2:cd:a4:
73- 9a:d2:2b:59:5c:d7:8a:d3:60:68:f8:18:bd:c5:be:
74- 15:e1:2a:3c:a3:d4:61:cb:f5:11:94:17:81:81:f7:
75- 87:8c:f6:6a:d2:ee:d8:e6:77:f6:62:66:4d:2e:16:
76- 8d:08:81:4a:c9:c6:4b:31:e5:b9:c7:8a:84:96:48:
77- a7:47:8c:0d:26:90:56:4e:e6:a5:6e:8c:b3:f2:9f:
78- fc:3d:78:9b:49:6e:86:83:77
79+ RSA Public Key: (1024 bit)
80+ Modulus (1024 bit):
81+ 00:c2:e7:20:cf:89:59:2f:67:cb:4c:9f:e8:11:f2:
82+ 23:e5:f1:b1:ee:3f:66:5f:c3:f5:fd:1e:31:ee:8f:
83+ 4c:2a:bd:c0:4a:a5:9f:c8:44:d5:77:8f:15:1b:4d:
84+ 78:6e:b2:a2:48:a5:24:33:05:40:02:b3:c1:87:8d:
85+ 59:3c:1a:07:aa:86:f0:04:e1:9c:20:4b:22:32:c4:
86+ 51:9e:40:e4:31:c3:57:f5:98:bf:2e:b1:fd:2c:56:
87+ bf:49:d9:9b:e7:17:cc:95:5f:b5:08:19:5e:9d:df:
88+ 65:22:39:2c:48:fb:69:96:31:7a:35:4d:de:60:b4:
89+ c1:60:19:5f:96:56:7e:55:19
90 Exponent: 65537 (0x10001)
91- Signature Algorithm: md5WithRSAEncryption
92- 5e:1f:a3:53:5f:24:13:1c:f8:28:32:b0:7f:69:69:f3:0e:c0:
93- 34:87:10:03:7d:da:15:8b:bd:19:b8:1a:56:31:e7:85:49:81:
94- c9:7f:45:20:74:3e:89:c0:e0:26:84:51:cc:04:16:ce:69:99:
95- 01:e1:26:99:b3:e3:f5:bd:ec:5f:a0:84:e4:38:da:75:78:7b:
96- 89:9c:d2:cd:60:95:20:ba:8e:e3:7c:e6:df:76:3a:7c:89:77:
97- 02:94:86:11:3a:c4:61:7d:6f:71:83:21:8a:17:fb:17:e2:ee:
98- 02:6b:61:c1:b4:52:63:d7:d8:46:b2:c5:9c:6f:38:91:8a:35:
99- 32:0b
100+ X509v3 extensions:
101+ X509v3 Basic Constraints:
102+ CA:FALSE
103+ X509v3 Subject Key Identifier:
104+ 8D:10:67:91:33:76:9C:02:E5:78:5D:D8:C5:EF:25:96:B2:D7:FA:1F
105+ X509v3 Authority Key Identifier:
106+ keyid:B1:FB:7E:77:B5:40:8D:68:11:7E:D9:11:E5:C3:C6:DA:4D:AC:51:B0
107+ DirName:/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB
108+ serial:BE:58:AD:4C:1F:3D:25:95
109+
110+ Signature Algorithm: sha1WithRSAEncryption
111+ a9:88:10:3e:5d:2a:47:29:c8:03:27:7a:31:5a:8e:10:03:bc:
112+ b5:4e:37:1d:12:7b:eb:5f:50:71:70:b1:a3:8e:93:0e:77:17:
113+ 6c:47:b6:c9:a4:4d:2a:c4:38:f0:61:55:b2:7f:28:ba:06:79:
114+ ee:67:11:7d:d4:c9:7f:0a:18:c8:c1:cb:d0:2c:f9:63:0f:bb:
115+ 45:ca:de:ea:bb:ac:00:01:52:48:36:2b:07:2b:c8:46:c7:b1:
116+ 21:81:bd:77:39:e7:4c:39:aa:bd:ac:60:d8:a7:bf:cf:14:98:
117+ 4a:0b:a1:40:55:06:8d:6f:35:a9:39:a0:71:a9:97:ba:7c:73:
118+ 3c:41:ba:c5:1c:11:4b:2b:43:1d:2d:ba:7b:5f:14:b5:3d:64:
119+ 62:15:36:b4:16:bd:78:c8:43:8d:f9:1c:a5:d2:ac:a1:58:74:
120+ e1:99:de:ad:04:19:43:a8:bd:0a:fd:19:9b:50:44:46:6d:18:
121+ 55:4d:bf:b4:5b:a4:93:62:c7:64:91:6c:54:34:d1:f8:f3:ff:
122+ 12:6d:5f:85:e7:35:9e:5c:42:81:5e:fb:c8:bb:44:51:98:b2:
123+ ef:1b:9f:5a:22:77:28:7d:da:fb:08:c2:94:9a:0f:42:08:93:
124+ 54:10:1e:ad:f2:4f:fc:62:98:51:e9:9b:b9:3a:93:d9:e4:1f:
125+ 1d:c4:76:d0
126 -----BEGIN CERTIFICATE-----
127-MIIB5zCCAVACAxAAATANBgkqhkiG9w0BAQQFADBEMQswCQYDVQQGEwJTRTEQMA4G
128-A1UECBMHVXBwc2FsYTEQMA4GA1UEBxMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwg
129-QUIwHhcNMTAwMTI5MTE1MDIyWhcNMTUwMTI4MTE1MDIyWjAyMQswCQYDVQQGEwJT
130-RTEQMA4GA1UECBMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwgQUIwgZ8wDQYJKoZI
131-hvcNAQEBBQADgY0AMIGJAoGBAMyaN0kTZtzP4wsToSPteNtOvRH2jA12+aMyVpr4
132-oSFqVU5NP+ZnnSaZss2kmtIrWVzXitNgaPgYvcW+FeEqPKPUYcv1EZQXgYH3h4z2
133-atLu2OZ39mJmTS4WjQiBSsnGSzHluceKhJZIp0eMDSaQVk7mpW6Ms/Kf/D14m0lu
134-hoN3AgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAXh+jU18kExz4KDKwf2lp8w7ANIcQ
135-A33aFYu9GbgaVjHnhUmByX9FIHQ+icDgJoRRzAQWzmmZAeEmmbPj9b3sX6CE5Dja
136-dXh7iZzSzWCVILqO43zm33Y6fIl3ApSGETrEYX1vcYMhihf7F+LuAmthwbRSY9fY
137-RrLFnG84kYo1Mgs=
138+MIIDETCCAfmgAwIBAgIBBjANBgkqhkiG9w0BAQUFADBEMQswCQYDVQQGEwJTRTEQ
139+MA4GA1UECBMHVXBwc2FsYTEQMA4GA1UEBxMHVXBwc2FsYTERMA8GA1UEChMITXlT
140+UUwgQUIwHhcNMTAwMjIwMDMwMzI2WhcNMzAwOTAzMDMwMzI2WjAyMQswCQYDVQQG
141+EwJTRTEQMA4GA1UECBMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwgQUIwgZ8wDQYJ
142+KoZIhvcNAQEBBQADgY0AMIGJAoGBAMLnIM+JWS9ny0yf6BHyI+Xxse4/Zl/D9f0e
143+Me6PTCq9wEqln8hE1XePFRtNeG6yokilJDMFQAKzwYeNWTwaB6qG8AThnCBLIjLE
144+UZ5A5DHDV/WYvy6x/SxWv0nZm+cXzJVftQgZXp3fZSI5LEj7aZYxejVN3mC0wWAZ
145+X5ZWflUZAgMBAAGjgaMwgaAwCQYDVR0TBAIwADAdBgNVHQ4EFgQUjRBnkTN2nALl
146+eF3Yxe8llrLX+h8wdAYDVR0jBG0wa4AUsft+d7VAjWgRftkR5cPG2k2sUbChSKRG
147+MEQxCzAJBgNVBAYTAlNFMRAwDgYDVQQIEwdVcHBzYWxhMRAwDgYDVQQHEwdVcHBz
148+YWxhMREwDwYDVQQKEwhNeVNRTCBBQoIJAL5YrUwfPSWVMA0GCSqGSIb3DQEBBQUA
149+A4IBAQCpiBA+XSpHKcgDJ3oxWo4QA7y1TjcdEnvrX1BxcLGjjpMOdxdsR7bJpE0q
150+xDjwYVWyfyi6BnnuZxF91Ml/ChjIwcvQLPljD7tFyt7qu6wAAVJINisHK8hGx7Eh
151+gb13OedMOaq9rGDYp7/PFJhKC6FAVQaNbzWpOaBxqZe6fHM8QbrFHBFLK0MdLbp7
152+XxS1PWRiFTa0Fr14yEON+Ryl0qyhWHThmd6tBBlDqL0K/RmbUERGbRhVTb+0W6ST
153+YsdkkWxUNNH48/8SbV+F5zWeXEKBXvvIu0RRmLLvG59aIncofdr7CMKUmg9CCJNU
154+EB6t8k/8YphR6Zu5OpPZ5B8dxHbQ
155 -----END CERTIFICATE-----
156diff -Naur mysql-5.1.50.orig/mysql-test/std_data/client-key.pem mysql-5.1.50/mysql-test/std_data/client-key.pem
157--- mysql-5.1.50.orig/mysql-test/std_data/client-key.pem 2010-08-03 13:55:05.000000000 -0400
158+++ mysql-5.1.50/mysql-test/std_data/client-key.pem 2010-08-27 23:42:05.752428395 -0400
159@@ -1,15 +1,15 @@
160 -----BEGIN RSA PRIVATE KEY-----
161-MIICXQIBAAKBgQDMmjdJE2bcz+MLE6Ej7XjbTr0R9owNdvmjMlaa+KEhalVOTT/m
162-Z50mmbLNpJrSK1lc14rTYGj4GL3FvhXhKjyj1GHL9RGUF4GB94eM9mrS7tjmd/Zi
163-Zk0uFo0IgUrJxksx5bnHioSWSKdHjA0mkFZO5qVujLPyn/w9eJtJboaDdwIDAQAB
164-AoGASqk/4We2En+93y3jkIO4pXafIe3w/3zZ7caRue1ehx4RUQh5d+95djuB9u7J
165-HEZ7TpjM7QNyao5EueL6gvbxt0LXFvqAMni7yM9tt/HUYtHHPqYiRtUny9bKYFTm
166-l8szCCMal/wD9GZU9ByHDNHm7tHUMyMhARNTYSgx+SERFmECQQD/6jJocC4SXf6f
167-T3LqimWR02lbJ7qCoDgRglsUXh0zjrG+IIiAyE+QOCCx1GMe3Uw6bsIuYwdHT6as
168-WcdPs04xAkEAzKulvEvLVvN5zfa/DTYRTV7jh6aDleOxjsD5oN/oJXoACnPzVuUL
169-qQQMNtuAXm6Q1QItrRxpQsSKbY0UQka6JwJBAOSgoNoG5lIIYTKIMvzwGV+XBLeo
170-HYsXgh+6Wo4uql3mLErUG78ZtWL9kc/tE4R+ZdyKGLaCR/1gXmH5bwN4B/ECQEBb
171-uUH8k3REG4kojesZlVc+/00ojzgS4UKCa/yqa9VdB6ZBz8MDQydinnShkTwgiGpy
172-xOoqhO753o2UT0qH8wECQQC99IEJWUnwvExVMkLaZH5NjAFJkb22sjkmuT11tAgU
173-RQgOMoDOm6driojnOnDWOkx1r1Gy9NgMLooduja4v6cx
174+MIICWwIBAAKBgQDC5yDPiVkvZ8tMn+gR8iPl8bHuP2Zfw/X9HjHuj0wqvcBKpZ/I
175+RNV3jxUbTXhusqJIpSQzBUACs8GHjVk8GgeqhvAE4ZwgSyIyxFGeQOQxw1f1mL8u
176+sf0sVr9J2ZvnF8yVX7UIGV6d32UiOSxI+2mWMXo1Td5gtMFgGV+WVn5VGQIDAQAB
177+AoGARXcXLKDpVooJ3W+IyQyiWsw//IhANpWjUOm4JiyQmxMyO+i4ACr4Yjpu7WI5
178+MEseqAGj20NdwxjKO0PXsCIe5LmrGZ+SI8+CSERFOWXWRtCWz7y7SG30i1k6suvM
179+mwqWom0tJLwn93uA1lm/WSwKQwUrJRahRQd3EaZqrl7DP5kCQQD/8gbuYAT5pxQe
180+ULLGM0RvEsXxDYbEDxNbY5wrBazfklBwpumxZpFl6jEAT++7Kh2Ns3A7kB1oUNlA
181+FPYr+dYPAkEAwvHEwRtoyUr8jqoqVVJWI76CDmBjEOzVeMKW97ztqbs2LxZW8dYI
182+iOh/myFGpdoUwgu0U8w9MmXcj3ZeZCYKVwJALyQ+AJPw9qa+fuLwOq9gsHCtwrty
183+EhSQxSlwrz/pWniRll439vPkXfgntF4E0t1r+hiN2Hqv3/HcQgBaYzkuIwJAG023
184+bACFxaOuCeFFepvEms8E8jSHy4gQQhCnCl24v8wLw76SQN7kZSCDNtwLRBFuVNtE
185+z3PMonFn2eQPRmGZkwJAP1c1BHprMQx/ruafdscROILv3JrH40C1bR6KVVBKt1dK
186+Qpnpgi7hK5rUQjDF8k3bn9ugTt06jyeHe/QhAml0kg==
187 -----END RSA PRIVATE KEY-----
188diff -Naur mysql-5.1.50.orig/mysql-test/std_data/server-cert.pem mysql-5.1.50/mysql-test/std_data/server-cert.pem
189--- mysql-5.1.50.orig/mysql-test/std_data/server-cert.pem 2010-08-03 13:55:08.000000000 -0400
190+++ mysql-5.1.50/mysql-test/std_data/server-cert.pem 2010-08-27 23:42:05.753428361 -0400
191@@ -1,41 +1,69 @@
192 Certificate:
193 Data:
194- Version: 1 (0x0)
195- Serial Number: 1048578 (0x100002)
196- Signature Algorithm: md5WithRSAEncryption
197+ Version: 3 (0x2)
198+ Serial Number: 4 (0x4)
199+ Signature Algorithm: sha1WithRSAEncryption
200 Issuer: C=SE, ST=Uppsala, L=Uppsala, O=MySQL AB
201 Validity
202- Not Before: Jan 29 11:56:49 2010 GMT
203- Not After : Jan 28 11:56:49 2015 GMT
204+ Not Before: Feb 20 02:55:06 2010 GMT
205+ Not After : Sep 3 02:55:06 2030 GMT
206 Subject: C=SE, ST=Uppsala, O=MySQL AB, CN=localhost
207 Subject Public Key Info:
208 Public Key Algorithm: rsaEncryption
209- Public-Key: (512 bit)
210- Modulus:
211- 00:cd:e4:87:51:9d:72:11:a0:d1:fa:f3:92:8b:13:
212- 1c:eb:f7:e2:9a:2f:72:a8:d6:65:48:d1:69:af:1b:
213- c0:4c:13:e5:60:60:51:41:e9:ab:a6:bc:13:bb:0c:
214- 5e:32:7c:d9:6c:9e:cd:05:24:84:78:db:80:91:2e:
215- d8:88:2b:c2:ed
216+ RSA Public Key: (1024 bit)
217+ Modulus (1024 bit):
218+ 00:e3:7d:4f:c2:23:77:a9:3a:2c:d2:69:59:a0:2f:
219+ 4e:d1:51:4c:ae:8d:f5:17:cc:ce:58:9c:83:4f:0b:
220+ a3:bb:29:a2:b8:1d:3e:1b:04:f9:a9:3e:e2:61:d0:
221+ e6:7b:b9:7c:12:d8:1f:86:c9:53:b5:04:dd:df:26:
222+ e9:c0:2b:de:4a:96:2e:f3:23:6f:79:6d:a9:d2:4e:
223+ 17:af:2f:de:8b:68:44:ae:de:a3:e2:c4:37:1c:04:
224+ ad:73:4b:85:f9:83:ac:fe:b7:c1:54:47:2e:96:d4:
225+ 31:96:85:94:69:d6:5a:63:24:04:99:89:19:1d:56:
226+ 8a:d1:77:aa:87:fb:38:cd:b7
227 Exponent: 65537 (0x10001)
228- Signature Algorithm: md5WithRSAEncryption
229- 73:ce:9c:6e:39:46:b4:14:be:da:3f:f3:1b:ba:90:bc:23:43:
230- d7:82:2a:70:4e:a6:d9:5a:65:5c:b7:df:71:df:75:77:c5:80:
231- a4:af:fa:d2:59:e2:fd:c9:9c:f0:98:95:8e:69:a9:8c:7c:d8:
232- 6f:48:d2:e3:36:e0:cd:ff:3f:d1:a5:e6:ab:75:09:c4:50:10:
233- c4:96:dd:bf:3b:de:32:46:da:ca:4a:f1:d6:52:8a:33:2f:ab:
234- f5:2e:70:3f:d4:9c:be:00:c8:03:f9:39:8a:df:5b:70:3c:40:
235- ef:03:be:7c:3d:1d:32:32:f3:51:81:e2:83:30:6e:3d:38:9b:
236- fb:3c
237+ X509v3 extensions:
238+ X509v3 Basic Constraints:
239+ CA:FALSE
240+ X509v3 Subject Key Identifier:
241+ CC:8C:71:40:D0:0F:BF:D1:99:79:3F:1B:E9:10:76:19:67:36:0F:A3
242+ X509v3 Authority Key Identifier:
243+ keyid:B1:FB:7E:77:B5:40:8D:68:11:7E:D9:11:E5:C3:C6:DA:4D:AC:51:B0
244+ DirName:/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB
245+ serial:BE:58:AD:4C:1F:3D:25:95
246+
247+ Signature Algorithm: sha1WithRSAEncryption
248+ 6f:ad:5e:59:fa:84:3a:be:e2:72:b1:e8:66:2a:4e:f8:73:19:
249+ 11:06:11:92:78:56:3e:d6:e8:68:29:90:8b:59:d2:fe:aa:ae:
250+ 25:59:c7:e9:99:bb:4a:06:43:dd:40:bd:cb:f4:ae:79:95:7d:
251+ 8e:90:ef:58:d2:a8:fc:bf:07:f3:37:b2:9b:bd:da:e6:8c:56:
252+ dd:5e:c6:4a:70:7c:3e:3d:a1:e8:35:06:b8:a7:7b:ac:26:85:
253+ 54:5d:09:a2:7b:77:b4:17:7f:72:31:cb:ff:cc:67:6d:e6:3e:
254+ c6:dc:96:eb:4a:0a:ae:e9:48:ae:8a:e0:d6:73:57:6e:32:4c:
255+ 00:dc:28:da:55:b3:9f:9f:d8:98:cc:d9:f1:b6:b3:14:67:2e:
256+ a1:47:1e:51:11:cf:70:9f:31:8f:ba:59:29:f2:d0:88:0b:e2:
257+ 51:6b:f8:31:ed:6d:ac:00:5e:d3:78:4c:95:97:02:cc:74:2b:
258+ 3b:c6:28:e6:2a:c3:30:99:35:b4:4d:31:46:d4:90:f2:47:ed:
259+ 64:85:1a:75:2a:72:0a:2f:c6:3a:2f:d2:ac:6b:31:cc:e5:a8:
260+ 07:c2:d6:22:f3:c6:0f:bf:67:d9:d6:b2:79:cd:48:b5:c3:e0:
261+ e3:18:7f:b5:74:c9:43:19:fb:c4:93:29:ca:cc:90:2b:1b:6f:
262+ 45:f6:25:f9
263 -----BEGIN CERTIFICATE-----
264-MIIBtzCCASACAxAAAjANBgkqhkiG9w0BAQQFADBEMQswCQYDVQQGEwJTRTEQMA4G
265-A1UECBMHVXBwc2FsYTEQMA4GA1UEBxMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwg
266-QUIwHhcNMTAwMTI5MTE1NjQ5WhcNMTUwMTI4MTE1NjQ5WjBGMQswCQYDVQQGEwJT
267-RTEQMA4GA1UECBMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwgQUIxEjAQBgNVBAMT
268-CWxvY2FsaG9zdDBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDN5IdRnXIRoNH685KL
269-Exzr9+KaL3Ko1mVI0WmvG8BME+VgYFFB6aumvBO7DF4yfNlsns0FJIR424CRLtiI
270-K8LtAgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAc86cbjlGtBS+2j/zG7qQvCND14Iq
271-cE6m2VplXLffcd91d8WApK/60lni/cmc8JiVjmmpjHzYb0jS4zbgzf8/0aXmq3UJ
272-xFAQxJbdvzveMkbaykrx1lKKMy+r9S5wP9ScvgDIA/k5it9bcDxA7wO+fD0dMjLz
273-UYHigzBuPTib+zw=
274+MIIDJTCCAg2gAwIBAgIBBDANBgkqhkiG9w0BAQUFADBEMQswCQYDVQQGEwJTRTEQ
275+MA4GA1UECBMHVXBwc2FsYTEQMA4GA1UEBxMHVXBwc2FsYTERMA8GA1UEChMITXlT
276+UUwgQUIwHhcNMTAwMjIwMDI1NTA2WhcNMzAwOTAzMDI1NTA2WjBGMQswCQYDVQQG
277+EwJTRTEQMA4GA1UECBMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwgQUIxEjAQBgNV
278+BAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA431PwiN3
279+qTos0mlZoC9O0VFMro31F8zOWJyDTwujuymiuB0+GwT5qT7iYdDme7l8EtgfhslT
280+tQTd3ybpwCveSpYu8yNveW2p0k4Xry/ei2hErt6j4sQ3HAStc0uF+YOs/rfBVEcu
281+ltQxloWUadZaYyQEmYkZHVaK0Xeqh/s4zbcCAwEAAaOBozCBoDAJBgNVHRMEAjAA
282+MB0GA1UdDgQWBBTMjHFA0A+/0Zl5PxvpEHYZZzYPozB0BgNVHSMEbTBrgBSx+353
283+tUCNaBF+2RHlw8baTaxRsKFIpEYwRDELMAkGA1UEBhMCU0UxEDAOBgNVBAgTB1Vw
284+cHNhbGExEDAOBgNVBAcTB1VwcHNhbGExETAPBgNVBAoTCE15U1FMIEFCggkAvlit
285+TB89JZUwDQYJKoZIhvcNAQEFBQADggEBAG+tXln6hDq+4nKx6GYqTvhzGREGEZJ4
286+Vj7W6GgpkItZ0v6qriVZx+mZu0oGQ91Avcv0rnmVfY6Q71jSqPy/B/M3spu92uaM
287+Vt1exkpwfD49oeg1Brine6wmhVRdCaJ7d7QXf3Ixy//MZ23mPsbclutKCq7pSK6K
288+4NZzV24yTADcKNpVs5+f2JjM2fG2sxRnLqFHHlERz3CfMY+6WSny0IgL4lFr+DHt
289+bawAXtN4TJWXAsx0KzvGKOYqwzCZNbRNMUbUkPJH7WSFGnUqcgovxjov0qxrMczl
290+qAfC1iLzxg+/Z9nWsnnNSLXD4OMYf7V0yUMZ+8STKcrMkCsbb0X2Jfk=
291 -----END CERTIFICATE-----
292diff -Naur mysql-5.1.50.orig/mysql-test/std_data/server-key.pem mysql-5.1.50/mysql-test/std_data/server-key.pem
293--- mysql-5.1.50.orig/mysql-test/std_data/server-key.pem 2010-08-03 13:55:08.000000000 -0400
294+++ mysql-5.1.50/mysql-test/std_data/server-key.pem 2010-08-27 23:42:05.754428433 -0400
295@@ -1,9 +1,15 @@
296 -----BEGIN RSA PRIVATE KEY-----
297-MIIBOwIBAAJBAM3kh1GdchGg0frzkosTHOv34povcqjWZUjRaa8bwEwT5WBgUUHp
298-q6a8E7sMXjJ82WyezQUkhHjbgJEu2Igrwu0CAwEAAQJBAJuwhFbF3NzRpBbEmnqJ
299-4GPa1UJMQMLFJF+04tqj/HxJcAIVhOJhGmmtYNw1yjz/ZsPnfJCMz4eFOtdjvGtf
300-peECIQDmFFg2WLvYo+2m9w9V7z4ZIkg7ixYkI/ObUUctfZkPOQIhAOUWnrvjFrAX
301-bIvYT/YR50+3ZDLEc51XxNgJnWqWYl1VAiEAnTOFWgyivFC1DgF8PvDp8u5TgCt2
302-A1d1GMgd490O+TECIC/WMl0/hTxOF9930vKqOGf//o9PUGkZq8QE9fcM4gtlAiAE
303-iOcFpnLjtWj57jrhuw214ucnB5rklkQQe+AtcARNkg==
304+MIICXgIBAAKBgQDjfU/CI3epOizSaVmgL07RUUyujfUXzM5YnINPC6O7KaK4HT4b
305+BPmpPuJh0OZ7uXwS2B+GyVO1BN3fJunAK95Kli7zI295banSThevL96LaESu3qPi
306+xDccBK1zS4X5g6z+t8FURy6W1DGWhZRp1lpjJASZiRkdVorRd6qH+zjNtwIDAQAB
307+AoGAUb0o91y/FjMs/72S0pes/lDz+JRRSGfyjKxQEgrgndNsADOhqRu0iTdrKDJj
308+XnlbN3ooecnFJfnFrvTQcJhSmlS30j6VrBw6LXpCBK3dvjYgJ9LOne7WK+dF1+vS
309+FMQtsP04C56Sxy6HJDpMyWJ6oS3Bu169ygG2AxKo+Fk+E6ECQQD38w/MzmrARz2Z
310+AGeEPDUnVZPYgtmXkmks95S0/2jSoLhmgpvJimzxwpYwVG/BG8dSDVuTDu5kp05D
311+3bZIp3EzAkEA6uAwJsCZPtHXlWU3wYZJsA697rUNjPaCQOIaZ/lnh5RUHTmUiw1h
312+Oj/VORqKB0kXqcDfawwLjZEvh1Xli+H5bQJBANTmhw2TvEPnp/OFTl1UGUvyBmXl
313+TRMB639qAu07VfVtfYi/4ya1zn/0VmOfTOoigQ5qW9Q1AOu6YNCTQl62L9MCQQDc
314+YfEsW2kvNYxYJHoVfuBjbuGuOnn1e1Oqd70ZND59S6NFLMMBWlORaVWzWACNZ3rp
315+kAzSj6HDeqgjD2jsQONdAkEAt7S1YHUn8F760bRn4AnAto2TVOYdArtTP/wYjd4o
316+9rJREO/d8AYkYJ96APLvF0SZ4n3t1pLwQRsKKN8ZGTmzLA==
317 -----END RSA PRIVATE KEY-----
318diff -Naur mysql-5.1.50.orig/mysql-test/std_data/server8k-cert.pem mysql-5.1.50/mysql-test/std_data/server8k-cert.pem
319--- mysql-5.1.50.orig/mysql-test/std_data/server8k-cert.pem 2010-08-03 13:55:08.000000000 -0400
320+++ mysql-5.1.50/mysql-test/std_data/server8k-cert.pem 2010-08-27 23:43:00.005366270 -0400
321@@ -1,51 +1,69 @@
322+Certificate:
323+ Data:
324+ Version: 3 (0x2)
325+ Serial Number: 5 (0x5)
326+ Signature Algorithm: sha1WithRSAEncryption
327+ Issuer: C=SE, ST=Uppsala, L=Uppsala, O=MySQL AB
328+ Validity
329+ Not Before: Feb 20 03:00:54 2010 GMT
330+ Not After : Sep 3 03:00:54 2030 GMT
331+ Subject: C=SE, ST=Uppsala, O=MySQL AB, CN=server
332+ Subject Public Key Info:
333+ Public Key Algorithm: rsaEncryption
334+ RSA Public Key: (1024 bit)
335+ Modulus (1024 bit):
336+ 00:c5:da:44:95:06:77:16:21:af:a0:c4:3c:e9:f8:
337+ 1d:2d:95:f9:63:90:8c:3f:86:ba:77:76:4a:52:4b:
338+ 6b:af:29:f5:1c:aa:d4:3f:3e:42:9f:6d:46:ba:86:
339+ 90:b1:2d:cc:db:c6:33:15:a3:f4:af:53:33:4f:a1:
340+ 56:d1:aa:3b:26:10:f7:64:b5:f9:bf:1b:b1:47:8e:
341+ cc:a6:d6:0d:aa:4a:77:e3:a3:63:9d:2a:dc:65:f4:
342+ 7f:91:17:38:2d:d6:cd:4e:8d:53:52:97:6e:87:fc:
343+ 64:60:a6:a1:00:ac:96:6c:e4:42:94:75:17:46:6f:
344+ 91:b5:dd:06:47:ed:05:e3:db
345+ Exponent: 65537 (0x10001)
346+ X509v3 extensions:
347+ X509v3 Basic Constraints:
348+ CA:FALSE
349+ X509v3 Subject Key Identifier:
350+ 6E:60:3F:29:13:60:99:ED:0C:F7:15:B5:DB:7B:1C:FB:6F:60:19:ED
351+ X509v3 Authority Key Identifier:
352+ keyid:B1:FB:7E:77:B5:40:8D:68:11:7E:D9:11:E5:C3:C6:DA:4D:AC:51:B0
353+ DirName:/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB
354+ serial:BE:58:AD:4C:1F:3D:25:95
355+
356+ Signature Algorithm: sha1WithRSAEncryption
357+ 63:2e:0f:07:14:06:cf:74:90:3d:37:42:f2:48:70:60:21:bc:
358+ 34:52:31:f1:87:70:d2:b2:fb:ff:13:38:dc:f0:5e:43:d7:ee:
359+ a7:c7:1f:ac:aa:d2:8c:4f:fa:3c:4c:73:f6:b6:c2:0c:a0:ea:
360+ a2:c9:e2:73:61:c3:2e:78:40:0f:2a:d3:63:50:9b:b8:f9:89:
361+ 40:ed:98:08:97:c3:07:24:17:34:b5:78:89:0a:bb:83:4c:e2:
362+ 5c:2e:13:d6:21:30:ad:30:48:b5:70:12:ff:4a:6f:42:f0:f8:
363+ 9f:b1:4b:bd:89:2b:f0:9d:e2:49:2b:35:69:18:1f:76:40:b4:
364+ 76:bd:cb:dd:27:2f:c0:c1:e2:33:3e:6e:df:68:54:19:92:8a:
365+ bb:13:9c:cf:d6:17:56:da:bf:0d:64:70:3a:45:b7:aa:5f:e3:
366+ f5:96:ae:34:f2:17:37:27:d0:4b:e8:30:4a:c0:02:42:e2:d2:
367+ 30:eb:eb:c7:d7:ec:d8:df:5c:43:58:e2:6f:b7:58:54:0d:c4:
368+ 01:71:2d:59:8f:44:c7:a1:6c:0b:41:28:fa:b7:63:a7:68:d3:
369+ 4f:c3:0f:17:9e:b2:32:50:e6:0b:87:3d:e2:39:47:c0:d8:0a:
370+ 3b:f6:af:50:68:0f:9d:ef:6e:34:0d:3a:07:94:f8:a4:d7:24:
371+ 86:32:d3:b4
372 -----BEGIN CERTIFICATE-----
373-MIIJFDCCBPwCAQEwDQYJKoZIhvcNAQEEBQAwTjELMAkGA1UEBhMCU0UxEDAOBgNV
374-BAgTB1VwcHNhbGExETAPBgNVBAoTCE15U1FMIEFCMQ0wCwYDVQQLEwRUZXN0MQsw
375-CQYDVQQDEwJDQTAeFw0xMDA3MjgxNDA3MjhaFw0xODEwMTQxNDA3MjhaMFIxCzAJ
376-BgNVBAYTAlNFMRAwDgYDVQQIEwdVcHBzYWxhMREwDwYDVQQKEwhNeVNRTCBBQjEN
377-MAsGA1UECxMEVGVzdDEPMA0GA1UEAxMGc2VydmVyMIIEIjANBgkqhkiG9w0BAQEF
378-AAOCBA8AMIIECgKCBAEA6h3v1OWb9I9U/Z8diBu/xYGS8NCTD3ZESboHxVI2qSEC
379-PgxNNcG8Lh0ktQdgYcOe64MnDTZX0Bibm47hoDldrAlTSffFxQhylqBBoXxDF+Lr
380-hXIqCz7K0PsK+bYusL9ezJ7PETDnCT7oy95q4GXbKsutbNsm9if4ZE41gs2KnoU2
381-DA7kvMmkKojrMIL4+BqTXA20LLo0iSbgvUTvpSJw4u96BeyzMNnxK2wP5vvTtUo5
382-hACbfU87YjaSKs+q2VXCzfyYGZk1L1xk5GUI0bP+jutf1dDzNttW2/q2Nf5rxx09
383-Gh/GwmOnEk1O7cOZ8VQCsOHirIM39NuSARsY6Y3G5XM4k2W4nxyR/RtdG9bvs/33
384-aGsZ5V5yp7WSs8s9HHwaCPSsUiLKckQ7uA0TTRgbeweMrrLKovG57jsbBBB8pQD4
385-PRd31qgxCdstWXHiWwRyI8vOLWENPXPFqA/rJwwqNdWTogy38aqVXxGYR8PIwjA2
386-OaIwFjwGZcsPNLqw6bgAN8O2UBqZHWiMF8mi7brvioDvAIufZuqa2SqT/At45H83
387-psQ6R4FsxZt6SAK7EsdPo8OYTrY1i4iPZd/eKhnEu2srEZgsKRwY5H1mvDH5fWCc
388-HSFu07sWmlmK6Or65Fsa0IaKLJiQDVVETd6xrI0wkM4AOcbKDrS7aywJ426dopbs
389-+LFdt4N0cdII4gBgJAfLuuA2yrDXRq4P6cgpVMy0R+0dEYE8zzm8zf1a+Ud273LS
390-9+LB+LJKwqbW8nOPBoiekimIKfJYoOA4+C/mAjsYl1sVjjEhXJAs9S9L2UvnUk1P
391-sZi4UKHI6eAIEl7VM1sQ4GbdZ0px2dF2Ax7pGkhD+DLpYyYkCprharKZdmuUNLUd
392-NhXxi/HSEiE+Uy+o8RIzmH7LuROl/ZgnfHjJEiBLt2qPvwrwYd4c3XuXWs4YsWfV
393-JTt8Mx2ihgVcdGy9//shCSmgJwR1oWrhgC10AEL2fKeRnYUal1i+IxFPp7nb8uwx
394-UADgR0cY4A3qR/JP489QFIcxBTVs65De+Bq3ecnujk6yeGpD9iptonq4Y8uNZMc1
395-kOE7GiFGwR4EufT5SEMh+tUkjth2r+842vmZZuxrVQaohDiATmIJA07W51zKH+nQ
396-uw4qVKnAhPaDLCLc7YMIH9JcmkeQX0nf8/S2O2WYDH8glVDi5hfW08tCmV647vRY
397-nTIywUTO0lFpz7M+VyMNaJ6yXU6biBV5hLAI8C5ldr/SWI789W2+ebBaJ9gfK+PT
398-trohFSK37GcoSH4V6qSLJHCBASEsiddqHIHMLJZRYD+B6J3tLhjVUM43u+MEGbFT
399-d33ZDke/WzLTExWkaOv36e67gDBmgDuj9yroq3wGfwIDAQABMA0GCSqGSIb3DQEB
400-BAUAA4IEAQCc9RBhRbuWlmRZPZkqIdi5/+enyjoMmOa6ryJPxFSP8D2jrlHgQsk1
401-+GsJmPFT3rwWfoGAQu/aeSX4sp8OhKVJtqNA6MJrGYnZIMolgYa1wZPbkjJsdEfi
402-UsZdIB0n2+KA0xwEdGPdkGCfNPBtOg557DkcyEvsIZ9ELp4Pp2XzWRhyFGasJZc4
403-YwgD/3K2rpOPZoMkBKeKqV19j41OfLKGBVyuaqzitbu9+KT4RU1ibr2a+UuFCwdT
404-oqyN7bfWXjcjXOMkxCsOmLfKmqQxs7TEOVrYPTdYjamDxLy/e5g5FgoCxGY8iil0
405-+YFLZyH6eEx/Os9DlG/M3O1MeRD9U97CdsphbDVZIDyWw5xeX8qQHJe0KSprAgiG
406-TLhTZHeyrKujQCQS1oFFmNy4gSqXt0j1/6/9T80j6HeyjiiYEaEQK9YLTAjRoA7W
407-VN8wtHI5F3RlNOVQEJks/bjdlpLL3VhaWtfewGh/mXRGcow84cgcsejMexmhreHm
408-JfTUl9+X1IFFxGq2/606A9ROQ7kN/s4rXu7/TiMODXI/kZijoWd2SCc7Z0YWoNo7
409-IRKkmZtrsflJbObEuK2Jk59uqzSxyQOBId8qtbPo8qJJyHGV5GCp34g4x67BxJBo
410-h1iyVMamBAS5Ip1ejghuROrB8Hit8NhAZApXju62btJeXLX+mQayXb/wC/IXNJJD
411-83tXiLfZgs6GzLAq7+KW/64sZSvj87CPiNtxkvjchAvyr+fhbBXCrf4rlOjJE6SH
412-Je2/Jon7uqijncARGLBeYUT0Aa6k1slpXuSKxDNt7EIkP21kDZ5/OJ0Y1u587KVB
413-dEhuDgNf2/8ij7gAQBwBoZMe1DrwddrxgLLBlyHpAZetNYFZNT+Cs/OlpqI0Jm59
414-kK9pX0BY4AGOd23XM3K/uLawdmf67kkftim7aVaqXFHPiWsJVtlzmidKvNSmbmZe
415-dOmMXp6PBoqcdusFVUS7vjd3KAes5wUX/CaTyOOPRu0LMSnpwEnaL76IC9x4Jd6d
416-7QqY/OFTjpPH8nP57LwouiT6MgSUCWGaOkPuBJ9w9sENSbbINpgJJ42iAe2kE+R7
417-qEIvf/2ETCTseeQUqm2nWiSPLkNagEh6kojmEoKrGyrv3YjrSXSOY1a70tDVy43+
418-ueQDQzNZm3Q7inpke2ZKvWyY0LQmLzP2te+tnNBcdLyKJx7emPRTuMUlEdK7cLbt
419-V3Sy9IKtyAXqqd66fPFj4NhJygyncj8M6CSqhG5L0GhDbkA8UJ8yK/gfKm3h5xe2
420-utULK5VMtAhQt6cVahO59A9t/OI17y45bmlIgdlEQISzVFe9ZbIUJW44zBfPx74k
421-/w8pMRr8gEuRqpL2WdJiKGG6lhMHLVFo
422+MIIDIjCCAgqgAwIBAgIBBTANBgkqhkiG9w0BAQUFADBEMQswCQYDVQQGEwJTRTEQ
423+MA4GA1UECBMHVXBwc2FsYTEQMA4GA1UEBxMHVXBwc2FsYTERMA8GA1UEChMITXlT
424+UUwgQUIwHhcNMTAwMjIwMDMwMDU0WhcNMzAwOTAzMDMwMDU0WjBDMQswCQYDVQQG
425+EwJTRTEQMA4GA1UECBMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwgQUIxDzANBgNV
426+BAMTBnNlcnZlcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxdpElQZ3FiGv
427+oMQ86fgdLZX5Y5CMP4a6d3ZKUktrryn1HKrUPz5Cn21GuoaQsS3M28YzFaP0r1Mz
428+T6FW0ao7JhD3ZLX5vxuxR47MptYNqkp346NjnSrcZfR/kRc4LdbNTo1TUpduh/xk
429+YKahAKyWbORClHUXRm+Rtd0GR+0F49sCAwEAAaOBozCBoDAJBgNVHRMEAjAAMB0G
430+A1UdDgQWBBRuYD8pE2CZ7Qz3FbXbexz7b2AZ7TB0BgNVHSMEbTBrgBSx+353tUCN
431+aBF+2RHlw8baTaxRsKFIpEYwRDELMAkGA1UEBhMCU0UxEDAOBgNVBAgTB1VwcHNh
432+bGExEDAOBgNVBAcTB1VwcHNhbGExETAPBgNVBAoTCE15U1FMIEFCggkAvlitTB89
433+JZUwDQYJKoZIhvcNAQEFBQADggEBAGMuDwcUBs90kD03QvJIcGAhvDRSMfGHcNKy
434++/8TONzwXkPX7qfHH6yq0oxP+jxMc/a2wgyg6qLJ4nNhwy54QA8q02NQm7j5iUDt
435+mAiXwwckFzS1eIkKu4NM4lwuE9YhMK0wSLVwEv9Kb0Lw+J+xS72JK/Cd4kkrNWkY
436+H3ZAtHa9y90nL8DB4jM+bt9oVBmSirsTnM/WF1bavw1kcDpFt6pf4/WWrjTyFzcn
437+0EvoMErAAkLi0jDr68fX7NjfXENY4m+3WFQNxAFxLVmPRMehbAtBKPq3Y6do00/D
438+DxeesjJQ5guHPeI5R8DYCjv2r1BoD53vbjQNOgeU+KTXJIYy07Q=
439 -----END CERTIFICATE-----
440diff -Naur mysql-5.1.50.orig/mysql-test/std_data/server8k-key.pem mysql-5.1.50/mysql-test/std_data/server8k-key.pem
441--- mysql-5.1.50.orig/mysql-test/std_data/server8k-key.pem 2010-08-03 13:55:08.000000000 -0400
442+++ mysql-5.1.50/mysql-test/std_data/server8k-key.pem 2010-08-27 23:43:10.165365998 -0400
443@@ -1,99 +1,15 @@
444 -----BEGIN RSA PRIVATE KEY-----
445-MIISKQIBAAKCBAEA6h3v1OWb9I9U/Z8diBu/xYGS8NCTD3ZESboHxVI2qSECPgxN
446-NcG8Lh0ktQdgYcOe64MnDTZX0Bibm47hoDldrAlTSffFxQhylqBBoXxDF+LrhXIq
447-Cz7K0PsK+bYusL9ezJ7PETDnCT7oy95q4GXbKsutbNsm9if4ZE41gs2KnoU2DA7k
448-vMmkKojrMIL4+BqTXA20LLo0iSbgvUTvpSJw4u96BeyzMNnxK2wP5vvTtUo5hACb
449-fU87YjaSKs+q2VXCzfyYGZk1L1xk5GUI0bP+jutf1dDzNttW2/q2Nf5rxx09Gh/G
450-wmOnEk1O7cOZ8VQCsOHirIM39NuSARsY6Y3G5XM4k2W4nxyR/RtdG9bvs/33aGsZ
451-5V5yp7WSs8s9HHwaCPSsUiLKckQ7uA0TTRgbeweMrrLKovG57jsbBBB8pQD4PRd3
452-1qgxCdstWXHiWwRyI8vOLWENPXPFqA/rJwwqNdWTogy38aqVXxGYR8PIwjA2OaIw
453-FjwGZcsPNLqw6bgAN8O2UBqZHWiMF8mi7brvioDvAIufZuqa2SqT/At45H83psQ6
454-R4FsxZt6SAK7EsdPo8OYTrY1i4iPZd/eKhnEu2srEZgsKRwY5H1mvDH5fWCcHSFu
455-07sWmlmK6Or65Fsa0IaKLJiQDVVETd6xrI0wkM4AOcbKDrS7aywJ426dopbs+LFd
456-t4N0cdII4gBgJAfLuuA2yrDXRq4P6cgpVMy0R+0dEYE8zzm8zf1a+Ud273LS9+LB
457-+LJKwqbW8nOPBoiekimIKfJYoOA4+C/mAjsYl1sVjjEhXJAs9S9L2UvnUk1PsZi4
458-UKHI6eAIEl7VM1sQ4GbdZ0px2dF2Ax7pGkhD+DLpYyYkCprharKZdmuUNLUdNhXx
459-i/HSEiE+Uy+o8RIzmH7LuROl/ZgnfHjJEiBLt2qPvwrwYd4c3XuXWs4YsWfVJTt8
460-Mx2ihgVcdGy9//shCSmgJwR1oWrhgC10AEL2fKeRnYUal1i+IxFPp7nb8uwxUADg
461-R0cY4A3qR/JP489QFIcxBTVs65De+Bq3ecnujk6yeGpD9iptonq4Y8uNZMc1kOE7
462-GiFGwR4EufT5SEMh+tUkjth2r+842vmZZuxrVQaohDiATmIJA07W51zKH+nQuw4q
463-VKnAhPaDLCLc7YMIH9JcmkeQX0nf8/S2O2WYDH8glVDi5hfW08tCmV647vRYnTIy
464-wUTO0lFpz7M+VyMNaJ6yXU6biBV5hLAI8C5ldr/SWI789W2+ebBaJ9gfK+PTtroh
465-FSK37GcoSH4V6qSLJHCBASEsiddqHIHMLJZRYD+B6J3tLhjVUM43u+MEGbFTd33Z
466-Dke/WzLTExWkaOv36e67gDBmgDuj9yroq3wGfwIDAQABAoIEAQCSt6YoZqigz/50
467-XvYT6Uf6T6S1lBDFXNmY1qOuDkLBJTWRiwYMDViQEaWCaZgGTKDYeT3M8uR/Phyu
468-lRFi5vCEMufmcAeZ3hxptw7KU+R8ILJ207/zgit6YglTys9h5txTIack39+6FJmx
469-wbZ64HpETJZnpMO6+fuZaMXyLjuT8mmXjvHcOgXOvjWeFkZOveDhjJkAesUXuqyX
470-EI+ajoXuQiPXeKonkD2qd7NTjzfy4gw/ZF4NXs0ZVJeviqtIPo2xp33udOw2vRFh
471-bMvlF4cNLAbIKYVyOG0ruOfd2I7Unsc/CvD1u5vlRVuUd8OO0JZLIZR7hlRX+A58
472-8O1g2H/wJZAsF1BnLnFzDGYCX2WjCCK3Zn85FkKGRa0lTdYDduad/C/N3Y2/pHFE
473-e7U/2D7IkEei59tD2HcsDBB3MJnckkn/hyiL9qWcxqWZ61vurE+XjU6tc6fnfhk9
474-pJQ6yU3epPU7Vfsk0UGA7bbgKpsyzyH8Zl76YC2mN2ZVJjZekfhY+ibT9odEPdOl
475-yLB5iXA6/WhKkDWaOqZGOH+7MblWgT9wHINlcn+nKzOr00JHl26ac6aMlXXi9vbe
476-4jgJbFK1HYlFIndyX/BdqRTsFemDoDrVqrEYsaONoVYDd9c5qrqYOeh34DhOksQW
477-hNwWBfmMlfzgOGtCYhMeK+AajqTtUbMYQA6qp47KJd/Oa5Dvi3ZCpvZh3Ll5iIau
478-rqCtmojsWCqmpWSu7P+Wu4+O3XkUMPdQUuQ5rJFESEBB3yEJcxqk/RItTcKNElNC
479-PASrPrMD9cli7S/pJ+frbhu1Gna1ArXzXQE9pMozPaBpjCig7+15R0lL3pmOKO6e
480-WK3dgSwrnW6TQdLPlSD4lbRoiIdTHVBczztDeUqVvFiV3/cuaEi1nvaVdAYLqjuL
481-ogK4HwE/FQ54S0ijAsP52n25usoH6OTU3bSd/7NTp0vZCy3yf10x7HUdsh2DvhRO
482-3+TSK5t0yz0Nt7hNwcI6pLmWUIYcZgpFc/WsiiGscTfhy8rh3kRHI8ylGq53KNF+
483-yCVmjqnBRWs91ArxmeF1ctX2t3w5p7gf65hJWqoX/2DiSi5FBsr6HLxa5sUi4wRZ
484-136aCNt5Wu7w+AzPDbQW6qKUGSyfHJAw4JZasZcaZLise5IWb1ks0DtFbWWdT3ux
485-8r2AM7IO1WopnekrYCnx/aBvBAv4NjWozVA517ztVttPERt3AGb4nm387nYt5R2U
486-NO2GBWcDyT8JQLKmffE1AkWolCR1GsvcNLQfLCbnNppgsnsLE/viTG4mq1wjnd8O
487-2Q8nH1SVTuyGFREMp/zsiAEaGfdd0hI2r1J7OdNPBBCtmhITsy9ZYHqm5vrGvy3s
488-vi2GuB2RAoICAQD/oWUsg4eTJxHifTJLz/tVSTXnw7DhfbFVa1K1rUV63/MRQAFW
489-pabN4T6Yfp3CpdRkljCA8KPJZj7euwhm4OEg1ulpOouA+cfWlE9RFE8wyOK5SYwM
490-k+nk31P9MUC866pZg/ghzBGDub91OW1+ZGEtqnLI/n/LhiAIWt0hJvgZclTc1cAL
491-xffHVlFwoSyNl/nc3ueZCC95nOLst2XcuxZLLbOFtZCmDYsp49q/Jn6EFjn4Ge2o
492-qp38z6eZgDMP1F4lb9nDqXPHfUSt2jxKlmpfXS+IPKdba67+EjhbtmUYzaR4EoPI
493-zh+o6SrVWT6Yve7KGiYv06fuRz1m/lLQO/Arbd9ntSjgn+ZEXGOkbhnHUX3DJ4ny
494-/6XEGB9NLQjern4uNTn0AaV+uvhncapFMaIBnVfq0Cw8eog0136PBYRaVX7T44j5
495-HwIyGXWtYGA/SzDEQoksD0Y/T61BEGnLZaKeavNd82WwFvcYHZtE0J4aQGjCEE7N
496-+nijzCy+j5ETmme9KJvQHpEyXP3N4RBko1eWvyTwFZDdIXtoa6TTEI51lm+FXJ/b
497-Y+BzMr6KRo29FB+7//1ptUoMvn5hzL0PwOv2ZSTQuoG5hLDEbxWXLNhd1VHcfznF
498-3EZHwfD2F8aGQ3kz+fkMTNfK955KorDrmLgvmV9eZZ5yQxGZrs5H5YfKpwKCAgEA
499-6nSUbzfSdVFUH89NM5FmEJgkD06vqCgHl2mpyF+VmDGcay4K06eA4QbRO5kns13+
500-n6PcBl/YVW/rNE8iFi+WxfqUpAjdR1HlShvTuTRVqtFTfuN8XhbYU6VMjKyuE0kd
501-LKe3KRdwubjVNhXRZLBknU+3Y/4hnIR7mcE3/M5Zv5hjb7XnwWg/SzxV9WojCKiu
502-vQ7cXhH5/o7EuKcl1d6vueGhWsRylCG9RimwgViR2H7zD9kpkOc0nNym9cSpb0Gv
503-Lui4cf/fVwIt2HfNEGBjbM/83e2MH6b8Xp1fFAy0aXCdRtOo4LVOzJVAxn5dERMX
504-4JJ4d5cSFbssDN1bITOKzuytfBqRIQGNkOfizgQNWUiaFI0MhEN/icymjm1ybOIh
505-Gc9tzqKI4wP2X9g+u3+Oof1QaBcZ4UbZEU9ITN87Pa6XVJmpNx7A81BafWoEPFeE
506-ahoO4XDwlHZazDuSlOseEShxXcVwaIiqySy7OBEPBVuYdEd2Qw/z3JTx9Kw8MKnf
507-hu+ar5tz5dPnJIsvLeYCcJDe/K6loiZuHTtPbWEy9p6It7qubQNPBvTSBN5eVDKc
508-Q2bTQNCx8SAAA9C5gJiwWoQKsXJzbRFRY77P9JjuGpua3YJ2nYBHEJmF+fp1R33c
509-uHIyMphPMkKC4GC3/43kkMr6tck8kZbXGSYsLsBr2GkCggIBAJvvrjILQianzKcm
510-zAmnI6AQ+ssYesvyyrxaraeZvSqJdlLtgmOCxVANuQt5IW9djUSWwZvGL4Np1aw0
511-15k6UNqhftzsE7FnrVneOsww4WXXBUcV8FKz4Bf3i9qFswILmGzmrfSf8YczRfGS
512-SJKzVPxwX3jwlrBmbx/pnb7dcLbFIbNcyLvl1ZJJu4BDMVRmgssTRp/5eExtQZg4
513-//A4SA8wH7TO3yAMXvn8vrGgH8kfbdlEp88d1SYk3g4rP/rGB3A63NIYikIEzmJn
514-ICQ3wUfPJnGq3kRMWgEuyCZaCy2oNE3yrWVPJ8z3/2MJ/79ZDVNHxEeki2o1FuW+
515-+nGAPq+fZIp03iy4HdVRro7dgugtc9QaSHJtNId8V4vSjviX5Oz3FxUb9AJst58S
516-nVV8Q2FMxBa/SlzSOkhRtCg2q1gXkzhaMnIVUleRZFGQ2uWBToxKMjcoUifIyN1J
517-z999bkfI4hBLq5pRSAXz+YVu5SMKa10GaawIwJLat+i+1zboF6QyI2o/Wz8nrsNq
518-KX/ajFGu5C94WFgsVoWKNI90KBLe48Ssje9c68waBlV/WHMg1YLvU3yqVDOV+K5c
519-IHB9tPMnG+AgBYZPxSzuvnLrrkj/GeKx0WI7TrvzOLRGKJo6irMEJ8IzFegASRUq
520-TVZKYQDYRG7m+lKlSxU+pyMAh2c9AoICAE4kavCip1eIssQjYLTGSkFPo/0iGbOv
521-G9CgXAE3snFWX67tWphupKrbjdMSWcQTmPD2OTg6q6zWL4twsIi6dcMooHAHsFC7
522-//LyUV/SDJdxSyXohiQJ8zH1zwy35RDydnHSuF5OvLh53T44iWDI1dAEqLgAFI3J
523-LjTxzEpLMGiGTuYFt+ejai0WQAQayvBw4ESM9m+4CB2K0hBFTXv5y5HlnNTW0uWC
524-VUZUUMrbjUieDz8B/zOXi9aYSGFzmZFGUDAPSqJcSMEELemPDF7f8WNr8vi42tIV
525-4tlaFD1nep4F9bWMiCXU6B2RxVQi+7vcJEIqL1KUnGd3ydfD00K+ng4Xnj7Vz/cz
526-QE7CqrpFaXmPlCMzW6+dm51/AyhHXDLkL2od05hiXcNkJ7KMLWRqwExHVIxM3shR
527-x7lYNl3ArUsCrNd6m4aOjnrKFk7kjeLavHxskPccoGKrC9o0JMfTkWLgmuBJFQ0S
528-N/HzIbcvIFWF0Ms4ojb50yp6ziXhXfJOO/0KUQEki71XIhvw89mVZszDzD5lqzjf
529-HCZMBU4MbmL6NdEevFIDH0zPPkx3HPNtJt3kIJbit9wI8VhUMe+ldGnGxpWb8tKw
530-SfM3vrHkYr+lizk26XfXMFhdAuVtT7dzQKSNEyP/1a2Hs307Xzgiv8JulJ8QIkrX
531-/nsYWPOAGLG5AoICABmdW9Ppkvuhb1AEcjTWb+XCyopoBc6vit/uQWD9uO+CeX7a
532-cfzq+iH01CAjyVMc4E1JDc5Lpi106U+GRGcAAaPJB2Sp5NznoxaOVrb71blu4Q4x
533-bNjtKM/P/DXpO+yJYoOPdKtaSDhtnfNDM7H/jztJ3XIrOltKA7CcRDohbBWIx8Q0
534-0uEpvfFpZZBco3yVmjP0RLgIVYn/ZDj9wGhSvFWIJ5vv6GXmtDrcHGMLxcfv7t76
535-UVcMW/Yy4mYJRCzGOrWagyVijJ6MTVNciqadWcH1KcbB3EGoMFYMn61or2qJABPM
536-xz89IlhnROU1Re3X/QRx5t86cw6oa+FqrWMOhSs31I0dNWSuS/xDympG27YIYSDd
537-mv5seT78GjFmMJC5pPOLoXsbTPB0HpsX2/UL/w/eRAfilTOef/Cf9VE5MP/C2YR7
538-NBxUU7/+21D6WvdtBTcZbrXWGroAo8zPP+PwX0+c6WoAvqDJvCPndp8xZhSgEJN/
539-0kScptezi8n3ZHI95EA9U5mAHxHz0IhDDVzWw/z1f1SBPxKVX3+By3zaa3lrD2ch
540-cHq7nBkX72veEevnHUY8Z2rHE2G2jdmRfOtwm4sjL0VBV9fRRoxzJWRduKyeOtDL
541-EhhBhUoTrT48UnfW9hxnbNLB9P/hh+UJu9HrS2uAwHoGE1+8gcyundupGDBn
542+MIICXgIBAAKBgQDF2kSVBncWIa+gxDzp+B0tlfljkIw/hrp3dkpSS2uvKfUcqtQ/
543+PkKfbUa6hpCxLczbxjMVo/SvUzNPoVbRqjsmEPdktfm/G7FHjsym1g2qSnfjo2Od
544+Ktxl9H+RFzgt1s1OjVNSl26H/GRgpqEArJZs5EKUdRdGb5G13QZH7QXj2wIDAQAB
545+AoGBAJLCjh7Q9eLnx+QDzH9s+Q/IcH4nSbERmh1lFEopAc6j29qQ6PGkmDy0DUPs
546+70VOCOh5A4mo3aZzm9sUfVb24/nRtmyTP/AtMuIVGCsUqzI28dJRGvRlY0aSQG/C
547+ILqMP69kiMNGBvuyEIiJhisOmMvDFEp7HrrXHJM9qcc217DpAkEA4nzJ9yyy2e4O
548+r6/D711hdfcU/F+ktXw+pL77kSSdTABUap92Uv2RL36UA4q5h8RNvq/GrzMNm6Ye
549+u2IMvBCiTQJBAN+iRbiMJCSitTg5YVMluVbT87co7jbTqk7LN1ujyIFEklm4xlHG
550+DLJNgEoDR7QJtAkL++FyogC4zsQsey5voscCQQCp54trTbDuI9QIoAaQrrDKWgz4
551+NpfNPeOQm2UFQT5vIWAyjGWrZGViB8bp0UvVOcJI5nxaOiZfOYOcdrWu75uRAkAn
552+67zMc9/j1lPJRJz2Dc7nDBD+ikTz7pcBV897AWLCiK4jbBOi91q+3YzgKXO8VNsZ
553+nlUJasA2psbqSBJ5OJ5zAkEA2UxoMju54hASjT54Z92IzraVw4Vo8CYwOcw5fr7z
554++m5xg1mmWdLBclmZ+WjARzDuTHIW6u/WCxNGg42AykWzfw==
555 -----END RSA PRIVATE KEY-----
0556
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-install-test.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-install-test.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-install-test.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,33 @@
1Improve the documentation that will be installed in the mysql-test RPM.
2
3
4diff -Naur mysql-5.1.43.orig/mysql-test/README mysql-5.1.43/mysql-test/README
5--- mysql-5.1.43.orig/mysql-test/README 2010-01-15 12:14:43.000000000 -0500
6+++ mysql-5.1.43/mysql-test/README 2010-02-13 21:18:06.000000000 -0500
7@@ -6,6 +6,16 @@
8 actually have a co-existing MySQL installation. The tests will not
9 conflict with it.
10
11+For use in Red Hat distributions, you should run the script as user mysql,
12+so the best bet is something like
13+ cd /usr/share/mysql-test
14+ sudo -u mysql ./mysql-test-run
15+This will use the installed mysql executables, but will run a private copy
16+of the server process (using data files within /usr/share/mysql-test),
17+so you need not start the mysqld service beforehand.
18+To clean up afterwards, remove the created "var" subdirectory, eg
19+ sudo -u mysql rm -rf /usr/share/mysql-test/var
20+
21 All tests must pass. If one or more of them fail on your system, please
22 read the following manual section for instructions on how to report the
23 problem:
24@@ -25,7 +35,8 @@
25
26 With no test cases named on the command line, mysql-test-run falls back
27 to the normal "non-extern" behavior. The reason for this is that some
28-tests cannot run with an external server.
29+tests cannot run with an external server (because they need to control the
30+options with which the server is started).
31
32
33 You can create your own test cases. To create a test case, create a new
034
=== added file 'Percona-Server/SPECIFIC-ULN/mysql-strmov.patch'
--- Percona-Server/SPECIFIC-ULN/mysql-strmov.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql-strmov.patch 2012-12-17 04:11:35 +0000
@@ -0,0 +1,32 @@
1Remove overly optimistic definition of strmov() as stpcpy().
2
3mysql uses this macro with overlapping source and destination strings,
4which is verboten per spec, and fails on some Red Hat platforms.
5Deleting the definition is sufficient to make it fall back to a
6byte-at-a-time copy loop, which should consistently give the
7expected behavior.
8
9Note: the particular case that prompted this patch is reported and fixed
10at http://bugs.mysql.com/bug.php?id=48864. However, my faith in upstream's
11ability to detect this type of error is low, and I also see little evidence
12of any real performance gain from optimizing these calls. So I'm keeping
13this patch.
14
15
16diff -Naur mysql-5.1.37.orig/include/m_string.h mysql-5.1.37/include/m_string.h
17--- mysql-5.1.37.orig/include/m_string.h 2009-07-13 19:08:50.000000000 -0400
18+++ mysql-5.1.37/include/m_string.h 2009-08-31 21:49:49.000000000 -0400
19@@ -81,13 +81,6 @@
20 extern void *(*my_str_malloc)(size_t);
21 extern void (*my_str_free)(void *);
22
23-#if defined(HAVE_STPCPY)
24-#define strmov(A,B) stpcpy((A),(B))
25-#ifndef stpcpy
26-extern char *stpcpy(char *, const char *); /* For AIX with gcc 2.95.3 */
27-#endif
28-#endif
29-
30 /* Declared in int2str() */
31 extern char NEAR _dig_vec_upper[];
32 extern char NEAR _dig_vec_lower[];
033
=== added file 'Percona-Server/SPECIFIC-ULN/mysql.init'
--- Percona-Server/SPECIFIC-ULN/mysql.init 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql.init 2012-12-17 04:11:35 +0000
@@ -0,0 +1,209 @@
1#!/bin/sh
2#
3# mysqld This shell script takes care of starting and stopping
4# the MySQL subsystem (mysqld).
5#
6# chkconfig: - 64 36
7# description: MySQL database server.
8# processname: mysqld
9# config: /etc/my.cnf
10# pidfile: /var/run/mysqld/mysqld.pid
11
12# Source function library.
13. /etc/rc.d/init.d/functions
14
15# Source networking configuration.
16. /etc/sysconfig/network
17
18
19exec="/usr/bin/mysqld_safe"
20prog="mysqld"
21
22# Set timeouts here so they can be overridden from /etc/sysconfig/mysqld
23STARTTIMEOUT=120
24STOPTIMEOUT=60
25
26[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
27
28lockfile=/var/lock/subsys/$prog
29
30
31# extract value of a MySQL option from config files
32# Usage: get_mysql_option SECTION VARNAME DEFAULT
33# result is returned in $result
34# We use my_print_defaults which prints all options from multiple files,
35# with the more specific ones later; hence take the last match.
36get_mysql_option(){
37 result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
38 if [ -z "$result" ]; then
39 # not found, use default
40 result="$3"
41 fi
42}
43
44get_mysql_option mysqld datadir "/var/lib/mysql"
45datadir="$result"
46get_mysql_option mysqld socket "$datadir/mysql.sock"
47socketfile="$result"
48get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
49errlogfile="$result"
50get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
51mypidfile="$result"
52
53
54start(){
55 [ -x $exec ] || exit 5
56 # check to see if it's already running
57 RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
58 if [ $? = 0 ]; then
59 # already running, do nothing
60 action $"Starting $prog: " /bin/true
61 ret=0
62 elif echo "$RESPONSE" | grep -q "Access denied for user"
63 then
64 # already running, do nothing
65 action $"Starting $prog: " /bin/true
66 ret=0
67 else
68 # prepare for start
69 touch "$errlogfile"
70 chown mysql:mysql "$errlogfile"
71 chmod 0640 "$errlogfile"
72 [ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
73 if [ ! -d "$datadir/mysql" ] ; then
74 # First, make sure $datadir is there with correct permissions
75 if [ ! -e "$datadir" -a ! -h "$datadir" ]
76 then
77 mkdir -p "$datadir" || exit 1
78 fi
79 chown mysql:mysql "$datadir"
80 chmod 0755 "$datadir"
81 [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
82 # Now create the database
83 action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
84 ret=$?
85 chown -R mysql:mysql "$datadir"
86 if [ $ret -ne 0 ] ; then
87 return $ret
88 fi
89 fi
90 chown mysql:mysql "$datadir"
91 chmod 0755 "$datadir"
92 # Pass all the options determined above, to ensure consistent behavior.
93 # In many cases mysqld_safe would arrive at the same conclusions anyway
94 # but we need to be sure. (An exception is that we don't force the
95 # log-error setting, since this script doesn't really depend on that,
96 # and some users might prefer to configure logging to syslog.)
97 # Note: set --basedir to prevent probes that might trigger SELinux
98 # alarms, per bug #547485
99 $exec --datadir="$datadir" --socket="$socketfile" \
100 --pid-file="$mypidfile" \
101 --basedir=/usr --user=mysql >/dev/null 2>&1 &
102 safe_pid=$!
103 # Spin for a maximum of N seconds waiting for the server to come up;
104 # exit the loop immediately if mysqld_safe process disappears.
105 # Rather than assuming we know a valid username, accept an "access
106 # denied" response as meaning the server is functioning.
107 ret=0
108 TIMEOUT="$STARTTIMEOUT"
109 while [ $TIMEOUT -gt 0 ]; do
110 RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
111 echo "$RESPONSE" | grep -q "Access denied for user" && break
112 if ! /bin/kill -0 $safe_pid 2>/dev/null; then
113 echo "MySQL Daemon failed to start."
114 ret=1
115 break
116 fi
117 sleep 1
118 let TIMEOUT=${TIMEOUT}-1
119 done
120 if [ $TIMEOUT -eq 0 ]; then
121 echo "Timeout error occurred trying to start MySQL Daemon."
122 ret=1
123 fi
124 if [ $ret -eq 0 ]; then
125 action $"Starting $prog: " /bin/true
126 touch $lockfile
127 else
128 action $"Starting $prog: " /bin/false
129 fi
130 fi
131 return $ret
132}
133
134stop(){
135 if [ ! -f "$mypidfile" ]; then
136 # not running; per LSB standards this is "ok"
137 action $"Stopping $prog: " /bin/true
138 return 0
139 fi
140 MYSQLPID=`cat "$mypidfile"`
141 if [ -n "$MYSQLPID" ]; then
142 /bin/kill "$MYSQLPID" >/dev/null 2>&1
143 ret=$?
144 if [ $ret -eq 0 ]; then
145 TIMEOUT="$STOPTIMEOUT"
146 while [ $TIMEOUT -gt 0 ]; do
147 /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
148 sleep 1
149 let TIMEOUT=${TIMEOUT}-1
150 done
151 if [ $TIMEOUT -eq 0 ]; then
152 echo "Timeout error occurred trying to stop MySQL Daemon."
153 ret=1
154 action $"Stopping $prog: " /bin/false
155 else
156 rm -f $lockfile
157 rm -f "$socketfile"
158 action $"Stopping $prog: " /bin/true
159 fi
160 else
161 action $"Stopping $prog: " /bin/false
162 fi
163 else
164 # failed to read pidfile, probably insufficient permissions
165 action $"Stopping $prog: " /bin/false
166 ret=4
167 fi
168 return $ret
169}
170
171restart(){
172 stop
173 start
174}
175
176condrestart(){
177 [ -e $lockfile ] && restart || :
178}
179
180
181# See how we were called.
182case "$1" in
183 start)
184 start
185 ;;
186 stop)
187 stop
188 ;;
189 status)
190 status -p "$mypidfile" $prog
191 ;;
192 restart)
193 restart
194 ;;
195 condrestart|try-restart)
196 condrestart
197 ;;
198 reload)
199 exit 3
200 ;;
201 force-reload)
202 restart
203 ;;
204 *)
205 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
206 exit 2
207esac
208
209exit $?
0210
=== added file 'Percona-Server/SPECIFIC-ULN/mysql.spec.sh'
--- Percona-Server/SPECIFIC-ULN/mysql.spec.sh 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/mysql.spec.sh 2012-12-17 04:11:35 +0000
@@ -0,0 +1,1959 @@
1#
2# This file was modified by Oracle in 2011 and later.
3# Details of the modifications are described in the "changelog" section.
4#
5# Modifications copyright (c) 2011, 2012, Oracle and/or its
6# affiliates. All rights reserved.
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; version 2 of the License.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; see the file COPYING. If not, write to the
19# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
20# MA 02110-1301 USA.
21
22##############################################################################
23# Some common macro definitions
24##############################################################################
25
26# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
27# change these, has to be exactly as is.
28# %define mysql_old_vendor MySQL AB # Applies to traditional MySQL RPMs only.
29# %define mysql_vendor_2 Sun Microsystems, Inc.
30%define mysql_vendor Oracle and/or its affiliates
31
32%define mysql_version @VERSION@
33
34%define mysqldatadir /var/lib/mysql
35
36%define release 1
37
38##############################################################################
39# Command line handling
40##############################################################################
41#
42# To set options:
43#
44# $ rpmbuild --define="option <x>" ...
45#
46
47# ----------------------------------------------------------------------------
48# Commercial builds
49# ----------------------------------------------------------------------------
50%if %{undefined commercial}
51%define commercial 0
52%endif
53
54# ----------------------------------------------------------------------------
55# Source name
56# ----------------------------------------------------------------------------
57%if %{undefined src_base}
58%define src_base mysql
59%endif
60%define src_dir %{src_base}-%{mysql_version}
61
62# ----------------------------------------------------------------------------
63# Feature set (storage engines, options). Default to community (everything)
64# ----------------------------------------------------------------------------
65%if %{undefined feature_set}
66%define feature_set community
67%endif
68
69# ----------------------------------------------------------------------------
70# Server comment strings
71# ----------------------------------------------------------------------------
72%if %{undefined compilation_comment_debug}
73%define compilation_comment_debug MySQL Community Server - Debug (GPL)
74%endif
75%if %{undefined compilation_comment_release}
76%define compilation_comment_release MySQL Community Server (GPL)
77%endif
78
79# ----------------------------------------------------------------------------
80# Product and server suffixes
81# ----------------------------------------------------------------------------
82%if %{undefined product_suffix}
83 %if %{defined short_product_tag}
84 %define product_suffix -%{short_product_tag}
85 %else
86 %define product_suffix %{nil}
87 %endif
88%endif
89
90%if %{undefined server_suffix}
91%define server_suffix %{nil}
92%endif
93
94# ----------------------------------------------------------------------------
95# Distribution support
96# ----------------------------------------------------------------------------
97%if %{undefined distro_specific}
98%define distro_specific 0
99%endif
100%if %{distro_specific}
101 %if %(test -f /etc/oracle-release && echo 1 || echo 0)
102 %define elver %(rpm -qf --qf '%%{version}\\n' /etc/oracle-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
103 %if "%elver" == "6"
104 %define distro_description Oracle Linux 6
105 %define distro_releasetag el6
106 %define distro_buildreq gcc-c++ ncurses-devel perl readline-devel time zlib-devel
107 %define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
108 %else
109 %{error:Oracle Linux %{elver} is unsupported}
110 %endif
111 %else
112 %if %(test -f /etc/redhat-release && echo 1 || echo 0)
113 %define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
114 %if "%rhelver" == "5"
115 %define distro_description Red Hat Enterprise Linux 5
116 %define distro_releasetag rhel5
117 %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
118 %define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
119 %else
120 %if "%rhelver" == "6"
121 %define distro_description Red Hat Enterprise Linux 6
122 %define distro_releasetag rhel6
123 %define distro_buildreq gcc-c++ ncurses-devel perl readline-devel time zlib-devel
124 %define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
125 %else
126 %{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
127 %endif
128 %endif
129 %else
130 %if %(test -f /etc/SuSE-release && echo 1 || echo 0)
131 %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release | cut -d. -f1)
132 %if "%susever" == "10"
133 %define distro_description SUSE Linux Enterprise Server 10
134 %define distro_releasetag sles10
135 %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel
136 %define distro_requires aaa_base coreutils grep procps pwdutils
137 %else
138 %if "%susever" == "11"
139 %define distro_description SUSE Linux Enterprise Server 11
140 %define distro_releasetag sles11
141 %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel
142 %define distro_requires aaa_base coreutils grep procps pwdutils
143 %else
144 %{error:SuSE %{susever} is unsupported}
145 %endif
146 %endif
147 %else
148 %{error:Unsupported distribution}
149 %endif
150 %endif
151 %endif
152%else
153 %define generic_kernel %(uname -r | cut -d. -f1-2)
154 %define distro_description Generic Linux (kernel %{generic_kernel})
155 %define distro_releasetag linux%{generic_kernel}
156 %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
157 %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
158%endif
159
160# Avoid debuginfo RPMs, leaves binaries unstripped
161%define debug_package %{nil}
162
163# Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
164# test for __debug_package
165%define __strip /bin/true
166
167# ----------------------------------------------------------------------------
168# Support optional "tcmalloc" library (experimental)
169# ----------------------------------------------------------------------------
170%if %{defined malloc_lib_target}
171%define WITH_TCMALLOC 1
172%else
173%define WITH_TCMALLOC 0
174%endif
175
176##############################################################################
177# Configuration based upon above user input, not to be set directly
178##############################################################################
179
180%if %{commercial}
181%define license_files_server %{src_dir}/LICENSE.mysql
182%define license_type Commercial
183%else
184%define license_files_server %{src_dir}/COPYING %{src_dir}/README
185%define license_type GPL
186%endif
187
188##############################################################################
189# Main spec file section
190##############################################################################
191
192Name: mysql%{product_suffix}
193Summary: MySQL client programs and shared libraries
194Group: Applications/Databases
195Version: @MYSQL_RPM_VERSION@
196Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}
197# exceptions allow client libraries to be linked with most open source SW,
198# not only GPL code.
199License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
200URL: http://www.mysql.com/
201Packager: MySQL Release Engineering <mysql-build@oss.oracle.com>
202Vendor: %{mysql_vendor}
203
204# Regression tests may take a long time, override the default to skip them
205%{!?runselftest:%global runselftest 1}
206
207# Upstream has a mirror redirector for downloads, so the URL is hard to
208# represent statically. You can get the tarball by following a link from
209# http://dev.mysql.com/downloads/mysql/
210Source0: %{src_dir}.tar.gz
211# The upstream tarball includes non-free documentation that only the
212# copyright holder (MySQL -> Sun -> Oracle) may ship.
213# To remove the non-free documentation, run this script after downloading
214# the tarball into the current directory:
215# ./generate-tarball.sh $VERSION
216# Then, source name changes:
217# Source0: mysql-%{version}-nodocs.tar.gz
218%if %{commercial}
219NoSource: 0
220%endif
221Source1: generate-tarball.sh
222Source2: mysql.init
223Source3: my.cnf
224Source4: scriptstub.c
225Source5: my_config.h
226# The below is only needed for packages built outside MySQL -> Sun -> Oracle:
227Source6: README.mysql-docs
228Source9: mysql-embedded-check.c
229# Working around perl dependency checking bug in rpm FTTB. Remove later.
230Source999: filter-requires-mysql.sh
231
232# Patch1: mysql-ssl-multilib.patch Not needed by MySQL (yaSSL), will not work in 5.5 (cmake)
233Patch2: mysql-5.5-errno.patch
234Patch4: mysql-5.5-testing.patch
235Patch5: mysql-install-test.patch
236Patch6: mysql-5.5-stack-guard.patch
237# Patch7: mysql-disable-test.patch Already fixed in current 5.1
238# Patch8: mysql-setschedparam.patch Will not work in 5.5 (cmake)
239# Patch9: mysql-no-docs.patch Will not work in 5.5 (cmake)
240Patch10: mysql-strmov.patch
241 # Not used by MySQL
242# Patch12: mysql-cve-2008-7247.patch Already fixed in 5.5
243Patch13: mysql-expired-certs.patch
244 # Will not be used by MySQL
245# Patch14: mysql-missing-string-code.patch Undecided, will not work in 5.5 (cmake)
246# Patch15: mysql-lowercase-bug.patch Fixed in MySQL 5.1.54 and 5.5.9
247Patch16: mysql-chain-certs.patch
248Patch17: mysql-5.5-libdir.patch
249Patch18: mysql-5.5-fix-tests.patch
250Patch19: mysql-5.5-mtr1.patch
251
252BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
253BuildRequires: %{distro_buildreq}
254BuildRequires: gawk
255# make test requires time and ps
256BuildRequires: procps
257# Socket and Time::HiRes are needed to run regression tests
258BuildRequires: perl(Socket), perl(Time::HiRes)
259
260Requires: %{distro_requires}
261Requires: fileutils
262Requires: mysql-libs%{product_suffix} = %{version}-%{release}
263Requires: bash
264
265# If %%{product_suffix} is non-empty, the auto-generated capability is insufficient:
266# We want all dependency handling to use the generic name only.
267# Similar in other sub-packages
268Provides: mysql
269
270# MySQL (with caps) is upstream's spelling of their own RPMs for mysql
271Conflicts: MySQL
272# mysql-cluster used to be built from this SRPM, but no more
273Obsoletes: mysql-cluster < 5.1.44
274# We need cross-product "Obsoletes:" to allow cross-product upgrades:
275Obsoletes: mysql mysql-advanced
276
277# Working around perl dependency checking bug in rpm FTTB. Remove later.
278%global __perl_requires %{SOURCE999}
279
280%description -n mysql%{product_suffix}
281MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
282client/server implementation consisting of a server daemon (mysqld)
283and many different client programs and libraries. The base package
284contains the standard MySQL client programs and generic MySQL files.
285
286The MySQL software has Dual Licensing, which means you can use the MySQL
287software free of charge under the GNU General Public License
288(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
289licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
290the GPL. See the chapter "Licensing and Support" in the manual for
291further info.
292
293%package -n mysql-libs%{product_suffix}
294
295Summary: The shared libraries required for MySQL clients
296Group: Applications/Databases
297Requires: /sbin/ldconfig
298Provides: mysql-libs
299Obsoletes: mysql-libs mysql-libs-advanced
300
301%description -n mysql-libs%{product_suffix}
302The mysql-libs package provides the essential shared libraries for any
303MySQL client program or interface. You will need to install this package
304to use any other MySQL package or any clients that need to connect to a
305MySQL server.
306
307%package -n mysql-server%{product_suffix}
308
309Summary: The MySQL server and related files
310Group: Applications/Databases
311Requires: mysql%{product_suffix} = %{version}-%{release}
312Requires: sh-utils
313Requires(pre): /usr/sbin/useradd
314Requires(post): chkconfig
315Requires(preun): chkconfig
316# This is for /sbin/service
317Requires(preun): initscripts
318Requires(postun): initscripts
319# mysqlhotcopy needs DBI/DBD support
320Requires: perl-DBI, perl-DBD-MySQL
321Provides: mysql-server
322Conflicts: MySQL-server
323Obsoletes: mysql-server mysql-server-advanced
324
325%description -n mysql-server%{product_suffix}
326MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
327client/server implementation consisting of a server daemon (mysqld)
328and many different client programs and libraries. This package contains
329the MySQL server and some accompanying files and directories.
330
331%package -n mysql-devel%{product_suffix}
332
333Summary: Files for development of MySQL applications
334Group: Applications/Databases
335Requires: mysql%{product_suffix} = %{version}-%{release}
336Requires: openssl-devel
337Provides: mysql-devel
338Conflicts: MySQL-devel
339Obsoletes: mysql-devel mysql-devel-advanced
340
341%description -n mysql-devel%{product_suffix}
342MySQL is a multi-user, multi-threaded SQL database server. This
343package contains the libraries and header files that are needed for
344developing MySQL client applications.
345
346%package -n mysql-embedded%{product_suffix}
347
348Summary: MySQL as an embeddable library
349Group: Applications/Databases
350Provides: mysql-embedded
351Obsoletes: mysql-embedded mysql-embedded-advanced
352
353%description -n mysql-embedded%{product_suffix}
354MySQL is a multi-user, multi-threaded SQL database server. This
355package contains a version of the MySQL server that can be embedded
356into a client application instead of running as a separate process,
357as well as a command line client with such an embedded server.
358
359%package -n mysql-embedded-devel%{product_suffix}
360
361Summary: Development files for MySQL as an embeddable library
362Group: Applications/Databases
363Requires: mysql-embedded%{product_suffix} = %{version}-%{release}
364Requires: mysql-devel%{product_suffix} = %{version}-%{release}
365Provides: mysql-embedded-devel
366Obsoletes: mysql-embedded-devel mysql-embedded-devel-advanced
367
368%description -n mysql-embedded-devel%{product_suffix}
369MySQL is a multi-user, multi-threaded SQL database server. This
370package contains files needed for developing and testing with
371the embedded version of the MySQL server.
372
373%package -n mysql-test%{product_suffix}
374
375Summary: The test suite distributed with MySQL
376Group: Applications/Databases
377Requires: mysql%{product_suffix} = %{version}-%{release}
378Requires: mysql-server%{product_suffix} = %{version}-%{release}
379Provides: mysql-test
380Conflicts: MySQL-test
381Obsoletes: mysql-test mysql-test-advanced
382
383%description -n mysql-test%{product_suffix}
384MySQL is a multi-user, multi-threaded SQL database server. This
385package contains the regression test suite distributed with
386the MySQL sources.
387
388%prep
389%setup -T -a 0 -c -n %{src_dir}
390
391cd %{src_dir} # read about "%setup -n"
392# %patch1 -p1
393%patch2 -p1
394# %patch4 -p1 TODO / FIXME: if wanted, needs to be adapted to new mysql-test-run setup
395%patch5 -p1
396%patch6 -p1
397# %patch8 -p1
398# %patch9 -p1
399# %patch10 -p1
400# %patch13 -p1
401# %patch14 -p1
402%patch16 -p1
403%patch17 -p1
404%patch18 -p1
405%patch19 -p1
406
407# workaround for upstream bug #56342
408rm -f mysql-test/t/ssl_8k_key-master.opt
409
410%build
411
412# Fail quickly and obviously if user tries to build as root
413%if %runselftest
414 if [ x"`id -u`" = x0 ]; then
415 echo "The MySQL regression tests may fail if run as root."
416 echo "If you really need to build the RPM as root, use"
417 echo "--define='runselftest 0' to skip the regression tests."
418 exit 1
419 fi
420%endif
421
422# Be strict about variables, bail at earliest opportunity, etc.
423set -eu
424
425# Optional package files
426touch optional-files-devel
427
428#
429# Set environment in order of preference, MYSQL_BUILD_* first, then variable
430# name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the
431# default RPM build environment.
432#
433# We set CXX=gcc by default to support so-called 'generic' binaries, where we
434# do not have a dependancy on libgcc/libstdc++. This only works while we do
435# not require C++ features such as exceptions, and may need to be removed at
436# a later date.
437#
438
439# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
440# the compile in cmd-line-utils/readline - needs investigation, but for now
441# we simply unset it and use those specified directly in cmake.
442%if "%{_arch}" == "ia64"
443RPM_OPT_FLAGS=
444%endif
445
446# This goes in sync with Patch19. "rm" is faster than "patch" for this.
447rm -rf %{src_dir}/mysql-test/lib/v1
448
449export PATH=${MYSQL_BUILD_PATH:-$PATH}
450export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
451export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
452export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
453# Following "%ifarch" developed by RedHat, MySQL/Oracle does not support/maintain Linux/Sparc:
454# gcc seems to have some bugs on sparc as of 4.4.1, back off optimization
455# submitted as bz #529298
456%ifarch sparc sparcv9 sparc64
457CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" `
458%endif
459export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
460export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
461export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
462export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-%{?_smp_mflags}}
463
464# Build debug mysqld and libmysqld.a
465mkdir debug
466(
467 cd debug
468 # Attempt to remove any optimisation flags from the debug build
469 CFLAGS=`echo " ${CFLAGS} " | \
470 sed -e 's/ -O[0-9]* / /' \
471 -e 's/ -unroll2 / /' \
472 -e 's/ -ip / /' \
473 -e 's/^ //' \
474 -e 's/ $//'`
475 CXXFLAGS=`echo " ${CXXFLAGS} " | \
476 sed -e 's/ -O[0-9]* / /' \
477 -e 's/ -unroll2 / /' \
478 -e 's/ -ip / /' \
479 -e 's/^ //' \
480 -e 's/ $//'`
481 # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
482 # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
483 ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
484 -DCMAKE_BUILD_TYPE=Debug \
485 -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
486 -DFEATURE_SET="%{feature_set}" \
487 -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
488 -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
489 echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
490 make ${MAKE_JFLAG} VERBOSE=1
491)
492# Build full release
493mkdir release
494(
495 cd release
496 # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
497 # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
498 ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
499 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
500 -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
501 -DFEATURE_SET="%{feature_set}" \
502 -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
503 -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
504 echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
505 make ${MAKE_JFLAG} VERBOSE=1
506)
507
508# TODO / FIXME: Do we need "scriptstub"?
509gcc $CFLAGS $LDFLAGS -o scriptstub "-DLIBDIR=\"%{_libdir}/mysql\"" %{SOURCE4}
510
511# TODO / FIXME: "libmysqld.so" should have been produced above - WORK in PROGRESS
512# regular build will make libmysqld.a but not libmysqld.so :-(
513cd release
514mkdir libmysqld/work
515cd libmysqld/work
516ar -x ../libmysqld.a
517rm rpl_utility.cc.o sql_binlog.cc.o # Try-and-Error: These modules cause unresolved references
518gcc $CFLAGS $LDFLAGS -shared -Wl,-soname,libmysqld.so.0 -o libmysqld.so.0.0.1 \
519 *.o \
520 -lpthread -lcrypt -laio -lnsl -lssl -lcrypto -lz -lrt -lstdc++ -lm -lc
521# this is to check that we built a complete library
522cp %{SOURCE9} .
523ln -s libmysqld.so.0.0.1 libmysqld.so.0
524gcc -I../../include -I../../../%{src_dir}/include $CFLAGS mysql-embedded-check.c libmysqld.so.0
525LD_LIBRARY_PATH=. ldd ./a.out
526cd ../..
527cd ..
528
529# TODO / FIXME: autotools only?
530# make check
531
532# TODO / FIXME: Test suite is run elsewhere in release builds -
533# do we need this for users who want to build from source?
534# Also, check whether MTR_BUILD_THREAD=auto would solve all issues
535%if %runselftest
536 # hack to let 32- and 64-bit tests run concurrently on same build machine
537 case `uname -m` in
538 ppc64 | s390x | x86_64 | sparc64 )
539 MTR_BUILD_THREAD=7
540 ;;
541 *)
542 MTR_BUILD_THREAD=11
543 ;;
544 esac
545 export MTR_BUILD_THREAD
546
547 # if you want to change which tests are run, look at mysql-5.5-testing.patch too.
548 (cd release && make test-bt-fast )
549%endif
550
551%install
552RBR=$RPM_BUILD_ROOT
553MBD=$RPM_BUILD_DIR/%{src_dir}
554[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
555
556# Ensure that needed directories exists
557# TODO / FIXME: needed ? install -d $RBR%{mysqldatadir}/mysql
558# TODO / FIXME: needed ? install -d $RBR%{_datadir}/mysql-test
559# TODO / FIXME: needed ? install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
560# TODO / FIXME: needed ? install -d $RBR%{_includedir}
561# TODO / FIXME: needed ? install -d $RBR%{_libdir}
562# TODO / FIXME: needed ? install -d $RBR%{_mandir}
563# TODO / FIXME: needed ? install -d $RBR%{_sbindir}
564
565# Install all binaries
566(
567 cd $MBD/release
568 make DESTDIR=$RBR install
569)
570
571# For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). Do
572# this in a sub-shell to ensure we don't pollute the install environment
573# with compiler bits.
574(
575 PATH=${MYSQL_BUILD_PATH:-$PATH}
576 CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
577 CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
578 if "${CC}" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1; then
579 libgcc=`${CC} ${CFLAGS} --print-libgcc-file`
580 if [ -f ${libgcc} ]; then
581 mkdir -p $RBR%{_libdir}/mysql
582 install -m 644 ${libgcc} $RBR%{_libdir}/mysql/libmygcc.a
583 echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
584 fi
585 fi
586)
587
588# multilib header hacks
589# we only apply this to known Red Hat multilib arches, per bug #181335
590case `uname -i` in
591 i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
592 mv $RPM_BUILD_ROOT/usr/include/mysql/my_config.h $RPM_BUILD_ROOT/usr/include/mysql/my_config_`uname -i`.h
593 install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/usr/include/mysql/
594 ;;
595 *)
596 ;;
597esac
598
599mkdir -p $RPM_BUILD_ROOT/var/log
600touch $RPM_BUILD_ROOT/var/log/mysqld.log
601
602# List the installed tree for RPM package maintenance purposes.
603find $RPM_BUILD_ROOT -print | sed "s|^$RPM_BUILD_ROOT||" | sort > ROOTFILES
604
605mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
606mkdir -p $RPM_BUILD_ROOT/var/run/mysqld
607install -m 0755 -d $RPM_BUILD_ROOT/var/lib/mysql
608install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysqld
609install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/etc/my.cnf
610# obsolete: mv $RPM_BUILD_ROOT/usr/sql-bench $RPM_BUILD_ROOT%{_datadir}/sql-bench # 'sql-bench' is dropped
611# obsolete: mv $RPM_BUILD_ROOT/usr/mysql-test $RPM_BUILD_ROOT%{_datadir}/mysql-test # 'mysql-test' is there already
612# 5.1.32 forgets to install the mysql-test README file
613# obsolete: install -m 0644 mysql-test/README $RPM_BUILD_ROOT%{_datadir}/mysql-test/README # 'README' is there already
614
615mv ${RPM_BUILD_ROOT}%{_bindir}/mysqlbug ${RPM_BUILD_ROOT}%{_libdir}/mysql/mysqlbug
616install -m 0755 scriptstub ${RPM_BUILD_ROOT}%{_bindir}/mysqlbug
617mv ${RPM_BUILD_ROOT}%{_bindir}/mysql_config ${RPM_BUILD_ROOT}%{_libdir}/mysql/mysql_config
618install -m 0755 scriptstub ${RPM_BUILD_ROOT}%{_bindir}/mysql_config
619
620rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.a
621install -m 0755 release/libmysqld/work/libmysqld.so.0.0.1 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so.0.0.1
622ln -s libmysqld.so.0.0.1 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so.0
623ln -s libmysqld.so.0 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so
624
625rm -f ${RPM_BUILD_ROOT}%{_bindir}/comp_err
626rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/comp_err.1*
627rm -f ${RPM_BUILD_ROOT}%{_bindir}/make_win_binary_distribution
628rm -f ${RPM_BUILD_ROOT}%{_bindir}/make_win_src_distribution
629rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/make_win_bin_dist.1*
630rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/make_win_src_distribution.1*
631rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqlclient*.la
632rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/*.a
633rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/plugin/*.la
634rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/plugin/*.a
635rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/binary-configure
636rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/make_binary_distribution
637rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/make_sharedlib_distribution
638rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mi_test_all*
639rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/ndb-config-2-node.ini
640rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql.server
641rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysqld_multi.server
642rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/MySQL-shared-compat.spec
643rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/*.plist
644rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/preinstall
645rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/postinstall
646rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql-*.spec
647rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql-log-rotate
648rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/ChangeLog
649rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-stress-test.pl.1*
650rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-test-run.pl.1*
651
652mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
653echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
654
655# The below *only* applies to builds not done by MySQL / Sun / Oracle:
656# copy additional docs into build tree so %%doc will find them
657# cp %{SOURCE6} README.mysql-docs
658
659%clean
660[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
661
662%pre -n mysql-server%{product_suffix}
663
664# Check if we can safely upgrade. An upgrade is only safe if it's from one
665# of our RPMs in the same version family.
666
667# Handle both ways of spelling the capability.
668installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
669if [ $? -ne 0 -o -z "$installed" ]; then
670 installed=`rpm -q --whatprovides MySQL-server 2> /dev/null`
671fi
672if [ $? -eq 0 -a -n "$installed" ]; then
673 installed=`echo $installed | sed 's/\([^ ]*\) .*/\1/'` # Tests have shown duplicated package names
674 vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
675 version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
676 myvendor='%{mysql_vendor}'
677 myversion='%{mysql_version}'
678
679 old_family=`echo $version \
680 | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
681 new_family=`echo $myversion \
682 | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
683
684 [ -z "$vendor" ] && vendor='<unknown>'
685 [ -z "$old_family" ] && old_family="<unrecognized version $version>"
686 [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
687
688 error_text=
689 if [ "$vendor" != "$myvendor" ]; then
690 error_text="$error_text
691The current MySQL server package is provided by a different
692vendor ($vendor) than $myvendor.
693Some files may be installed to different locations, including log
694files and the service startup script in %{_sysconfdir}/init.d/.
695"
696 fi
697
698 if [ "$old_family" != "$new_family" ]; then
699 error_text="$error_text
700Upgrading directly from MySQL $old_family to MySQL $new_family may not
701be safe in all cases. A manual dump and restore using mysqldump is
702recommended. It is important to review the MySQL manual's Upgrading
703section for version-specific incompatibilities.
704"
705 fi
706
707 if [ -n "$error_text" ]; then
708 cat <<HERE >&2
709
710******************************************************************
711A MySQL server package ($installed) is installed.
712$error_text
713A manual upgrade is required.
714
715- Ensure that you have a complete, working backup of your data and my.cnf
716 files
717- Shut down the MySQL server cleanly
718- Remove the existing MySQL packages. Usually this command will
719 list the packages you should remove:
720 rpm -qa | grep -i '^mysql-'
721
722 You may choose to use 'rpm --nodeps -ev <package-name>' to remove
723 the package which contains the mysqlclient shared library. The
724 library will be reinstalled by the MySQL-shared-compat package.
725- Install the new MySQL packages supplied by $myvendor
726- Ensure that the MySQL server is started
727- Run the 'mysql_upgrade' program
728
729This is a brief description of the upgrade process. Important details
730can be found in the MySQL manual, in the Upgrading section.
731******************************************************************
732HERE
733 exit 1
734 fi
735fi
736
737/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
738/usr/sbin/useradd -M -N -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
739 -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
740
741%post -n mysql-libs%{product_suffix}
742/sbin/ldconfig
743
744%post -n mysql-server%{product_suffix}
745if [ $1 = 1 ]; then
746 /sbin/chkconfig --add mysqld
747fi
748/bin/chmod 0755 /var/lib/mysql
749/bin/touch /var/log/mysqld.log
750
751%preun -n mysql-server%{product_suffix}
752if [ $1 = 0 ]; then
753 /sbin/service mysqld stop >/dev/null 2>&1
754 /sbin/chkconfig --del mysqld
755fi
756
757%postun -n mysql-libs%{product_suffix}
758if [ $1 = 0 ] ; then
759 /sbin/ldconfig
760fi
761
762%postun -n mysql-server%{product_suffix}
763if [ $1 -ge 1 ]; then
764 /sbin/service mysqld condrestart >/dev/null 2>&1 || :
765fi
766
767
768%files -n mysql%{product_suffix}
769%defattr(-,root,root)
770%doc %{license_files_server}
771
772# The below file *only* applies to builds not done by MySQL / Sun / Oracle:
773# %doc README.mysql-docs
774
775%{_bindir}/msql2mysql
776%{_bindir}/mysql
777%{_bindir}/mysql_config
778%{_bindir}/mysql_find_rows
779%{_bindir}/mysql_waitpid
780%{_bindir}/mysqlaccess
781%{_bindir}/mysqlaccess.conf
782%{_bindir}/mysqladmin
783%{_bindir}/mysqlbinlog
784%{_bindir}/mysqlcheck
785%{_bindir}/mysqldump
786%{_bindir}/mysqlimport
787%{_bindir}/mysqlshow
788%{_bindir}/mysqlslap
789%{_bindir}/my_print_defaults
790
791%{_mandir}/man1/mysql.1*
792%{_mandir}/man1/mysql_config.1*
793%{_mandir}/man1/mysql_find_rows.1*
794%{_mandir}/man1/mysql_waitpid.1*
795%{_mandir}/man1/mysqlaccess.1*
796%{_mandir}/man1/mysqladmin.1*
797%{_mandir}/man1/mysqldump.1*
798%{_mandir}/man1/mysqlshow.1*
799%{_mandir}/man1/mysqlslap.1*
800%{_mandir}/man1/my_print_defaults.1*
801
802%{_libdir}/mysql/mysqlbug
803%{_libdir}/mysql/mysql_config
804
805%files -n mysql-libs%{product_suffix}
806%defattr(-,root,root)
807%doc %{license_files_server}
808# although the default my.cnf contains only server settings, we put it in the
809# libs package because it can be used for client settings too.
810%config(noreplace) /etc/my.cnf
811%dir %{_libdir}/mysql
812%{_libdir}/mysql/libmysqlclient*.so.*
813/etc/ld.so.conf.d/*
814
815%dir %{_datadir}/mysql
816%{_datadir}/mysql/english
817%lang(cs) %{_datadir}/mysql/czech
818%lang(da) %{_datadir}/mysql/danish
819%lang(nl) %{_datadir}/mysql/dutch
820%lang(et) %{_datadir}/mysql/estonian
821%lang(fr) %{_datadir}/mysql/french
822%lang(de) %{_datadir}/mysql/german
823%lang(el) %{_datadir}/mysql/greek
824%lang(hu) %{_datadir}/mysql/hungarian
825%lang(it) %{_datadir}/mysql/italian
826%lang(ja) %{_datadir}/mysql/japanese
827%lang(ko) %{_datadir}/mysql/korean
828%lang(no) %{_datadir}/mysql/norwegian
829%lang(no) %{_datadir}/mysql/norwegian-ny
830%lang(pl) %{_datadir}/mysql/polish
831%lang(pt) %{_datadir}/mysql/portuguese
832%lang(ro) %{_datadir}/mysql/romanian
833%lang(ru) %{_datadir}/mysql/russian
834%lang(sr) %{_datadir}/mysql/serbian
835%lang(sk) %{_datadir}/mysql/slovak
836%lang(es) %{_datadir}/mysql/spanish
837%lang(sv) %{_datadir}/mysql/swedish
838%lang(uk) %{_datadir}/mysql/ukrainian
839%{_datadir}/mysql/charsets
840
841%files -n mysql-server%{product_suffix} -f release/support-files/plugins.files
842%defattr(-,root,root)
843%doc release/support-files/*.cnf
844%doc %{_datadir}/info/mysql.info*
845%doc %{src_dir}/Docs/ChangeLog
846%doc %{src_dir}/Docs/INFO_SRC*
847%doc release/Docs/INFO_BIN*
848
849%{_bindir}/myisamchk
850%{_bindir}/myisam_ftdump
851%{_bindir}/myisamlog
852%{_bindir}/myisampack
853%{_bindir}/mysql_convert_table_format
854%{_bindir}/mysql_fix_extensions
855%{_bindir}/mysql_install_db
856%{_bindir}/mysql_plugin
857%{_bindir}/mysql_secure_installation
858%if %{commercial}
859%else
860%{_bindir}/mysql_setpermission
861%endif
862%{_bindir}/mysql_tzinfo_to_sql
863%{_bindir}/mysql_upgrade
864%{_bindir}/mysql_zap
865%{_bindir}/mysqlbug
866%{_bindir}/mysqldumpslow
867%{_bindir}/mysqld_multi
868%{_bindir}/mysqld_safe
869%{_bindir}/mysqlhotcopy
870%{_bindir}/mysqltest
871%{_bindir}/innochecksum
872%{_bindir}/perror
873%{_bindir}/replace
874%{_bindir}/resolve_stack_dump
875%{_bindir}/resolveip
876
877/usr/libexec/mysqld
878/usr/libexec/mysqld-debug
879%{_libdir}/mysql/plugin/daemon_example.ini
880
881%if %{WITH_TCMALLOC}
882%{_libdir}/mysql/%{malloc_lib_target}
883%endif
884
885# obsolete by "-f release/support-files/plugins.files" above
886# %{_libdir}/mysql/plugin
887
888%{_mandir}/man1/msql2mysql.1*
889%{_mandir}/man1/myisamchk.1*
890%{_mandir}/man1/myisamlog.1*
891%{_mandir}/man1/myisampack.1*
892%{_mandir}/man1/mysql_convert_table_format.1*
893%{_mandir}/man1/myisam_ftdump.1*
894%{_mandir}/man1/mysql.server.1*
895%{_mandir}/man1/mysql_fix_extensions.1*
896%{_mandir}/man1/mysql_install_db.1*
897%{_mandir}/man1/mysql_plugin.1*
898%{_mandir}/man1/mysql_secure_installation.1*
899%{_mandir}/man1/mysql_upgrade.1*
900%{_mandir}/man1/mysql_zap.1*
901%{_mandir}/man1/mysqlbug.1*
902%{_mandir}/man1/mysqldumpslow.1*
903%{_mandir}/man1/mysqlbinlog.1*
904%{_mandir}/man1/mysqlcheck.1*
905%{_mandir}/man1/mysqld_multi.1*
906%{_mandir}/man1/mysqld_safe.1*
907%{_mandir}/man1/mysqlhotcopy.1*
908%{_mandir}/man1/mysqlimport.1*
909%{_mandir}/man1/mysqlman.1*
910%if %{commercial}
911%else
912%{_mandir}/man1/mysql_setpermission.1*
913%endif
914%{_mandir}/man1/mysqltest.1*
915%{_mandir}/man1/innochecksum.1*
916%{_mandir}/man1/perror.1*
917%{_mandir}/man1/replace.1*
918%{_mandir}/man1/resolve_stack_dump.1*
919%{_mandir}/man1/resolveip.1*
920%{_mandir}/man1/mysql_tzinfo_to_sql.1*
921%{_mandir}/man8/mysqld.8*
922
923%{_datadir}/mysql/errmsg-utf8.txt
924%{_datadir}/mysql/fill_help_tables.sql
925%{_datadir}/mysql/magic
926%{_datadir}/mysql/mysql_system_tables.sql
927%{_datadir}/mysql/mysql_system_tables_data.sql
928%{_datadir}/mysql/mysql_test_data_timezone.sql
929%{_datadir}/mysql/my-*.cnf
930%{_datadir}/mysql/config.*.ini
931
932/etc/rc.d/init.d/mysqld
933%attr(0755,mysql,mysql) %dir /var/run/mysqld
934%attr(0755,mysql,mysql) %dir /var/lib/mysql
935%attr(0640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) /var/log/mysqld.log
936
937# TODO / FIXME: Do we need "libmygcc.a"? If yes, append "-f optional-files-devel"
938# and fix the "rm -f" list in the "install" section.
939%files -n mysql-devel%{product_suffix}
940%defattr(-,root,root)
941/usr/include/mysql
942/usr/share/aclocal/mysql.m4
943%{_libdir}/mysql/libmysqlclient*.so
944
945%files -n mysql-embedded%{product_suffix}
946%defattr(-,root,root)
947%doc %{license_files_server}
948%{_libdir}/mysql/libmysqld.so.*
949%{_bindir}/mysql_embedded
950
951%files -n mysql-embedded-devel%{product_suffix}
952%defattr(-,root,root)
953%{_libdir}/mysql/libmysqld.so
954%{_bindir}/mysql_client_test_embedded
955%{_bindir}/mysqltest_embedded
956%{_mandir}/man1/mysql_client_test_embedded.1*
957%{_mandir}/man1/mysqltest_embedded.1*
958
959%files -n mysql-test%{product_suffix}
960%defattr(-,root,root)
961%{_bindir}/mysql_client_test
962%attr(-,mysql,mysql) %{_datadir}/mysql-test
963
964%{_mandir}/man1/mysql_client_test.1*
965
966%changelog
967* Tue Sep 18 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
968- Restrict the vendor check to Oracle: There is no history here
969 which we have to allow for.
970
971* Thu Jul 26 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
972- Add the vendor and release series checks from the traditional MySQL RPM
973 spec file, to protect against errors happening during upgrades.
974- Do some code alignment with the traditional MySQL RPM spec file,
975 to make synchronous maintenance (and possibly even integration?) easier.
976
977* Mon Feb 13 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
978- Add "Provides:" lines for the generic names of the subpackages,
979 independent of "product_suffix".
980
981* Tue Feb 7 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
982- Make "mysql_setpermission" and its man page appear in GPL builds only.
983
984* Thu Nov 24 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
985- Add two patches (#18 + #19) regarding the test suite;
986 version 1 of "mysql-test-run.pl" had to go because the auto-detection
987 of Perl dependencies does not handle differences between run directory
988 and delivery location.
989
990* Thu Nov 3 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
991- Adapt from MySQL 5.1 to 5.5, tested using 5.5.17:
992 - Done by the MySQL Build Team at Oracle:
993 set as packager, set copyright owner and related info;
994 - handle command line options, allowing different configurations, platforms, ...
995 - configurations will show up in the file name as "product_suffix",
996 - use "-n" for all subpackage specifications,
997 - license may be GPL or commercial, mention that in the description,
998 the license output and the included license files will vary,
999 - commercial is "nosource",
1000 - improve "requires" listings for different platforms,
1001 - explicitly use "product_suffix" in the "requires" entries;
1002 - adapt to 5.5 changes in features and function:
1003 - remove "mysql-bench" package (files are outdated, not maintained),
1004 - no InnoDB plugin,
1005 - the set of plugins will vary by configuration, to control the "server"
1006 package contents use "-f release/support-files/plugins.files" in the
1007 "files" section,
1008 - remove "mysqlmanager", "mysql_fix_privilege_tables",
1009 - add "mysql_embedded", "mysql-plugin", "mysqlaccess.conf", "magic",
1010 - "errmsg.txt" is now in UTF8: "errmsg-utf8.txt",
1011 - adapt patches to changed code where needed, rename these to include "5.5",
1012 - stop using patches which are not applicable to 5.5;
1013 - 5.5 uses a different way of building:
1014 - autotools are replaced by cmake,
1015 - both a "release" and a "debug" server are built in separate subtrees
1016 ("out of source"!), this also affects path names in further handling,
1017 - the debug server is added to the "server" subpackage,
1018 - add "mysql-5.5-libdir.patch" to handle file placement at user site.
1019
1020* Mon Dec 20 2010 Tom Lane <tgl@redhat.com> 5.1.52-1.1
1021- Update to MySQL 5.1.52, for various fixes described at
1022 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-52.html
1023 including numerous small security issues
1024Resolves: #652553
1025- Sync with current Fedora package; this includes:
1026- Duplicate COPYING and EXCEPTIONS-CLIENT in -libs and -embedded subpackages,
1027 to ensure they are available when any subset of mysql RPMs are installed,
1028 per revised packaging guidelines
1029- Allow init script's STARTTIMEOUT/STOPTIMEOUT to be overridden from sysconfig
1030
1031* Thu Jul 15 2010 Tom Lane <tgl@redhat.com> 5.1.47-4
1032- Add backported patch for CVE-2010-2008 (upstream bug 53804)
1033Resolves: #614215
1034- Add BuildRequires perl(Time::HiRes) ... seems to no longer be installed
1035 by just pulling in perl.
1036
1037* Mon Jun 28 2010 Tom Lane <tgl@redhat.com> 5.1.47-3
1038- Add -p "$mypidfile" to initscript's status call to improve corner cases.
1039 (Note: can't be fixed in Fedora until 595597 is fixed there.)
1040Resolves: #596008
1041
1042* Mon Jun 7 2010 Tom Lane <tgl@redhat.com> 5.1.47-2
1043- Add back "partition" storage engine
1044Resolves: #598585
1045- Fix broken "federated" storage engine plugin
1046Resolves: #587170
1047- Read all certificates in SSL certificate files, to support chained certs
1048Resolves: #598656
1049
1050* Mon May 24 2010 Tom Lane <tgl@redhat.com> 5.1.47-1
1051- Update to MySQL 5.1.47, for various fixes described at
1052 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-47.html
1053 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-46.html
1054 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-45.html
1055 including fixes for CVE-2010-1621, CVE-2010-1626,
1056 CVE-2010-1848, CVE-2010-1849, CVE-2010-1850
1057Resolves: #590598
1058- Create mysql group explicitly in pre-server script, to ensure correct GID
1059
1060* Mon Mar 8 2010 Tom Lane <tgl@redhat.com> 5.1.44-2
1061- Update to MySQL 5.1.44, for various fixes described at
1062 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-44.html
1063Resolves: #565554
1064- Remove mysql.info, which is not freely redistributable
1065Related: #560181
1066- Revert broken upstream fix for their bug 45058
1067Related: #566547
1068- Bring init script into some modicum of compliance with Fedora/LSB standards
1069Resolves: #557711
1070Resolves: #562749
1071
1072* Mon Feb 15 2010 Tom Lane <tgl@redhat.com> 5.1.43-2
1073- Update to MySQL 5.1.43, for various fixes described at
1074 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-43.html
1075Resolves: #565554
1076- Remove mysql-cluster, which is no longer supported by upstream in this
1077 source distribution. If we want it we'll need a separate SRPM for it.
1078Resolves: #565210
1079
1080* Fri Jan 29 2010 Tom Lane <tgl@redhat.com> 5.1.42-7
1081- Add backported patch for CVE-2008-7247 (upstream bug 39277)
1082Resolves: #549329
1083- Use non-expired certificates for SSL testing (upstream bug 50702)
1084
1085* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 5.1.42-6
1086- Emit explicit error message if user tries to build RPM as root
1087Resolves: #558915
1088
1089* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 5.1.42-5
1090- Correct Source0: tag and comment to reflect how to get the tarball
1091
1092* Fri Jan 8 2010 Tom Lane <tgl@redhat.com> 5.1.42-4
1093- Sync with current Fedora build, including:
1094- Update to MySQL 5.1.42, for various fixes described at
1095 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-42.html
1096- Disable symbolic links by default in /etc/my.cnf
1097Resolves: #553653
1098- Remove static libraries (.a files) from package, per packaging guidelines
1099- Change %%define to %%global, per packaging guidelines
1100- Disable building the innodb plugin; it tickles assorted gcc bugs and
1101 doesn't seem entirely ready for prime time anyway.
1102Resolves: #553632
1103- Start mysqld_safe with --basedir=/usr, to avoid unwanted SELinux messages
1104 (see 547485)
1105- Stop waiting during "service mysqld start" if mysqld_safe exits
1106Resolves: #544095
1107
1108* Mon Nov 23 2009 Tom Lane <tgl@redhat.com> 5.1.41-1
1109- Update to MySQL 5.1.41, for various fixes described at
1110 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-41.html
1111 including fixes for CVE-2009-4019
1112Resolves: #549327
1113- Don't set old_passwords=1; we aren't being bug-compatible with 3.23 anymore
1114Resolves: #540735
1115
1116* Tue Nov 10 2009 Tom Lane <tgl@redhat.com> 5.1.40-1
1117- Update to MySQL 5.1.40, for various fixes described at
1118 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-40.html
1119- Do not force the --log-error setting in mysqld init script
1120Resolves: #533736
1121
1122* Sat Oct 17 2009 Tom Lane <tgl@redhat.com> 5.1.39-4
1123- Replace kluge fix for ndbd sparc crash with a real fix (mysql bug 48132)
1124
1125* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 5.1.39-3
1126- Work around two different compiler bugs on sparc, one by backing off
1127 optimization from -O2 to -O1, and the other with a klugy patch
1128Related: #529298, #529299
1129- Clean up bogosity in multilib stub header support: ia64 should not be
1130 listed (it's not multilib), sparc and sparc64 should be
1131
1132* Wed Sep 23 2009 Tom Lane <tgl@redhat.com> 5.1.39-2
1133- Work around upstream bug 46895 by disabling outfile_loaddata test
1134
1135* Tue Sep 22 2009 Tom Lane <tgl@redhat.com> 5.1.39-1
1136- Update to MySQL 5.1.39, for various fixes described at
1137 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-39.html
1138
1139* Mon Aug 31 2009 Tom Lane <tgl@redhat.com> 5.1.37-5
1140- Work around unportable assumptions about stpcpy(); re-enable main.mysql test
1141- Clean up some obsolete parameters to the configure script
1142
1143* Sat Aug 29 2009 Tom Lane <tgl@redhat.com> 5.1.37-4
1144- Remove one misguided patch; turns out I was chasing a glibc bug
1145- Temporarily disable "main.mysql" test; there's something broken there too,
1146 but we need to get mysql built in rawhide for dependency reasons
1147
1148* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 5.1.37-3
1149- rebuilt with new openssl
1150
1151* Fri Aug 14 2009 Tom Lane <tgl@redhat.com> 5.1.37-2
1152- Add a couple of patches to improve the probability of the regression tests
1153 completing in koji builds
1154
1155* Sun Aug 2 2009 Tom Lane <tgl@redhat.com> 5.1.37-1
1156- Update to MySQL 5.1.37, for various fixes described at
1157 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-37.html
1158
1159* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.36-2
1160- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1161
1162* Fri Jul 10 2009 Tom Lane <tgl@redhat.com> 5.1.36-1
1163- Update to MySQL 5.1.36, for various fixes described at
1164 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-36.html
1165
1166* Sat Jun 6 2009 Tom Lane <tgl@redhat.com> 5.1.35-1
1167- Update to MySQL 5.1.35, for various fixes described at
1168 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-35.html
1169- Ensure that /var/lib/mysql is created with the right SELinux context
1170Resolves: #502966
1171
1172* Fri May 15 2009 Tom Lane <tgl@redhat.com> 5.1.34-1
1173- Update to MySQL 5.1.34, for various fixes described at
1174 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-34.html
1175- Increase startup timeout per bug #472222
1176
1177* Wed Apr 15 2009 Tom Lane <tgl@redhat.com> 5.1.33-2
1178- Increase stack size of ndbd threads for safety's sake.
1179Related: #494631
1180
1181* Tue Apr 7 2009 Tom Lane <tgl@redhat.com> 5.1.33-1
1182- Update to MySQL 5.1.33.
1183- Disable use of pthread_setschedparam; doesn't work the way code expects.
1184Related: #477624
1185
1186* Wed Mar 4 2009 Tom Lane <tgl@redhat.com> 5.1.32-1
1187- Update to MySQL 5.1.32.
1188
1189* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.31-2
1190- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1191
1192* Fri Feb 13 2009 Tom Lane <tgl@redhat.com> 5.1.31-1
1193- Update to MySQL 5.1.31.
1194
1195* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.30-2
1196- hm, apparently --with-innodb and --with-ndbcluster are still needed
1197 even though no longer documented ...
1198
1199* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.30-1
1200- Update to MySQL 5.1.30. Note that this includes an ABI break for
1201 libmysqlclient (it's now got .so major version 16).
1202- This also updates mysql for new openssl build
1203
1204* Wed Oct 1 2008 Tom Lane <tgl@redhat.com> 5.0.67-2
1205- Build the "embedded server" library, and package it in a new sub-RPM
1206 mysql-embedded, along with mysql-embedded-devel for devel support files.
1207Resolves: #149829
1208
1209* Sat Aug 23 2008 Tom Lane <tgl@redhat.com> 5.0.67-1
1210- Update to mysql version 5.0.67
1211- Move mysql_config's man page to base package, again (apparently I synced
1212 that change the wrong way while importing specfile changes for ndbcluster)
1213
1214* Sun Jul 27 2008 Tom Lane <tgl@redhat.com> 5.0.51a-2
1215- Enable ndbcluster support
1216Resolves: #163758
1217- Suppress odd crash messages during package build, caused by trying to
1218 build dbug manual (which we don't install anyway) with dbug disabled
1219Resolves: #437053
1220- Improve mysql.init to pass configured datadir to mysql_install_db,
1221 and to force user=mysql for both mysql_install_db and mysqld_safe.
1222Related: #450178
1223
1224* Mon Mar 3 2008 Tom Lane <tgl@redhat.com> 5.0.51a-1
1225- Update to mysql version 5.0.51a
1226
1227* Mon Mar 3 2008 Tom Lane <tgl@redhat.com> 5.0.45-11
1228- Fix mysql-stack-guard patch to work correctly on IA64
1229- Fix mysql.init to wait correctly when socket is not in default place
1230Related: #435494
1231
1232* Mon Mar 03 2008 Dennis Gilmore <dennis@ausil.us> 5.0.45-10
1233- add sparc64 to 64 bit arches for test suite checking
1234- add sparc, sparcv9 and sparc64 to multilib handling
1235
1236* Thu Feb 28 2008 Tom Lane <tgl@redhat.com> 5.0.45-9
1237- Fix the stack overflow problem encountered in January. It seems the real
1238issue is that the buildfarm machines were moved to RHEL5, which uses 64K not
12394K pages on PPC, and because RHEL5 takes the guard area out of the requested
1240thread stack size we no longer had enough headroom.
1241Related: #435337
1242
1243* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.0.45-8
1244- Autorebuild for GCC 4.3
1245
1246* Tue Jan 8 2008 Tom Lane <tgl@redhat.com> 5.0.45-7
1247- Unbelievable ... upstream still thinks that it's a good idea to have a
1248 regression test that is guaranteed to begin failing come January 1.
1249- ... and it seems we need to raise STACK_MIN_SIZE again too.
1250
1251* Thu Dec 13 2007 Tom Lane <tgl@redhat.com> 5.0.45-6
1252- Back-port upstream fixes for CVE-2007-5925, CVE-2007-5969, CVE-2007-6303.
1253Related: #422211
1254
1255* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 5.0.45-5
1256- Rebuild for new openssl
1257
1258* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 5.0.45-4
1259- Seems we need explicit BuildRequires on gawk and procps now
1260- Rebuild to fix Fedora toolchain issues
1261
1262* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 5.0.45-3
1263- Recent perl changes in rawhide mean we need a more specific BuildRequires
1264
1265* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 5.0.45-2
1266- Update License tag to match code.
1267- Work around recent Fedora change that makes "open" a macro name.
1268
1269* Sun Jul 22 2007 Tom Lane <tgl@redhat.com> 5.0.45-1
1270- Update to MySQL 5.0.45
1271Resolves: #246535
1272- Move mysql_config's man page to base package
1273Resolves: #245770
1274- move my_print_defaults to base RPM, for consistency with Stacks packaging
1275- mysql user is no longer deleted at RPM uninstall
1276Resolves: #241912
1277
1278* Thu Mar 29 2007 Tom Lane <tgl@redhat.com> 5.0.37-2
1279- Use a less hacky method of getting default values in initscript
1280Related: #233771, #194596
1281- Improve packaging of mysql-libs per suggestions from Remi Collet
1282Resolves: #233731
1283- Update default /etc/my.cnf ([mysql.server] has been bogus for a long time)
1284
1285* Mon Mar 12 2007 Tom Lane <tgl@redhat.com> 5.0.37-1
1286- Update to MySQL 5.0.37
1287Resolves: #231838
1288- Put client library into a separate mysql-libs RPM to reduce dependencies
1289Resolves: #205630
1290
1291* Fri Feb 9 2007 Tom Lane <tgl@redhat.com> 5.0.33-1
1292- Update to MySQL 5.0.33
1293- Install band-aid fix for "view" regression test designed to fail after 2006
1294- Don't chmod -R the entire database directory tree on every startup
1295Related: #221085
1296- Fix unsafe use of install-info
1297Resolves: #223713
1298- Cope with new automake in F7
1299Resolves: #224171
1300
1301* Thu Nov 9 2006 Tom Lane <tgl@redhat.com> 5.0.27-1
1302- Update to MySQL 5.0.27 (see CVE-2006-4031, CVE-2006-4226, CVE-2006-4227)
1303Resolves: #202247, #202675, #203427, #203428, #203432, #203434, #208641
1304- Fix init script to return status 1 on server start timeout
1305Resolves: #203910
1306- Move mysqldumpslow from base package to mysql-server
1307Resolves: #193559
1308- Adjust link options for BDB module
1309Resolves: #199368
1310
1311* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.0.22-2.1
1312- rebuild
1313
1314* Sat Jun 10 2006 Tom Lane <tgl@redhat.com> 5.0.22-2
1315- Work around brew's tendency not to clean up failed builds completely,
1316 by adding code in mysql-testing.patch to kill leftover mysql daemons.
1317
1318* Thu Jun 8 2006 Tom Lane <tgl@redhat.com> 5.0.22-1
1319- Update to MySQL 5.0.22 (fixes CVE-2006-2753)
1320- Install temporary workaround for gcc bug on s390x (bz #193912)
1321
1322* Tue May 2 2006 Tom Lane <tgl@redhat.com> 5.0.21-2
1323- Fix bogus perl Requires for mysql-test
1324
1325* Mon May 1 2006 Tom Lane <tgl@redhat.com> 5.0.21-1
1326- Update to MySQL 5.0.21
1327
1328* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 5.0.18-4
1329- Modify multilib header hack to not break non-RH arches, per bug #181335
1330- Remove logrotate script, per bug #180639.
1331- Add a new mysql-test RPM to carry the regression test files;
1332 hack up test scripts as needed to make them run in /usr/share/mysql-test.
1333
1334* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-2.1
1335- bump again for double-long bug on ppc(64)
1336
1337* Thu Feb 9 2006 Tom Lane <tgl@redhat.com> 5.0.18-2
1338- err-log option has been renamed to log-error, fix my.cnf and initscript
1339
1340* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-1.1
1341- rebuilt for new gcc4.1 snapshot and glibc changes
1342
1343* Thu Jan 5 2006 Tom Lane <tgl@redhat.com> 5.0.18-1
1344- Update to MySQL 5.0.18
1345
1346* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-4
1347- fix my_config.h for ppc platforms
1348
1349* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-3
1350- my_config.h needs to guard against 64-bit platforms that also define the
1351 32-bit symbol
1352
1353* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 5.0.16-2
1354- oops, looks like we want uname -i not uname -m
1355
1356* Mon Dec 12 2005 Tom Lane <tgl@redhat.com> 5.0.16-1
1357- Update to MySQL 5.0.16
1358- Add EXCEPTIONS-CLIENT license info to the shipped documentation
1359- Make my_config.h architecture-independent for multilib installs;
1360 put the original my_config.h into my_config_$ARCH.h
1361- Add -fwrapv to CFLAGS so that gcc 4.1 doesn't break it
1362
1363* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
1364- rebuilt
1365
1366* Mon Nov 14 2005 Tom Lane <tgl@redhat.com> 5.0.15-3
1367- Make stop script wait for daemon process to disappear (bz#172426)
1368
1369* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 5.0.15-2
1370- Rebuild due to openssl library update.
1371
1372* Thu Nov 3 2005 Tom Lane <tgl@redhat.com> 5.0.15-1
1373- Update to MySQL 5.0.15 (scratch build for now)
1374
1375* Wed Oct 5 2005 Tom Lane <tgl@redhat.com> 4.1.14-1
1376- Update to MySQL 4.1.14
1377
1378* Tue Aug 23 2005 Tom Lane <tgl@redhat.com> 4.1.12-3
1379- Use politically correct patch name.
1380
1381* Tue Jul 12 2005 Tom Lane <tgl@redhat.com> 4.1.12-2
1382- Fix buffer overflow newly exposed in isam code; it's the same issue
1383 previously found in myisam, and not very exciting, but I'm tired of
1384 seeing build warnings.
1385
1386* Mon Jul 11 2005 Tom Lane <tgl@redhat.com> 4.1.12-1
1387- Update to MySQL 4.1.12 (includes a fix for bz#158688, bz#158689)
1388- Extend mysql-test-ssl.patch to solve rpl_openssl test failure (bz#155850)
1389- Update mysql-lock-ssl.patch to match the upstream committed version
1390- Add --with-isam to re-enable the old ISAM table type, per bz#159262
1391- Add dependency on openssl-devel per bz#159569
1392- Remove manual.txt, as upstream decided not to ship it anymore;
1393 it was redundant with the mysql.info file anyway.
1394
1395* Mon May 9 2005 Tom Lane <tgl@redhat.com> 4.1.11-4
1396- Include proper locking for OpenSSL in the server, per bz#155850
1397
1398* Mon Apr 25 2005 Tom Lane <tgl@redhat.com> 4.1.11-3
1399- Enable openssl tests during build, per bz#155850
1400- Might as well turn on --disable-dependency-tracking
1401
1402* Fri Apr 8 2005 Tom Lane <tgl@redhat.com> 4.1.11-2
1403- Avoid dependency on <asm/atomic.h>, cause it won't build anymore on ia64.
1404 This is probably a cleaner solution for bz#143537, too.
1405
1406* Thu Apr 7 2005 Tom Lane <tgl@redhat.com> 4.1.11-1
1407- Update to MySQL 4.1.11 to fix bz#152911 as well as other issues
1408- Move perl-DBI, perl-DBD-MySQL dependencies to server package (bz#154123)
1409- Override configure thread library test to suppress HAVE_LINUXTHREADS check
1410- Fix BDB failure on s390x (bz#143537)
1411- At last we can enable "make test" on all arches
1412
1413* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 4.1.10a-1
1414- Update to MySQL 4.1.10a to fix security vulnerabilities (bz#150868,
1415 for CAN-2005-0711, and bz#150871 for CAN-2005-0709, CAN-2005-0710).
1416
1417* Sun Mar 6 2005 Tom Lane <tgl@redhat.com> 4.1.10-3
1418- Fix package Requires: interdependencies.
1419
1420* Sat Mar 5 2005 Tom Lane <tgl@redhat.com> 4.1.10-2
1421- Need -fno-strict-aliasing in at least one place, probably more.
1422- Work around some C spec violations in mysql.
1423
1424* Fri Feb 18 2005 Tom Lane <tgl@redhat.com> 4.1.10-1
1425- Update to MySQL 4.1.10.
1426
1427* Sat Jan 15 2005 Tom Lane <tgl@redhat.com> 4.1.9-1
1428- Update to MySQL 4.1.9.
1429
1430* Wed Jan 12 2005 Tom Lane <tgl@redhat.com> 4.1.7-10
1431- Don't assume /etc/my.cnf will specify pid-file (bz#143724)
1432
1433* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 4.1.7-9
1434- Rebuilt for new readline.
1435
1436* Tue Dec 21 2004 Tom Lane <tgl@redhat.com> 4.1.7-8
1437- Run make test on all archs except s390x (which seems to have a bdb issue)
1438
1439* Mon Dec 13 2004 Tom Lane <tgl@redhat.com> 4.1.7-7
1440- Suppress someone's silly idea that libtool overhead can be skipped
1441
1442* Sun Dec 12 2004 Tom Lane <tgl@redhat.com> 4.1.7-6
1443- Fix init script to not need a valid username for startup check (bz#142328)
1444- Fix init script to honor settings appearing in /etc/my.cnf (bz#76051)
1445- Enable SSL (bz#142032)
1446
1447* Thu Dec 2 2004 Tom Lane <tgl@redhat.com> 4.1.7-5
1448- Add a restorecon to keep the mysql.log file in the right context (bz#143887)
1449
1450* Tue Nov 23 2004 Tom Lane <tgl@redhat.com> 4.1.7-4
1451- Turn off old_passwords in default /etc/my.cnf file, for better compatibility
1452 with mysql 3.x clients (per suggestion from Joe Orton).
1453
1454* Fri Oct 29 2004 Tom Lane <tgl@redhat.com> 4.1.7-3
1455- Handle ldconfig more cleanly (put a file in /etc/ld.so.conf.d/).
1456
1457* Thu Oct 28 2004 Tom Lane <tgl@redhat.com> 4.1.7-2
1458- rebuild in devel branch
1459
1460* Wed Oct 27 2004 Tom Lane <tgl@redhat.com> 4.1.7-1
1461- Update to MySQL 4.1.x.
1462
1463* Tue Oct 12 2004 Tom Lane <tgl@redhat.com> 3.23.58-13
1464- fix security issues CAN-2004-0835, CAN-2004-0836, CAN-2004-0837
1465 (bugs #135372, 135375, 135387)
1466- fix privilege escalation on GRANT ALL ON `Foo\_Bar` (CAN-2004-0957)
1467
1468* Wed Oct 06 2004 Tom Lane <tgl@redhat.com> 3.23.58-12
1469- fix multilib problem with mysqlbug and mysql_config
1470- adjust chkconfig priority per bug #128852
1471- remove bogus quoting per bug #129409 (MySQL 4.0 has done likewise)
1472- add sleep to mysql.init restart(); may or may not fix bug #133993
1473
1474* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 3.23.58-11
1475- fix low-priority security issues CAN-2004-0388, CAN-2004-0381, CAN-2004-0457
1476 (bugs #119442, 125991, 130347, 130348)
1477- fix bug with dropping databases under recent kernels (bug #124352)
1478
1479* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 3.23.58-10
1480- rebuilt
1481
1482* Sat Apr 17 2004 Warren Togami <wtogami@redhat.com> 3.23.58-9
1483- remove redundant INSTALL-SOURCE, manual.*
1484- compress manual.txt.bz2
1485- BR time
1486
1487* Tue Mar 16 2004 Tom Lane <tgl@redhat.com> 3.23.58-8
1488- repair logfile attributes in %%files, per bug #102190
1489- repair quoting problem in mysqlhotcopy, per bug #112693
1490- repair missing flush in mysql_setpermission, per bug #113960
1491- repair broken error message printf, per bug #115165
1492- delete mysql user during uninstall, per bug #117017
1493- rebuilt
1494
1495* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
1496- rebuilt
1497
1498* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
1499- fix chown syntax in mysql.init
1500- rebuild
1501
1502* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
1503- rebuilt
1504
1505* Tue Nov 18 2003 Kim Ho <kho@redhat.com> 3.23.58-5
1506- update mysql.init to use anonymous user (UNKNOWN_MYSQL_USER) for
1507 pinging mysql server (#108779)
1508
1509* Mon Oct 27 2003 Kim Ho <kho@redhat.com> 3.23.58-4
1510- update mysql.init to wait (max 10 seconds) for mysql server to
1511 start (#58732)
1512
1513* Mon Oct 27 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-3
1514- re-enable Berkeley DB support (#106832)
1515- re-enable ia64 testing
1516
1517* Fri Sep 19 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-2
1518- rebuilt
1519
1520* Mon Sep 15 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-1
1521- upgrade to 3.23.58 for security fix
1522
1523* Tue Aug 26 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.57-2
1524- rebuilt
1525
1526* Wed Jul 02 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.57-1
1527- revert to prior version of MySQL due to license incompatibilities
1528 with packages that link against the client. The MySQL folks are
1529 looking into the issue.
1530
1531* Wed Jun 18 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-4
1532- restrict test on ia64 (temporary)
1533
1534* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 4.0.13-3
1535- rebuilt
1536
1537* Thu May 29 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-2
1538- fix filter-requires-mysql.sh with less restrictive for mysql-bench
1539
1540* Wed May 28 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-1
1541- update for MySQL 4.0
1542- back-level shared libraries available in mysqlclient10 package
1543
1544* Fri May 09 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.56-2
1545- add sql-bench package (#90110)
1546
1547* Wed Mar 19 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.56-1
1548- upgrade to 3.23.56 for security fixes
1549- remove patch for double-free (included in 3.23.56)
1550
1551* Tue Feb 18 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.54a-11
1552- enable thread safe client
1553- add patch for double free fix
1554
1555* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
1556- rebuilt
1557
1558* Mon Jan 13 2003 Karsten Hopp <karsten@redhat.de> 3.23.54a-9
1559- disable checks on s390x
1560
1561* Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 3.23.54a-8
1562- use internal dep generator.
1563
1564* Wed Jan 1 2003 Bill Nottingham <notting@redhat.com> 3.23.54a-7
1565- fix mysql_config on hammer
1566
1567* Sun Dec 22 2002 Tim Powers <timp@redhat.com> 3.23.54a-6
1568- don't use rpms internal dep generator
1569
1570* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 3.23.54a-5
1571- Push it into the build system
1572
1573* Mon Dec 16 2002 Joe Orton <jorton@redhat.com> 3.23.54a-4
1574- upgrade to 3.23.54a for safe_mysqld fix
1575
1576* Thu Dec 12 2002 Joe Orton <jorton@redhat.com> 3.23.54-3
1577- upgrade to 3.23.54 for latest security fixes
1578
1579* Tue Nov 19 2002 Jakub Jelinek <jakub@redhat.com> 3.23.52-5
1580- Always include <errno.h> for errno
1581- Remove unpackaged files
1582
1583* Tue Nov 12 2002 Florian La Roche <Florian.LaRoche@redhat.de>
1584- do not prereq userdel, not used at all
1585
1586* Mon Sep 9 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-4
1587- Use %%{_libdir}
1588- Add patch for x86-64
1589
1590* Wed Sep 4 2002 Jakub Jelinek <jakub@redhat.com> 3.23.52-3
1591- rebuilt with gcc-3.2-7
1592
1593* Thu Aug 29 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-2
1594- Add --enable-local-infile to configure - a new option
1595 which doesn't default to the old behaviour (#72885)
1596
1597* Fri Aug 23 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-1
1598- 3.23.52. Fixes a minor security problem, various bugfixes.
1599
1600* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 3.23.51-5
1601- rebuilt with gcc-3.2 (we hope)
1602
1603* Mon Jul 22 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-4
1604- rebuild
1605
1606* Thu Jul 18 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-3
1607- Fix #63543 and #63542
1608
1609* Thu Jul 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-2
1610- Turn off bdb on PPC(#68591)
1611- Turn off the assembly optimizations, for safety.
1612
1613* Wed Jun 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-1
1614- Work around annoying auto* thinking this is a crosscompile
1615- 3.23.51
1616
1617* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
1618- automated rebuild
1619
1620* Mon Jun 10 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.50-2
1621- Add dependency on perl-DBI and perl-DBD-MySQL (#66349)
1622
1623* Thu May 30 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.50-1
1624- 3.23.50
1625
1626* Thu May 23 2002 Tim Powers <timp@redhat.com>
1627- automated rebuild
1628
1629* Mon May 13 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-4
1630- Rebuild
1631- Don't set CXX to gcc, it doesn't work anymore
1632- Exclude Alpha
1633
1634* Mon Apr 8 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-3
1635- Add the various .cnf examples as doc files to mysql-server (#60349)
1636- Don't include manual.ps, it's just 200 bytes with a URL inside (#60349)
1637- Don't include random files in /usr/share/mysql (#60349)
1638- langify (#60349)
1639
1640* Thu Feb 21 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-2
1641- Rebuild
1642
1643* Sun Feb 17 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-1
1644- 3.23.49
1645
1646* Thu Feb 14 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.48-2
1647- work around perl dependency bug.
1648
1649* Mon Feb 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.48-1
1650- 3.23.48
1651
1652* Thu Jan 17 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-4
1653- Use kill, not mysqladmin, to flush logs and shut down. Thus,
1654 an admin password can be set with no problems.
1655- Remove reload from init script
1656
1657* Wed Jan 16 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-3
1658- remove db3-devel from buildrequires,
1659 MySQL has had its own bundled copy since the mid thirties
1660
1661* Sun Jan 6 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-1
1662- 3.23.47
1663- Don't build for alpha, toolchain immature.
1664
1665* Mon Dec 3 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.46-1
1666- 3.23.46
1667- use -fno-rtti and -fno-exceptions, and set CXX to increase stability.
1668 Recommended by mysql developers.
1669
1670* Sun Nov 25 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.45-1
1671- 3.23.45
1672
1673* Wed Nov 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.44-2
1674- centralize definition of datadir in the initscript (#55873)
1675
1676* Fri Nov 2 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.44-1
1677- 3.23.44
1678
1679* Thu Oct 4 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.43-1
1680- 3.23.43
1681
1682* Mon Sep 10 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.42-1
1683- 3.23.42
1684- reenable innodb
1685
1686* Tue Aug 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.41-1
1687- 3.23.41 bugfix release
1688- disable innodb, to avoid the broken updates
1689- Use "mysqladmin flush_logs" instead of kill -HUP in logrotate
1690 script (#51711)
1691
1692* Sat Jul 21 2001 Trond Eivind Glomsrd <teg@redhat.com>
1693- 3.23.40, bugfix release
1694- Add zlib-devel to buildrequires:
1695
1696* Fri Jul 20 2001 Trond Eivind Glomsrd <teg@redhat.com>
1697- BuildRequires-tweaking
1698
1699* Thu Jun 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
1700- Reenable test, but don't run them for s390, s390x or ia64
1701- Make /etc/my.cnf config(noplace). Same for /etc/logrotate.d/mysqld
1702
1703* Thu Jun 14 2001 Trond Eivind Glomsrd <teg@redhat.com>
1704- 3.23.29
1705- enable innodb
1706- enable assembly again
1707- disable tests for now...
1708
1709* Tue May 15 2001 Trond Eivind Glomsrd <teg@redhat.com>
1710- 3.23.38
1711- Don't use BDB on Alpha - no fast mutexes
1712
1713* Tue Apr 24 2001 Trond Eivind Glomsrd <teg@redhat.com>
1714- 3.23.37
1715- Add _GNU_SOURCE to the compile flags
1716
1717* Wed Mar 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
1718- Make it obsolete our 6.2 PowerTools packages
1719- 3.23.36 bugfix release - fixes some security issues
1720 which didn't apply to our standard configuration
1721- Make "make test" part of the build process, except on IA64
1722 (it fails there)
1723
1724* Tue Mar 20 2001 Trond Eivind Glomsrd <teg@redhat.com>
1725- 3.23.35 bugfix release
1726- Don't delete the mysql user on uninstall
1727
1728* Tue Mar 13 2001 Trond Eivind Glomsrd <teg@redhat.com>
1729- 3.23.34a bugfix release
1730
1731* Wed Feb 7 2001 Trond Eivind Glomsrd <teg@redhat.com>
1732- added readline-devel to BuildRequires:
1733
1734* Tue Feb 6 2001 Trond Eivind Glomsrd <teg@redhat.com>
1735- small i18n-fixes to initscript (action needs $)
1736
1737* Tue Jan 30 2001 Trond Eivind Glomsrd <teg@redhat.com>
1738- make it shut down and rotate logs without using mysqladmin
1739 (from #24909)
1740
1741* Mon Jan 29 2001 Trond Eivind Glomsrd <teg@redhat.com>
1742- conflict with "MySQL"
1743
1744* Tue Jan 23 2001 Trond Eivind Glomsrd <teg@redhat.com>
1745- improve gettextizing
1746
1747* Mon Jan 22 2001 Trond Eivind Glomsrd <teg@redhat.com>
1748- 3.23.32
1749- fix logrotate script (#24589)
1750
1751* Wed Jan 17 2001 Trond Eivind Glomsrd <teg@redhat.com>
1752- gettextize
1753- move the items in Requires(post): to Requires: in preparation
1754 for an errata for 7.0 when 3.23.31 is released
1755- 3.23.31
1756
1757* Tue Jan 16 2001 Trond Eivind Glomsrd <teg@redhat.com>
1758- add the log file to the rpm database, and make it 0640
1759 (#24116)
1760- as above in logrotate script
1761- changes to the init sequence - put most of the data
1762 in /etc/my.cnf instead of hardcoding in the init script
1763- use /var/run/mysqld/mysqld.pid instead of
1764 /var/run/mysqld/pid
1765- use standard safe_mysqld
1766- shut down cleaner
1767
1768* Mon Jan 08 2001 Trond Eivind Glomsrd <teg@redhat.com>
1769- 3.23.30
1770- do an explicit chmod on /var/lib/mysql in post, to avoid
1771 any problems with broken permissons. There is a report
1772 of rm not changing this on its own (#22989)
1773
1774* Mon Jan 01 2001 Trond Eivind Glomsrd <teg@redhat.com>
1775- bzipped source
1776- changed from 85 to 78 in startup, so it starts before
1777 apache (which can use modules requiring mysql)
1778
1779* Wed Dec 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1780- 3.23.29a
1781
1782* Tue Dec 19 2000 Trond Eivind Glomsrd <teg@redhat.com>
1783- add requirement for new libstdc++, build for errata
1784
1785* Mon Dec 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1786- 3.23.29
1787
1788* Mon Nov 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1789- 3.23.28 (gamma)
1790- remove old patches, as they are now upstreamed
1791
1792* Thu Nov 14 2000 Trond Eivind Glomsrd <teg@redhat.com>
1793- Add a requirement for a new glibc (#20735)
1794- build on IA64
1795
1796* Wed Nov 1 2000 Trond Eivind Glomsrd <teg@redhat.com>
1797- disable more assembly
1798
1799* Wed Nov 1 2000 Jakub Jelinek <jakub@redhat.com>
1800- fix mysql on SPARC (#20124)
1801
1802* Tue Oct 31 2000 Trond Eivind Glomsrd <teg@redhat.com>
1803- 3.23.27
1804
1805* Wed Oct 25 2000 Trond Eivind Glomsrd <teg@redhat.com>
1806- add patch for fixing bogus aliasing in mysql from Jakub,
1807 which should fix #18905 and #18620
1808
1809* Mon Oct 23 2000 Trond Eivind Glomsrd <teg@redhat.com>
1810- check for negative niceness values, and negate it
1811 if present (#17899)
1812- redefine optflags on IA32 FTTB
1813
1814* Wed Oct 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1815- 3.23.26, which among other fixes now uses mkstemp()
1816 instead of tempnam().
1817- revert changes made yesterday, the problem is now
1818 isolated
1819
1820* Tue Oct 17 2000 Trond Eivind Glomsrd <teg@redhat.com>
1821- use the compat C++ compiler FTTB. Argh.
1822- add requirement of ncurses4 (see above)
1823
1824* Sun Oct 01 2000 Trond Eivind Glomsrd <teg@redhat.com>
1825- 3.23.25
1826- fix shutdown problem (#17956)
1827
1828* Tue Sep 26 2000 Trond Eivind Glomsrd <teg@redhat.com>
1829- Don't try to include no-longer-existing PUBLIC file
1830 as doc (#17532)
1831
1832* Thu Sep 12 2000 Trond Eivind Glomsrd <teg@redhat.com>
1833- rename config file to /etc/my.cnf, which is what
1834 mysqld wants... doh. (#17432)
1835- include a changed safe_mysqld, so the pid file option
1836 works.
1837- make mysql dir world readable to they can access the
1838 mysql socket. (#17432)
1839- 3.23.24
1840
1841* Wed Sep 06 2000 Trond Eivind Glomsrd <teg@redhat.com>
1842- 3.23.23
1843
1844* Sun Aug 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1845- Add "|| :" to condrestart to avoid non-zero exit code
1846
1847* Thu Aug 24 2000 Trond Eivind Glomsrd <teg@redhat.com>
1848- it's mysql.com, not mysql.org and use correct path to
1849 source (#16830)
1850
1851* Wed Aug 16 2000 Trond Eivind Glomsrd <teg@redhat.com>
1852- source file from /etc/rc.d, not /etc/rd.d. Doh.
1853
1854* Sun Aug 13 2000 Trond Eivind Glomsrd <teg@redhat.com>
1855- don't run ldconfig -n, it doesn't update ld.so.cache
1856 (#16034)
1857- include some missing binaries
1858- use safe_mysqld to start the server (request from
1859 mysql developers)
1860
1861* Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
1862- condrestart fixes
1863
1864* Mon Aug 01 2000 Trond Eivind Glomsrd <teg@redhat.com>
1865- 3.23.22. Disable the old patches, they're now in.
1866
1867* Thu Jul 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1868- bugfixes in the initscript
1869- move the .so link to the devel package
1870
1871* Wed Jul 19 2000 Trond Eivind Glomsrd <teg@redhat.com>
1872- rebuild due to glibc changes
1873
1874* Tue Jul 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1875- disable compiler patch
1876- don't include info directory file
1877
1878* Mon Jul 17 2000 Trond Eivind Glomsrd <teg@redhat.com>
1879- move back to /etc/rc.d/init.d
1880
1881* Fri Jul 14 2000 Trond Eivind Glomsrd <teg@redhat.com>
1882- more cleanups in initscript
1883
1884* Thu Jul 13 2000 Trond Eivind Glomsrd <teg@redhat.com>
1885- add a patch to work around compiler bug
1886 (from monty@mysql.com)
1887
1888* Wed Jul 12 2000 Trond Eivind Glomsrd <teg@redhat.com>
1889- don't build the SQL daemon statically (glibc problems)
1890- fix the logrotate script - only flush log if mysql
1891 is running
1892- change the reloading procedure
1893- remove icon - glint is obsolete a long time ago
1894
1895* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
1896- automatic rebuild
1897
1898* Mon Jul 10 2000 Trond Eivind Glomsrd <teg@redhat.com>
1899- try the new compiler again
1900- build the SQL daemon statically
1901- add compile time support for complex charsets
1902- enable assembler
1903- more cleanups in initscript
1904
1905* Sun Jul 09 2000 Trond Eivind Glomsrd <teg@redhat.com>
1906- use old C++ compiler
1907- Exclusivearch x86
1908
1909* Sat Jul 08 2000 Trond Eivind Glomsrd <teg@redhat.com>
1910- move .so files to devel package
1911- more cleanups
1912- exclude sparc for now
1913
1914* Wed Jul 05 2000 Trond Eivind Glomsrd <teg@redhat.com>
1915- 3.23.21
1916- remove file from /etc/sysconfig
1917- Fix initscript a bit - initialization of databases doesn't
1918 work yet
1919- specify the correct licenses
1920- include a /etc/my.conf (empty, FTTB)
1921- add conditional restart to spec file
1922
1923* Tue Jul 2 2000 Jakub Jelinek <jakub@redhat.com>
1924- Rebuild with new C++
1925
1926* Fri Jun 30 2000 Trond Eivind Glomsrd <teg@redhat.com>
1927- update to 3.23.20
1928- use %%configure, %%makeinstall, %%{_tmppath}, %%{_mandir},
1929 %%{_infodir}, /etc/init.d
1930- remove the bench package
1931- change some of the descriptions a little bit
1932- fix the init script
1933- some compile fixes
1934- specify mysql user
1935- use mysql uid 27 (postgresql is 26)
1936- don't build on ia64
1937
1938* Sat Feb 26 2000 Jos Vos <jos@xos.nl>
1939- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
1940- Upgrade from version 3.22.27 to 3.22.32.
1941- Do "make install" instead of "make install-strip", because "install -s"
1942 now appears to fail on various scripts. Afterwards, strip manually.
1943- Reorganize subpackages, according to common Red Hat packages: the client
1944 program and shared library become the base package and the server and
1945 some accompanying files are now in a separate server package. The
1946 server package implicitly requires the base package (shared library),
1947 but we have added a manual require tag anyway (because of the shared
1948 config file, and more).
1949- Rename the mysql-benchmark subpackage to mysql-bench.
1950
1951* Mon Jan 31 2000 Jos Vos <jos@xos.nl>
1952- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
1953- Add post(un)install scripts for updating ld.so.conf (client subpackage).
1954
1955* Sun Nov 21 1999 Jos Vos <jos@xos.nl>
1956- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
1957- Initial version.
1958- Some ideas borrowed from Red Hat Powertools 6.1, although this spec
1959 file is a full rewrite from scratch.
01960
=== added file 'Percona-Server/SPECIFIC-ULN/scriptstub.c'
--- Percona-Server/SPECIFIC-ULN/scriptstub.c 1970-01-01 00:00:00 +0000
+++ Percona-Server/SPECIFIC-ULN/scriptstub.c 2012-12-17 04:11:35 +0000
@@ -0,0 +1,32 @@
1#include <stdio.h>
2#include <stdlib.h>
3#include <string.h>
4#include <unistd.h>
5
6/* Translate call of myself into call of same-named script in LIBDIR */
7/* The macro LIBDIR must be defined as a double-quoted string */
8
9int main (int argc, char **argv)
10{
11 char *basename;
12 char *fullname;
13 char **newargs;
14 int i;
15
16 basename = strrchr(argv[0], '/');
17 if (basename)
18 basename++;
19 else
20 basename = argv[0];
21 fullname = malloc(strlen(LIBDIR) + strlen(basename) + 2);
22 sprintf(fullname, "%s/%s", LIBDIR, basename);
23 newargs = malloc((argc+1) * sizeof(char *));
24 newargs[0] = fullname;
25 for (i = 1; i < argc; i++)
26 newargs[i] = argv[i];
27 newargs[argc] = NULL;
28
29 execvp(fullname, newargs);
30
31 return 1;
32}
033
=== modified file 'Percona-Server/VERSION'
--- Percona-Server/VERSION 2012-10-16 06:21:51 +0000
+++ Percona-Server/VERSION 2012-12-17 04:11:35 +0000
@@ -1,4 +1,4 @@
1MYSQL_VERSION_MAJOR=51MYSQL_VERSION_MAJOR=5
2MYSQL_VERSION_MINOR=62MYSQL_VERSION_MINOR=6
3MYSQL_VERSION_PATCH=73MYSQL_VERSION_PATCH=8
4MYSQL_VERSION_EXTRA=-rc4MYSQL_VERSION_EXTRA=-rc
55
=== modified file 'Percona-Server/client/CMakeLists.txt'
--- Percona-Server/client/CMakeLists.txt 2012-08-22 01:40:20 +0000
+++ Percona-Server/client/CMakeLists.txt 2012-12-17 04:11:35 +0000
@@ -26,6 +26,11 @@
26 ${CMAKE_CURRENT_BINARY_DIR}26 ${CMAKE_CURRENT_BINARY_DIR}
27)27)
2828
29
30## We will need libeay32.dll and ssleay32.dll when running client executables.
31COPY_OPENSSL_DLLS(copy_openssl_client)
32
33
29ADD_DEFINITIONS(${READLINE_DEFINES})34ADD_DEFINITIONS(${READLINE_DEFINES})
30ADD_DEFINITIONS(${SSL_DEFINES})35ADD_DEFINITIONS(${SSL_DEFINES})
31MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc sql_string.cc)36MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc sql_string.cc)
3237
=== modified file 'Percona-Server/client/client_priv.h'
--- Percona-Server/client/client_priv.h 2012-10-16 06:21:51 +0000
+++ Percona-Server/client/client_priv.h 2012-12-17 04:11:35 +0000
@@ -90,6 +90,7 @@
90 OPT_DEFAULT_PLUGIN,90 OPT_DEFAULT_PLUGIN,
91 OPT_RAW_OUTPUT, OPT_WAIT_SERVER_ID, OPT_STOP_NEVER,91 OPT_RAW_OUTPUT, OPT_WAIT_SERVER_ID, OPT_STOP_NEVER,
92 OPT_BINLOG_ROWS_EVENT_MAX_SIZE,92 OPT_BINLOG_ROWS_EVENT_MAX_SIZE,
93 OPT_HISTIGNORE,
93 OPT_BINARY_MODE,94 OPT_BINARY_MODE,
94 OPT_SSL_CRL, OPT_SSL_CRLPATH,95 OPT_SSL_CRL, OPT_SSL_CRLPATH,
95 OPT_MYSQLBINLOG_SKIP_GTIDS,96 OPT_MYSQLBINLOG_SKIP_GTIDS,
9697
=== modified file 'Percona-Server/client/mysql.cc'
--- Percona-Server/client/mysql.cc 2012-10-16 06:21:51 +0000
+++ Percona-Server/client/mysql.cc 2012-12-17 04:11:35 +0000
@@ -167,6 +167,8 @@
167 *opt_init_command= 0;167 *opt_init_command= 0;
168static char *histfile;168static char *histfile;
169static char *histfile_tmp;169static char *histfile_tmp;
170static char *opt_histignore= NULL;
171DYNAMIC_STRING histignore_buffer;
170static String glob_buffer,old_buffer;172static String glob_buffer,old_buffer;
171static String processed_prompt;173static String processed_prompt;
172static char *full_username=0,*part_username=0,*default_prompt=0;174static char *full_username=0,*part_username=0,*default_prompt=0;
@@ -290,6 +292,17 @@
290static void add_int_to_prompt(int toadd);292static void add_int_to_prompt(int toadd);
291static int get_result_width(MYSQL_RES *res);293static int get_result_width(MYSQL_RES *res);
292static int get_field_disp_length(MYSQL_FIELD * field);294static int get_field_disp_length(MYSQL_FIELD * field);
295static int normalize_dbname(const char *line, char *buff, uint buff_size);
296static int get_quote_count(const char *line);
297
298#if defined(HAVE_READLINE)
299static void add_filtered_history(const char *string);
300static my_bool check_histignore(const char *string);
301static my_bool parse_histignore();
302static my_bool init_hist_patterns();
303static void free_hist_patterns();
304DYNAMIC_ARRAY histignore_patterns;
305#endif /* HAVE_READLINE */
293306
294/* A structure which contains information on the commands this program307/* A structure which contains information on the commands this program
295 can understand. */308 can understand. */
@@ -1309,6 +1322,29 @@
1309 initialize_readline((char*) my_progname);1322 initialize_readline((char*) my_progname);
1310 if (!status.batch && !quick && !opt_html && !opt_xml)1323 if (!status.batch && !quick && !opt_html && !opt_xml)
1311 {1324 {
1325 init_dynamic_string(&histignore_buffer, "*IDENTIFIED*:*PASSWORD*",
1326 1024, 1024);
1327
1328 /*
1329 More history-ignore patterns can be supplied using either --histignore
1330 option or MYSQL_HISTIGNORE environment variable. If supplied, it will
1331 get appended to the default pattern (*IDENTIFIED*:*PASSWORD*). In case
1332 both are specified, pattern(s) supplied using --histignore option will
1333 be used.
1334 */
1335 if (opt_histignore)
1336 {
1337 dynstr_append(&histignore_buffer, ":");
1338 dynstr_append(&histignore_buffer, opt_histignore);
1339 }
1340 else if (getenv("MYSQL_HISTIGNORE"))
1341 {
1342 dynstr_append(&histignore_buffer, ":");
1343 dynstr_append(&histignore_buffer, getenv("MYSQL_HISTIGNORE"));
1344 }
1345
1346 parse_histignore();
1347
1312 /* read-history from file, default ~/.mysql_history*/1348 /* read-history from file, default ~/.mysql_history*/
1313 if (getenv("MYSQL_HISTFILE"))1349 if (getenv("MYSQL_HISTFILE"))
1314 histfile=my_strdup(getenv("MYSQL_HISTFILE"),MYF(MY_WME));1350 histfile=my_strdup(getenv("MYSQL_HISTFILE"),MYF(MY_WME));
@@ -1379,6 +1415,11 @@
1379 completion_hash_free(&ht);1415 completion_hash_free(&ht);
1380 free_root(&hash_mem_root,MYF(0));1416 free_root(&hash_mem_root,MYF(0));
13811417
1418 my_free(opt_histignore);
1419 my_free(histfile);
1420 my_free(histfile_tmp);
1421 dynstr_free(&histignore_buffer);
1422 free_hist_patterns();
1382#endif1423#endif
1383 if (sig >= 0)1424 if (sig >= 0)
1384 put_info(sig ? "Aborted" : "Bye", INFO_RESULT);1425 put_info(sig ? "Aborted" : "Bye", INFO_RESULT);
@@ -1388,8 +1429,6 @@
1388 my_free(server_version);1429 my_free(server_version);
1389 my_free(opt_password);1430 my_free(opt_password);
1390 my_free(opt_mysql_unix_port);1431 my_free(opt_mysql_unix_port);
1391 my_free(histfile);
1392 my_free(histfile_tmp);
1393 my_free(current_db);1432 my_free(current_db);
1394 my_free(current_host);1433 my_free(current_host);
1395 my_free(current_user);1434 my_free(current_user);
@@ -1710,6 +1749,10 @@
1710 "Default authentication client-side plugin to use.",1749 "Default authentication client-side plugin to use.",
1711 &opt_default_auth, &opt_default_auth, 0,1750 &opt_default_auth, &opt_default_auth, 0,
1712 GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},1751 GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1752 {"histignore", OPT_HISTIGNORE, "A colon-separated list of patterns "
1753 "to keep statements from getting logged into mysql history.",
1754 &opt_histignore, &opt_histignore, 0, GET_STR_ALLOC, REQUIRED_ARG,
1755 0, 0, 0, 0, 0, 0},
1713 {"binary-mode", OPT_BINARY_MODE,1756 {"binary-mode", OPT_BINARY_MODE,
1714 "By default, ASCII '\\0' is disallowed and '\\r\\n' is translated to '\\n'. "1757 "By default, ASCII '\\0' is disallowed and '\\r\\n' is translated to '\\n'. "
1715 "This switch turns off both features, and also turns off parsing of all client"1758 "This switch turns off both features, and also turns off parsing of all client"
@@ -2113,7 +2156,7 @@
2113 in_string=0;2156 in_string=0;
2114#ifdef HAVE_READLINE2157#ifdef HAVE_READLINE
2115 if (interactive && status.add_to_history && not_in_history(line))2158 if (interactive && status.add_to_history && not_in_history(line))
2116 add_history(line);2159 add_filtered_history(line);
2117#endif2160#endif
2118 continue;2161 continue;
2119 }2162 }
@@ -2275,7 +2318,7 @@
2275 DBUG_RETURN(0);2318 DBUG_RETURN(0);
2276#ifdef HAVE_READLINE2319#ifdef HAVE_READLINE
2277 if (status.add_to_history && line[0] && not_in_history(line))2320 if (status.add_to_history && line[0] && not_in_history(line))
2278 add_history(line);2321 add_filtered_history(line);
2279#endif2322#endif
2280 char *end_of_line= line + line_length;2323 char *end_of_line= line + line_length;
22812324
@@ -2611,7 +2654,7 @@
2611 ptr++;2654 ptr++;
2612 }2655 }
2613 if (total_lines > 1) 2656 if (total_lines > 1)
2614 add_history(fixed_buffer.ptr());2657 add_filtered_history(fixed_buffer.ptr());
2615}2658}
26162659
2617/* 2660/*
@@ -2913,6 +2956,95 @@
2913}2956}
2914}2957}
2915#endif2958#endif
2959
2960/* Add the given line to mysql history. */
2961static void add_filtered_history(const char *string)
2962{
2963 if (!check_histignore(string))
2964 add_history(string);
2965}
2966
2967
2968/**
2969 Perform a check on the given string if it contains
2970 any of the histignore patterns.
2971
2972 @param string [IN] String that needs to be checked.
2973
2974 @return Operation status
2975 @retval 0 No match found
2976 @retval 1 Match found
2977*/
2978
2979static
2980my_bool check_histignore(const char *string)
2981{
2982 uint i;
2983 int rc;
2984
2985 LEX_STRING *tmp;
2986
2987 DBUG_ENTER("check_histignore");
2988
2989 for (i= 0; i < histignore_patterns.elements; i++)
2990 {
2991 tmp= dynamic_element(&histignore_patterns, i, LEX_STRING *);
2992 if ((rc= charset_info->coll->wildcmp(&my_charset_latin1,
2993 string, string + strlen(string),
2994 tmp->str, tmp->str + tmp->length,
2995 wild_prefix, wild_one,
2996 wild_many)) == 0)
2997 DBUG_RETURN(1);
2998 }
2999 DBUG_RETURN(0);
3000}
3001
3002
3003/**
3004 Parse the histignore list into pattern tokens.
3005
3006 @return Operation status
3007 @retval 0 Success
3008 @retval 1 Failure
3009*/
3010
3011static
3012my_bool parse_histignore()
3013{
3014 LEX_STRING pattern;
3015
3016 char *token;
3017 const char *search= ":";
3018
3019 DBUG_ENTER("parse_histignore");
3020
3021 if (init_hist_patterns())
3022 DBUG_RETURN(1);
3023
3024 token= strtok(histignore_buffer.str, search);
3025
3026 while(token != NULL)
3027 {
3028 pattern.str= token;
3029 pattern.length= strlen(pattern.str);
3030 insert_dynamic(&histignore_patterns, &pattern);
3031 token= strtok(NULL, search);
3032 }
3033 DBUG_RETURN(0);
3034}
3035
3036static
3037my_bool init_hist_patterns()
3038{
3039 return my_init_dynamic_array(&histignore_patterns,
3040 sizeof(LEX_STRING), 50, 50);
3041}
3042
3043static
3044void free_hist_patterns()
3045{
3046 delete_dynamic(&histignore_patterns);
3047}
2916#endif /* HAVE_READLINE */3048#endif /* HAVE_READLINE */
29173049
29183050
@@ -4309,8 +4441,23 @@
4309 int select_db;4441 int select_db;
43104442
4311 memset(buff, 0, sizeof(buff));4443 memset(buff, 0, sizeof(buff));
4312 strmake(buff, line, sizeof(buff) - 1);4444
4313 tmp= get_arg(buff, 0);4445 /*
4446 In case number of quotes exceed 2, we try to get
4447 the normalized db name.
4448 */
4449 if (get_quote_count(line) > 2)
4450 {
4451 if (normalize_dbname(line, buff, sizeof(buff)))
4452 return put_error(&mysql);
4453 tmp= buff;
4454 }
4455 else
4456 {
4457 strmake(buff, line, sizeof(buff) - 1);
4458 tmp= get_arg(buff, 0);
4459 }
4460
4314 if (!tmp || !*tmp)4461 if (!tmp || !*tmp)
4315 {4462 {
4316 put_info("USE must be followed by a database name", INFO_ERROR);4463 put_info("USE must be followed by a database name", INFO_ERROR);
@@ -4376,6 +4523,62 @@
4376 return 0;4523 return 0;
4377}4524}
43784525
4526/**
4527 Normalize database name.
4528
4529 @param line [IN] The command.
4530 @param buff [OUT] Normalized db name.
4531 @param buff_size [IN] Buffer size.
4532
4533 @return Operation status
4534 @retval 0 Success
4535 @retval 1 Failure
4536
4537 @note Sometimes server normilizes the database names
4538 & APIs like mysql_select_db() expect normalized
4539 database names. Since it is difficult to perform
4540 the name conversion/normalization on the client
4541 side, this function tries to get the normalized
4542 dbname (indirectly) from the server.
4543*/
4544
4545static int
4546normalize_dbname(const char *line, char *buff, uint buff_size)
4547{
4548 MYSQL_RES *res= NULL;
4549
4550 /* Send the "USE db" commmand to the server. */
4551 if (mysql_query(&mysql, line))
4552 return 1;
4553
4554 /*
4555 Now, get the normalized database name and store it
4556 into the buff.
4557 */
4558 if (!mysql_query(&mysql, "SELECT DATABASE()") &&
4559 (res= mysql_use_result(&mysql)))
4560 {
4561 MYSQL_ROW row= mysql_fetch_row(res);
4562 if (row && row[0])
4563 {
4564 size_t len= strlen(row[0]);
4565 /* Make sure there is enough room to store the dbname. */
4566 if ((len > buff_size) || ! memcpy(buff, row[0], len))
4567 {
4568 mysql_free_result(res);
4569 return 1;
4570 }
4571 }
4572 mysql_free_result(res);
4573 }
4574
4575 /* Restore the original database. */
4576 if (current_db && mysql_select_db(&mysql, current_db))
4577 return 1;
4578
4579 return 0;
4580}
4581
4379static int4582static int
4380com_warnings(String *buffer __attribute__((unused)),4583com_warnings(String *buffer __attribute__((unused)),
4381 char *line __attribute__((unused)))4584 char *line __attribute__((unused)))
@@ -4455,6 +4658,20 @@
4455 return valid_arg ? start : NullS;4658 return valid_arg ? start : NullS;
4456}4659}
44574660
4661/*
4662 Number of quotes present in the command's argument.
4663*/
4664static int
4665get_quote_count(const char *line)
4666{
4667 int quote_count;
4668 const char *ptr= line;
4669
4670 for(quote_count= 0; ptr ++ && *ptr; ptr= strpbrk(ptr, "\"\'`"))
4671 quote_count ++;
4672
4673 return quote_count;
4674}
44584675
4459static int4676static int
4460sql_real_connect(char *host,char *database,char *user,char *password,4677sql_real_connect(char *host,char *database,char *user,char *password,
44614678
=== modified file 'Percona-Server/client/mysql_plugin.c'
--- Percona-Server/client/mysql_plugin.c 2012-02-28 09:11:34 +0000
+++ Percona-Server/client/mysql_plugin.c 2012-12-17 04:11:35 +0000
@@ -552,6 +552,11 @@
552{552{
553 char new_path[FN_REFLEN];553 char new_path[FN_REFLEN];
554 char source_path[FN_REFLEN];554 char source_path[FN_REFLEN];
555#if __WIN__
556 char win_abs_path[FN_REFLEN];
557 char self_name[FN_REFLEN];
558 const char *last_fn_libchar;
559#endif
555560
556 strcpy(source_path, base_path);561 strcpy(source_path, base_path);
557 strcat(source_path, subdir);562 strcat(source_path, subdir);
@@ -560,7 +565,33 @@
560 {565 {
561 strcpy(tool_path, new_path);566 strcpy(tool_path, new_path);
562 return 1;567 return 1;
568 }
569
570#if __WIN__
571 /*
572 On Windows above code will not be able to find the file since
573 path names are not absolute and file_exists works only with
574 absolute path names. Try to get the absolute path of current
575 exe and see if the file exists relative to the path of exe.
576 */
577 if (GetModuleFileName(NULL, self_name, FN_REFLEN -1) == 0)
578 strncpy(self_name, my_progname, FN_REFLEN - 1);
579 self_name[FN_REFLEN - 1]= '\0';
580
581 last_fn_libchar= strrchr(self_name, FN_LIBCHAR);
582 if (NULL != last_fn_libchar)
583 {
584 strncpy(win_abs_path, self_name, last_fn_libchar - self_name + 1 );
585 win_abs_path[(last_fn_libchar - self_name + 1)]= 0;
586 strncat(win_abs_path, new_path,
587 sizeof(win_abs_path) - strlen(win_abs_path) - 1);
588 if (file_exists(win_abs_path))
589 {
590 strcpy(tool_path, win_abs_path);
591 return 1;
592 }
563 }593 }
594#endif
564 return 0;595 return 0;
565}596}
566597
@@ -967,9 +998,11 @@
967 int i= 0;998 int i= 0;
968999
969 const char *paths[]= {1000 const char *paths[]= {
970 opt_mysqld, opt_basedir, opt_my_print_defaults, "/usr",1001 opt_mysqld, opt_basedir, opt_my_print_defaults, "",
971 "/usr/local/mysql", "/usr/sbin", "/usr/share", "/extra", "/extra/debug",1002 "/usr", "/usr/local/mysql", "/usr/sbin", "/usr/share",
972 "/extra/release", "/bin", "/usr/bin", "/mysql/bin"1003 "/extra", "/extra/debug", "/../../extra/debug",
1004 "/release/", "/extra/release", "/../../extra/release",
1005 "/bin", "/usr/bin", "/mysql/bin"
973 };1006 };
974 for (i= 0; i < (int)array_elements(paths); i++)1007 for (i= 0; i < (int)array_elements(paths); i++)
975 {1008 {
9761009
=== modified file 'Percona-Server/client/mysqladmin.cc'
--- Percona-Server/client/mysqladmin.cc 2012-10-16 06:21:51 +0000
+++ Percona-Server/client/mysqladmin.cc 2012-12-17 04:11:35 +0000
@@ -25,6 +25,7 @@
25#include <mysql.h>25#include <mysql.h>
26#include <sql_common.h>26#include <sql_common.h>
27#include <welcome_copyright_notice.h> /* ORACLE_WELCOME_COPYRIGHT_NOTICE */27#include <welcome_copyright_notice.h> /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
28#include <mysqld_error.h> /* to check server error codes */
2829
29#define ADMIN_VERSION "8.42"30#define ADMIN_VERSION "8.42"
30#define MAX_MYSQL_VAR 51231#define MAX_MYSQL_VAR 512
@@ -625,7 +626,8 @@
625626
626 for (; argc > 0 ; argv++,argc--)627 for (; argc > 0 ; argv++,argc--)
627 {628 {
628 switch (find_type(argv[0],&command_typelib, FIND_TYPE_BASIC)) {629 int option;
630 switch (option= find_type(argv[0], &command_typelib, FIND_TYPE_BASIC)) {
629 case ADMIN_CREATE:631 case ADMIN_CREATE:
630 {632 {
631 char buff[FN_REFLEN+20];633 char buff[FN_REFLEN+20];
@@ -939,6 +941,11 @@
939 char buff[128],crypted_pw[64];941 char buff[128],crypted_pw[64];
940 time_t start_time;942 time_t start_time;
941 char *typed_password= NULL, *verified= NULL;943 char *typed_password= NULL, *verified= NULL;
944 bool log_off= true, err= false;
945 int retry_count= 0; /* Attempts to SET PASSWORD */
946
947 bool old= (option == ADMIN_OLD_PASSWORD);
948
942 /* Do initialization the same way as we do in mysqld */949 /* Do initialization the same way as we do in mysqld */
943 start_time=time((time_t*) 0);950 start_time=time((time_t*) 0);
944 randominit(&rand_st,(ulong) start_time,(ulong) start_time/2);951 randominit(&rand_st,(ulong) start_time,(ulong) start_time/2);
@@ -956,7 +963,8 @@
956 if (strcmp(typed_password, verified) != 0)963 if (strcmp(typed_password, verified) != 0)
957 {964 {
958 my_printf_error(0,"Passwords don't match",MYF(ME_BELL));965 my_printf_error(0,"Passwords don't match",MYF(ME_BELL));
959 return -1;966 err= true;
967 goto error;
960 }968 }
961 }969 }
962 else970 else
@@ -964,8 +972,6 @@
964972
965 if (typed_password[0])973 if (typed_password[0])
966 {974 {
967 bool old= (find_type(argv[0], &command_typelib, FIND_TYPE_BASIC) ==
968 ADMIN_OLD_PASSWORD);
969#ifdef __WIN__975#ifdef __WIN__
970 size_t pw_len= strlen(typed_password);976 size_t pw_len= strlen(typed_password);
971 if (pw_len > 1 && typed_password[0] == '\'' &&977 if (pw_len > 1 && typed_password[0] == '\'' &&
@@ -974,16 +980,23 @@
974 " your command\nline client, as you might have expected.\n");980 " your command\nline client, as you might have expected.\n");
975#endif981#endif
976 /*982 /*
977 If we don't already know to use an old-style password, see what983 If we don't already know to use an old-style password, see
978 the server is using984 (if possible) what the server is using.
979 */985 */
980 if (!old)986 if (!old)
981 {987 {
982 if (mysql_query(mysql, "SHOW VARIABLES LIKE 'old_passwords'"))988 if (mysql_query(mysql, "SHOW VARIABLES LIKE 'old_passwords'"))
983 {989 {
984 my_printf_error(0, "Could not determine old_passwords setting from server; error: '%s'",990 bool fatal= (mysql_errno(mysql) != ER_MUST_CHANGE_PASSWORD);
985 error_flags, mysql_error(mysql));991 if (fatal || opt_verbose)
986 return -1;992 my_printf_error(0, "Could not determine old_passwords setting "
993 "from server; error: '%s'.", error_flags,
994 mysql_error(mysql));
995 if (fatal)
996 {
997 err= true;
998 goto error;
999 }
987 }1000 }
988 else1001 else
989 {1002 {
@@ -992,20 +1005,36 @@
992 {1005 {
993 my_printf_error(0,1006 my_printf_error(0,
994 "Could not get old_passwords setting from "1007 "Could not get old_passwords setting from "
995 "server; error: '%s'",1008 "server; error: '%s'.",
996 error_flags, mysql_error(mysql));1009 error_flags, mysql_error(mysql));
997 return -1;1010 err= true;
1011 goto error;
998 }1012 }
999 if (!mysql_num_rows(res))1013 if (!mysql_num_rows(res))
1000 old= 1;1014 old= 1;
1001 else1015 else
1002 {1016 {
1003 MYSQL_ROW row= mysql_fetch_row(res);1017 MYSQL_ROW row= mysql_fetch_row(res);
1004 old= !strncmp(row[1], "ON", 2);1018 old= (!strncmp(row[1], "ON", 2) || !strncmp(row[1], "1", 1));
1005 }1019 }
1006 mysql_free_result(res);1020 mysql_free_result(res);
1007 }1021 }
1008 }1022 }
1023 /* turn logging off if we can */
1024 if (mysql_query(mysql,"set sql_log_off=1"))
1025 {
1026 if (opt_verbose)
1027 fprintf(stderr, "Note: Can't turn off logging; '%s'", mysql_error(mysql));
1028 log_off= false;
1029 }
1030
1031retry:
1032 /*
1033 In case the password_expired flag is set ('Y'), then there is no way
1034 to determine the password format. So, we first try to set the
1035 password using native format. If it fails with ER_PASSWORD_LENGTH,
1036 we will give one more try with old format.
1037 */
1009 if (old)1038 if (old)
1010 make_scrambled_password_323(crypted_pw, typed_password);1039 make_scrambled_password_323(crypted_pw, typed_password);
1011 else1040 else
@@ -1013,21 +1042,27 @@
1013 }1042 }
1014 else1043 else
1015 crypted_pw[0]=0; /* No password */1044 crypted_pw[0]=0; /* No password */
1016 sprintf(buff,"set password='%s',sql_log_off=0",crypted_pw);1045
10171046 sprintf(buff, "set password='%s'", crypted_pw);
1018 if (mysql_query(mysql,"set sql_log_off=1"))1047
1019 {
1020 my_printf_error(0, "Can't turn off logging; error: '%s'",
1021 error_flags, mysql_error(mysql));
1022 return -1;
1023 }
1024 if (mysql_query(mysql,buff))1048 if (mysql_query(mysql,buff))
1025 {1049 {
1050 if ((mysql_errno(mysql) == ER_PASSWD_LENGTH) &&
1051 !(option == ADMIN_OLD_PASSWORD) && !retry_count)
1052 {
1053 /* Try to set the password using old format. */
1054 memset(crypted_pw, 0, 64);
1055 old= 0;
1056 retry_count ++;
1057 goto retry;
1058 }
1059
1026 if (mysql_errno(mysql)!=1290)1060 if (mysql_errno(mysql)!=1290)
1027 {1061 {
1028 my_printf_error(0,"unable to change password; error: '%s'",1062 my_printf_error(0,"unable to change password; error: '%s'",
1029 error_flags, mysql_error(mysql));1063 error_flags, mysql_error(mysql));
1030 return -1;1064 err= true;
1065 goto error;
1031 }1066 }
1032 else1067 else
1033 {1068 {
@@ -1041,15 +1076,25 @@
1041 " --skip-grant-tables).\n"1076 " --skip-grant-tables).\n"
1042 "Use: \"mysqladmin flush-privileges password '*'\""1077 "Use: \"mysqladmin flush-privileges password '*'\""
1043 " instead", error_flags);1078 " instead", error_flags);
1044 return -1;1079 err= true;
1080 goto error;
1045 }1081 }
1046 }1082 }
1083 if (log_off && mysql_query(mysql, "set sql_log_off=0"))
1084 {
1085 if (opt_verbose)
1086 fprintf(stderr, "Note: Can't turn on logging; '%s'", mysql_error(mysql));
1087 }
1088error:
1047 /* free up memory from prompted password */1089 /* free up memory from prompted password */
1048 if (typed_password != argv[1]) 1090 if (typed_password != argv[1])
1049 {1091 {
1050 my_free(typed_password);1092 my_free(typed_password);
1051 my_free(verified);1093 my_free(verified);
1052 }1094 }
1095 if (err)
1096 return -1;
1097
1053 argc--; argv++;1098 argc--; argv++;
1054 break;1099 break;
1055 }1100 }
10561101
=== modified file 'Percona-Server/client/mysqltest.cc'
--- Percona-Server/client/mysqltest.cc 2012-10-16 06:21:51 +0000
+++ Percona-Server/client/mysqltest.cc 2012-12-17 04:11:35 +0000
@@ -1049,6 +1049,8 @@
1049 fprintf(stderr, "---- %d. ----\n", row_num);1049 fprintf(stderr, "---- %d. ----\n", row_num);
1050 for(i= 0; i < num_fields; i++)1050 for(i= 0; i < num_fields; i++)
1051 {1051 {
1052 /* looks ugly , but put here to convince parfait */
1053 assert(lengths);
1052 fprintf(stderr, "%s\t%.*s\n",1054 fprintf(stderr, "%s\t%.*s\n",
1053 fields[i].name,1055 fields[i].name,
1054 (int)lengths[i], row[i] ? row[i] : "NULL");1056 (int)lengths[i], row[i] ? row[i] : "NULL");
@@ -1123,6 +1125,8 @@
11231125
1124 for(i= 0; i < num_fields; i++)1126 for(i= 0; i < num_fields; i++)
1125 {1127 {
1128 /* looks ugly , but put here to convince parfait */
1129 assert(lengths);
1126 fprintf(stderr, "%.*s ", (int)lengths[i],1130 fprintf(stderr, "%.*s ", (int)lengths[i],
1127 row[i] ? row[i] : "NULL");1131 row[i] ? row[i] : "NULL");
1128 }1132 }
@@ -7125,8 +7129,12 @@
7125 uint i;7129 uint i;
7126 lengths = mysql_fetch_lengths(res);7130 lengths = mysql_fetch_lengths(res);
7127 for (i = 0; i < num_fields; i++)7131 for (i = 0; i < num_fields; i++)
7132 {
7133 /* looks ugly , but put here to convince parfait */
7134 assert(lengths);
7128 append_field(ds, i, &fields[i],7135 append_field(ds, i, &fields[i],
7129 row[i], lengths[i], !row[i]);7136 row[i], lengths[i], !row[i]);
7137 }
7130 if (!display_result_vertically)7138 if (!display_result_vertically)
7131 dynstr_append_mem(ds, "\n", 1);7139 dynstr_append_mem(ds, "\n", 1);
7132 }7140 }
@@ -7849,6 +7857,14 @@
7849 }7857 }
7850 revert_properties();7858 revert_properties();
78517859
7860 /*
7861 We save the return code (mysql_stmt_errno(stmt)) from the last call sent
7862 to the server into the mysqltest builtin variable $mysql_errno. This
7863 variable then can be used from the test case itself.
7864 */
7865
7866 var_set_errno(mysql_stmt_errno(stmt));
7867
7852 /* Close the statement if - no reconnect, need new prepare */7868 /* Close the statement if - no reconnect, need new prepare */
7853 if (mysql->reconnect)7869 if (mysql->reconnect)
7854 {7870 {
@@ -7856,13 +7872,6 @@
7856 cur_con->stmt= NULL;7872 cur_con->stmt= NULL;
7857 }7873 }
78587874
7859 /*
7860 We save the return code (mysql_stmt_errno(stmt)) from the last call sent
7861 to the server into the mysqltest builtin variable $mysql_errno. This
7862 variable then can be used from the test case itself.
7863 */
7864
7865 var_set_errno(mysql_stmt_errno(stmt));
78667875
7867 DBUG_VOID_RETURN;7876 DBUG_VOID_RETURN;
7868}7877}
@@ -10133,6 +10142,7 @@
10133 else10142 else
10134 {10143 {
10135 new_set=make_new_set(&sets);10144 new_set=make_new_set(&sets);
10145 assert(new_set);
10136 set=sets.set+set_nr; /* if realloc */10146 set=sets.set+set_nr; /* if realloc */
10137 new_set->table_offset=set->table_offset;10147 new_set->table_offset=set->table_offset;
10138 new_set->found_len=set->found_len;10148 new_set->found_len=set->found_len;
1013910149
=== modified file 'Percona-Server/cmake/configure.pl'
--- Percona-Server/cmake/configure.pl 2012-08-22 01:40:20 +0000
+++ Percona-Server/cmake/configure.pl 2012-12-17 04:11:35 +0000
@@ -239,6 +239,16 @@
239 $cmakeargs = $cmakeargs." -DENABLE_GCOV=ON"; 239 $cmakeargs = $cmakeargs." -DENABLE_GCOV=ON";
240 next;240 next;
241 }241 }
242 if ($option =~ /with-client-ldflags/)
243 {
244 print("configure.pl : ignoring $option\n");
245 next;
246 }
247 if ($option =~ /with-mysqld-ldflags=/)
248 {
249 print("configure.pl : ignoring $option\n");
250 next;
251 }
242252
243 $option = uc($option);253 $option = uc($option);
244 $option =~ s/-/_/g;254 $option =~ s/-/_/g;
245255
=== modified file 'Percona-Server/cmake/create_initial_db.cmake.in'
--- Percona-Server/cmake/create_initial_db.cmake.in 2012-08-31 14:03:47 +0000
+++ Percona-Server/cmake/create_initial_db.cmake.in 2012-12-17 04:11:35 +0000
@@ -74,7 +74,7 @@
7474
75GET_FILENAME_COMPONENT(CWD . ABSOLUTE)75GET_FILENAME_COMPONENT(CWD . ABSOLUTE)
7676
77IF(WITH_SSL_PATH)77IF(WITH_SSL_PATH AND HAVE_CRYPTO_DLL AND HAVE_OPENSSL_DLL)
78 GET_FILENAME_COMPONENT(MYSQLD_DIR "${MYSQLD_EXECUTABLE}" PATH)78 GET_FILENAME_COMPONENT(MYSQLD_DIR "${MYSQLD_EXECUTABLE}" PATH)
79 GET_FILENAME_COMPONENT(CRYPTO_NAME "${CRYPTO_LIBRARY}" NAME_WE)79 GET_FILENAME_COMPONENT(CRYPTO_NAME "${CRYPTO_LIBRARY}" NAME_WE)
80 GET_FILENAME_COMPONENT(OPENSSL_NAME "${OPENSSL_LIBRARY}" NAME_WE)80 GET_FILENAME_COMPONENT(OPENSSL_NAME "${OPENSSL_LIBRARY}" NAME_WE)
@@ -88,10 +88,13 @@
88 COMMAND "@CMAKE_COMMAND@" -E echo Executing ${BOOTSTRAP_COMMAND}88 COMMAND "@CMAKE_COMMAND@" -E echo Executing ${BOOTSTRAP_COMMAND}
89)89)
90EXECUTE_PROCESS (90EXECUTE_PROCESS (
91 COMMAND "@CMAKE_COMMAND@" -E echo input file bootstrap.sql, current directory ${CWD}91 COMMAND "@CMAKE_COMMAND@" -E
92 echo input file bootstrap.sql, current directory ${CWD}
92)93)
93EXECUTE_PROCESS ( 94EXECUTE_PROCESS (
94 COMMAND ${BOOTSTRAP_COMMAND} INPUT_FILE bootstrap.sql OUTPUT_VARIABLE OUT95 COMMAND ${BOOTSTRAP_COMMAND}
96 INPUT_FILE bootstrap.sql
97 OUTPUT_VARIABLE OUT
95 ERROR_VARIABLE ERR98 ERROR_VARIABLE ERR
96 RESULT_VARIABLE RESULT99 RESULT_VARIABLE RESULT
97 )100 )
@@ -100,3 +103,6 @@
100 MESSAGE(FATAL_ERROR "Could not create initial database \n ${OUT} \n ${ERR}")103 MESSAGE(FATAL_ERROR "Could not create initial database \n ${OUT} \n ${ERR}")
101ENDIF()104ENDIF()
102 105
106EXECUTE_PROCESS (
107 COMMAND "@CMAKE_COMMAND@" -E touch ${CMAKE_CURRENT_BINARY_DIR}/initdb.dep
108)
103109
=== modified file 'Percona-Server/cmake/info_macros.cmake.in'
--- Percona-Server/cmake/info_macros.cmake.in 2012-07-11 05:06:58 +0000
+++ Percona-Server/cmake/info_macros.cmake.in 2012-12-17 04:11:35 +0000
@@ -1,4 +1,4 @@
1# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.1# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2# 2#
3# This program is free software; you can redistribute it and/or modify3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by4# it under the terms of the GNU General Public License as published by
@@ -89,9 +89,11 @@
8989
90 FILE(WRITE ${INFO_BIN} "===== Information about the build process: =====\n")90 FILE(WRITE ${INFO_BIN} "===== Information about the build process: =====\n")
91 IF (WIN32)91 IF (WIN32)
92 EXECUTE_PROCESS(COMMAND cmd /c date /T OUTPUT_VARIABLE TMP_DATE)92 EXECUTE_PROCESS(COMMAND cmd /c date /T
93 OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
93 ELSEIF(UNIX)94 ELSEIF(UNIX)
94 EXECUTE_PROCESS(COMMAND date "+%Y-%m-%d %H:%M:%S" OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)95 EXECUTE_PROCESS(COMMAND date "+%Y-%m-%d %H:%M:%S"
96 OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
95 ELSE()97 ELSE()
96 SET(TMP_DATE "(no date command known for this platform)")98 SET(TMP_DATE "(no date command known for this platform)")
97 ENDIF()99 ENDIF()
98100
=== modified file 'Percona-Server/cmake/install_layout.cmake'
--- Percona-Server/cmake/install_layout.cmake 2011-06-30 15:50:45 +0000
+++ Percona-Server/cmake/install_layout.cmake 2012-12-17 04:11:35 +0000
@@ -1,4 +1,4 @@
1# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.1# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
2# 2#
3# This program is free software; you can redistribute it and/or modify3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by4# it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
24#24#
25# RPM25# RPM
26# Build as per default RPM layout, with prefix=/usr26# Build as per default RPM layout, with prefix=/usr
27# Note: The layout for ULN RPMs differs, see the "RPM" section.
27#28#
28# DEB29# DEB
29# Build as per STANDALONE, prefix=/opt/mysql/server-$major.$minor30# Build as per STANDALONE, prefix=/opt/mysql/server-$major.$minor
@@ -134,6 +135,10 @@
134#135#
135# RPM layout136# RPM layout
136#137#
138# See "SPECIFIC-ULN/mysql-5.5-libdir.patch" for the differences
139# which apply to RPMs in ULN (Oracle Linux), that patch file will
140# be applied at build time via "rpmbuild".
141#
137SET(INSTALL_BINDIR_RPM "bin")142SET(INSTALL_BINDIR_RPM "bin")
138SET(INSTALL_SBINDIR_RPM "sbin")143SET(INSTALL_SBINDIR_RPM "sbin")
139SET(INSTALL_SCRIPTDIR_RPM "bin")144SET(INSTALL_SCRIPTDIR_RPM "bin")
140145
=== modified file 'Percona-Server/cmake/os/Darwin.cmake'
--- Percona-Server/cmake/os/Darwin.cmake 2011-06-30 15:46:53 +0000
+++ Percona-Server/cmake/os/Darwin.cmake 2012-12-17 04:11:35 +0000
@@ -1,5 +1,4 @@
1# Copyright (c) 2010 Sun Microsystems, Inc.1# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
2# Use is subject to license terms.
3# 2#
4# This program is free software; you can redistribute it and/or modify3# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by4# it under the terms of the GNU General Public License as published by
@@ -33,3 +32,8 @@
33 ADD_DEFINITIONS(-fno-common)32 ADD_DEFINITIONS(-fno-common)
34 ENDIF()33 ENDIF()
35ENDIF()34ENDIF()
35
36# This is used for the version_compile_machine variable.
37IF(CMAKE_SIZEOF_VOID_P MATCHES 8)
38 SET(MYSQL_MACHINE_TYPE "x86_64")
39ENDIF()
3640
=== modified file 'Percona-Server/cmake/os/SunOS.cmake'
--- Percona-Server/cmake/os/SunOS.cmake 2011-06-30 15:46:53 +0000
+++ Percona-Server/cmake/os/SunOS.cmake 2012-12-17 04:11:35 +0000
@@ -1,4 +1,4 @@
1# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.1# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
2# 2#
3# This program is free software; you can redistribute it and/or modify3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by4# it under the terms of the GNU General Public License as published by
@@ -93,3 +93,8 @@
93 ENDIF()93 ENDIF()
94 ENDIF()94 ENDIF()
95ENDIF()95ENDIF()
96
97# This is used for the version_compile_machine variable.
98IF(CMAKE_SIZEOF_VOID_P MATCHES 8 AND CMAKE_SYSTEM_PROCESSOR MATCHES "i386")
99 SET(MYSQL_MACHINE_TYPE "x86_64")
100ENDIF()
96101
=== modified file 'Percona-Server/cmake/ssl.cmake'
--- Percona-Server/cmake/ssl.cmake 2012-10-16 06:21:51 +0000
+++ Percona-Server/cmake/ssl.cmake 2012-12-17 04:11:35 +0000
@@ -88,6 +88,27 @@
8888
89 IF(WITH_SSL STREQUAL "bundled")89 IF(WITH_SSL STREQUAL "bundled")
90 MYSQL_USE_BUNDLED_SSL()90 MYSQL_USE_BUNDLED_SSL()
91 # Reset some variables, in case we switch from /path/to/ssl to "bundled".
92 IF (WITH_SSL_PATH)
93 UNSET(WITH_SSL_PATH)
94 UNSET(WITH_SSL_PATH CACHE)
95 ENDIF()
96 IF (OPENSSL_ROOT_DIR)
97 UNSET(OPENSSL_ROOT_DIR)
98 UNSET(OPENSSL_ROOT_DIR CACHE)
99 ENDIF()
100 IF (OPENSSL_INCLUDE_DIR)
101 UNSET(OPENSSL_INCLUDE_DIR)
102 UNSET(OPENSSL_INCLUDE_DIR CACHE)
103 ENDIF()
104 IF (WIN32 AND OPENSSL_APPLINK_C)
105 UNSET(OPENSSL_APPLINK_C)
106 UNSET(OPENSSL_APPLINK_C CACHE)
107 ENDIF()
108 IF (OPENSSL_LIBRARIES)
109 UNSET(OPENSSL_LIBRARIES)
110 UNSET(OPENSSL_LIBRARIES CACHE)
111 ENDIF()
91 ELSEIF(WITH_SSL STREQUAL "system" OR112 ELSEIF(WITH_SSL STREQUAL "system" OR
92 WITH_SSL STREQUAL "yes" OR113 WITH_SSL STREQUAL "yes" OR
93 WITH_SSL_PATH114 WITH_SSL_PATH
@@ -108,6 +129,15 @@
108 NAMES openssl/ssl.h129 NAMES openssl/ssl.h
109 HINTS ${OPENSSL_ROOT_DIR}/include130 HINTS ${OPENSSL_ROOT_DIR}/include
110 )131 )
132
133 IF (WIN32)
134 FIND_FILE(OPENSSL_APPLINK_C
135 NAMES openssl/applink.c
136 HINTS ${OPENSSL_ROOT_DIR}/include
137 )
138 MESSAGE(STATUS "OPENSSL_APPLINK_C ${OPENSSL_APPLINK_C}")
139 ENDIF()
140
111 # On mac this list is <.dylib;.so;.a>141 # On mac this list is <.dylib;.so;.a>
112 # We prefer static libraries, so we revert it here.142 # We prefer static libraries, so we revert it here.
113 LIST(REVERSE CMAKE_FIND_LIBRARY_SUFFIXES)143 LIST(REVERSE CMAKE_FIND_LIBRARY_SUFFIXES)
@@ -175,3 +205,30 @@
175 "Wrong option for WITH_SSL. Valid values are : "${WITH_SSL_DOC})205 "Wrong option for WITH_SSL. Valid values are : "${WITH_SSL_DOC})
176 ENDIF()206 ENDIF()
177ENDMACRO()207ENDMACRO()
208
209
210# Many executables will depend on libeay32.dll and ssleay32.dll at runtime.
211# In order to ensure we find the right version(s), we copy them into
212# the same directory as the executables.
213# NOTE: Using dlls will likely crash in malloc/free,
214# see INSTALL.W32 which comes with the openssl sources.
215# So we should be linking static versions of the libraries.
216MACRO (COPY_OPENSSL_DLLS target_name)
217 IF (WIN32 AND WITH_SSL_PATH)
218 GET_FILENAME_COMPONENT(CRYPTO_NAME "${CRYPTO_LIBRARY}" NAME_WE)
219 GET_FILENAME_COMPONENT(OPENSSL_NAME "${OPENSSL_LIBRARIES}" NAME_WE)
220 FILE(GLOB HAVE_CRYPTO_DLL "${WITH_SSL_PATH}/bin/${CRYPTO_NAME}.dll")
221 FILE(GLOB HAVE_OPENSSL_DLL "${WITH_SSL_PATH}/bin/${OPENSSL_NAME}.dll")
222 IF (HAVE_CRYPTO_DLL AND HAVE_OPENSSL_DLL)
223 ADD_CUSTOM_COMMAND(OUTPUT ${target_name}
224 COMMAND ${CMAKE_COMMAND} -E copy_if_different
225 "${WITH_SSL_PATH}/bin/${CRYPTO_NAME}.dll"
226 "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${CRYPTO_NAME}.dll"
227 COMMAND ${CMAKE_COMMAND} -E copy_if_different
228 "${WITH_SSL_PATH}/bin/${OPENSSL_NAME}.dll"
229 "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${OPENSSL_NAME}.dll"
230 )
231 ADD_CUSTOM_TARGET(${target_name} ALL)
232 ENDIF()
233 ENDIF()
234ENDMACRO()
178235
=== modified file 'Percona-Server/dbug/dbug.c'
--- Percona-Server/dbug/dbug.c 2012-10-16 06:21:51 +0000
+++ Percona-Server/dbug/dbug.c 2012-12-17 04:11:35 +0000
@@ -356,6 +356,14 @@
356356
357#include <my_pthread.h>357#include <my_pthread.h>
358static pthread_mutex_t THR_LOCK_dbug;358static pthread_mutex_t THR_LOCK_dbug;
359
360/**
361 A mutex protecting flushing of gcov data, see _db_flush_gcov_().
362 We don't re-use THR_LOCK_dbug, because that would disallow:
363 DBUG_LOCK_FILE; ..... DBUG_SUICIDE(); .... DBUG_UNLOCK_FILE;
364*/
365static pthread_mutex_t THR_LOCK_gcov;
366
359/**367/**
360 Lock, to protect @c init_settings.368 Lock, to protect @c init_settings.
361 For performance reasons,369 For performance reasons,
@@ -378,6 +386,7 @@
378 {386 {
379 init_done=TRUE;387 init_done=TRUE;
380 pthread_mutex_init(&THR_LOCK_dbug, NULL);388 pthread_mutex_init(&THR_LOCK_dbug, NULL);
389 pthread_mutex_init(&THR_LOCK_gcov, NULL);
381 my_rwlock_init(&THR_LOCK_init_settings, NULL);390 my_rwlock_init(&THR_LOCK_init_settings, NULL);
382 memset(&init_settings, 0, sizeof(init_settings));391 memset(&init_settings, 0, sizeof(init_settings));
383 init_settings.out_file=stderr;392 init_settings.out_file=stderr;
@@ -2383,6 +2392,16 @@
2383extern void __gcov_flush();2392extern void __gcov_flush();
2384#endif2393#endif
23852394
2395void _db_flush_gcov_()
2396{
2397#ifdef HAVE_GCOV
2398 // Gcov will assert() if we try to flush in parallel.
2399 pthread_mutex_lock(&THR_LOCK_gcov);
2400 __gcov_flush();
2401 pthread_mutex_unlock(&THR_LOCK_gcov);
2402#endif
2403}
2404
2386void _db_suicide_()2405void _db_suicide_()
2387{2406{
2388 int retval;2407 int retval;
@@ -2392,7 +2411,7 @@
2392#ifdef HAVE_GCOV2411#ifdef HAVE_GCOV
2393 fprintf(stderr, "Flushing gcov data\n");2412 fprintf(stderr, "Flushing gcov data\n");
2394 fflush(stderr);2413 fflush(stderr);
2395 __gcov_flush();2414 _db_flush_gcov_();
2396#endif2415#endif
23972416
2398 fprintf(stderr, "SIGKILL myself\n");2417 fprintf(stderr, "SIGKILL myself\n");
23992418
=== modified file 'Percona-Server/extra/CMakeLists.txt'
--- Percona-Server/extra/CMakeLists.txt 2012-08-22 01:40:20 +0000
+++ Percona-Server/extra/CMakeLists.txt 2012-12-17 04:11:35 +0000
@@ -32,6 +32,7 @@
32 SET_TARGET_PROPERTIES(comp_err PROPERTIES LINKER_LANGUAGE CXX)32 SET_TARGET_PROPERTIES(comp_err PROPERTIES LINKER_LANGUAGE CXX)
33ENDIF()33ENDIF()
3434
35
35ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/include/mysqld_error.h 36ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/include/mysqld_error.h
36 ${PROJECT_BINARY_DIR}/sql/share/english/errmsg.sys37 ${PROJECT_BINARY_DIR}/sql/share/english/errmsg.sys
37 COMMAND comp_err38 COMMAND comp_err
@@ -51,6 +52,14 @@
51 ${PROJECT_BINARY_DIR}/sql/share/english/errmsg.sys 52 ${PROJECT_BINARY_DIR}/sql/share/english/errmsg.sys
52 ${PROJECT_SOURCE_DIR}/sql/share/errmsg-utf8.txt)53 ${PROJECT_SOURCE_DIR}/sql/share/errmsg-utf8.txt)
5354
55## Most executables depend on libeay32.dll (through mysys_ssl).
56## For 'comp_err' we need it to be available during build.
57COPY_OPENSSL_DLLS(copy_openssl_extra)
58IF (WIN32 AND WITH_SSL_PATH AND HAVE_CRYPTO_DLL)
59 ADD_DEPENDENCIES(GenError copy_openssl_extra)
60ENDIF()
61
62
54MYSQL_ADD_EXECUTABLE(my_print_defaults my_print_defaults.c)63MYSQL_ADD_EXECUTABLE(my_print_defaults my_print_defaults.c)
55TARGET_LINK_LIBRARIES(my_print_defaults mysys mysys_ssl)64TARGET_LINK_LIBRARIES(my_print_defaults mysys mysys_ssl)
56SET_TARGET_PROPERTIES(my_print_defaults PROPERTIES LINKER_LANGUAGE CXX)65SET_TARGET_PROPERTIES(my_print_defaults PROPERTIES LINKER_LANGUAGE CXX)
5766
=== modified file 'Percona-Server/include/my_dbug.h'
--- Percona-Server/include/my_dbug.h 2011-09-20 09:20:12 +0000
+++ Percona-Server/include/my_dbug.h 2012-12-17 04:11:35 +0000
@@ -133,6 +133,7 @@
133#define DBUG_SUICIDE() DBUG_ABORT()133#define DBUG_SUICIDE() DBUG_ABORT()
134#else134#else
135extern void _db_suicide_();135extern void _db_suicide_();
136extern void _db_flush_gcov_();
136#define DBUG_SUICIDE() (_db_flush_(), _db_suicide_())137#define DBUG_SUICIDE() (_db_flush_(), _db_suicide_())
137#endif138#endif
138139
139140
=== modified file 'Percona-Server/libmysql/CMakeLists.txt'
--- Percona-Server/libmysql/CMakeLists.txt 2012-10-16 06:21:51 +0000
+++ Percona-Server/libmysql/CMakeLists.txt 2012-12-17 04:11:35 +0000
@@ -149,6 +149,13 @@
149 ../sql/password.c149 ../sql/password.c
150)150)
151151
152IF (WIN32 AND OPENSSL_APPLINK_C)
153 SET_SOURCE_FILES_PROPERTIES(
154 ../sql-common/client_authentication.cc
155 PROPERTIES COMPILE_FLAGS "-DHAVE_OPENSSL_APPLINK_C"
156 )
157ENDIF()
158
152ADD_CONVENIENCE_LIBRARY(clientlib ${CLIENT_SOURCES})159ADD_CONVENIENCE_LIBRARY(clientlib ${CLIENT_SOURCES})
153DTRACE_INSTRUMENT(clientlib)160DTRACE_INSTRUMENT(clientlib)
154ADD_DEPENDENCIES(clientlib GenError)161ADD_DEPENDENCIES(clientlib GenError)
@@ -205,13 +212,18 @@
205 OUTPUT_NAME mysqlclient 212 OUTPUT_NAME mysqlclient
206 VERSION "${OS_SHARED_LIB_VERSION}" 213 VERSION "${OS_SHARED_LIB_VERSION}"
207 SOVERSION "${SHARED_LIB_MAJOR_VERSION}")214 SOVERSION "${SHARED_LIB_MAJOR_VERSION}")
215 CONFIGURE_FILE(libmysql.ver.in ${CMAKE_CURRENT_BINARY_DIR}/libmysql.ver)
208 IF(LINK_FLAG_NO_UNDEFINED)216 IF(LINK_FLAG_NO_UNDEFINED)
209 GET_TARGET_PROPERTY(libmysql_link_flags libmysql LINK_FLAGS)217 GET_TARGET_PROPERTY(libmysql_link_flags libmysql LINK_FLAGS)
210 IF(NOT libmysql_link_flag)218 IF(NOT libmysql_link_flag)
211 SET(libmysql_link_flags)219 SET(libmysql_link_flags)
212 ENDIF()220 ENDIF()
213 SET_TARGET_PROPERTIES(libmysql PROPERTIES LINK_FLAGS 221 SET(libmysql_link_flags
214 "${libmysql_link_flags} ${LINK_FLAG_NO_UNDEFINED}")222 "${libmysql_link_flags} ${LINK_FLAG_NO_UNDEFINED}")
223 SET(libmysql_link_flags
224 "${libmysql_link_flags} -Wl,--version-script=libmysql.ver")
225 SET_TARGET_PROPERTIES(libmysql
226 PROPERTIES LINK_FLAGS "${libmysql_link_flags}")
215 ENDIF() 227 ENDIF()
216 # clean direct output needs to be set several targets have the same name228 # clean direct output needs to be set several targets have the same name
217 #(mysqlclient in this case)229 #(mysqlclient in this case)
218230
=== modified file 'Percona-Server/mysql-test/collections/default.daily'
--- Percona-Server/mysql-test/collections/default.daily 2012-10-16 06:21:51 +0000
+++ Percona-Server/mysql-test/collections/default.daily 2012-12-17 04:11:35 +0000
@@ -16,13 +16,11 @@
16perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=rpl_crash_safe_master-debug --vardir=var-rpl_crash_safe_master-debug --suite=rpl --mysqld=--master-info-repository=TABLE --skip-test-list=collections/disabled-daily.list16perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=rpl_crash_safe_master-debug --vardir=var-rpl_crash_safe_master-debug --suite=rpl --mysqld=--master-info-repository=TABLE --skip-test-list=collections/disabled-daily.list
1717
18# Additional modes for rpl. Multi-Threaded Slave18# Additional modes for rpl. Multi-Threaded Slave
19perl mysql-test-run.pl --timer --force --parallel=auto --comment=rpl_binlog_n_mix_MTS --vardir=var-mts-rpl-binlog-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl19perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=rpl_MTS-debug --vardir=var-mts-rpl-debug --experimental=collections/default.experimental --skip-ndb --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
20perl mysql-test-run.pl --timer --force --parallel=auto --comment=rpl_binlog_ps_row_MTS --vardir=var-mts-rpl-binlog-ps_row --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
21perl mysql-test-run.pl --timer --force --parallel=auto --comment=rpl_binlog_stmt_MTS --vardir=var-mts-rpl-binlog-stmt --mysqld=--binlog-format=statement --experimental=collections/default.experimental --skip-ndb --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
2220
23# Additional runs for innodb-page-size=4k and 8k21# Additional runs for innodb-page-size=4k and 8k
24perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix_4k_size --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --mysqld=--innodb-page-size=4k --skip-test=innodb_ignore_builtin22perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=n_mix_4k_size --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --mysqld=--innodb-page-size=4k --skip-test=innodb_ignore_builtin
25perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix_8k_size --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --mysqld=--innodb-page-size=8k --skip-test=innodb_ignore_builtin23perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=n_mix_8k_size --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --mysqld=--innodb-page-size=8k --skip-test=innodb_ignore_builtin
2624
27#Engine independent tests25#Engine independent tests
28perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-row-tests-myisam-engine-debug --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-myisam-engine-debug --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --do-test=rpl --mysqld=--binlog-format=row --skip-test-list=collections/disabled-daily.list26perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-row-tests-myisam-engine-debug --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-myisam-engine-debug --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --do-test=rpl --mysqld=--binlog-format=row --skip-test-list=collections/disabled-daily.list
2927
=== modified file 'Percona-Server/mysql-test/collections/default.experimental'
--- Percona-Server/mysql-test/collections/default.experimental 2012-10-16 06:21:51 +0000
+++ Percona-Server/mysql-test/collections/default.experimental 2012-12-17 04:11:35 +0000
@@ -4,39 +4,21 @@
4binlog.binlog_multi_engine # joro : NDB tests marked as experimental as agreed with bochklin4binlog.binlog_multi_engine # joro : NDB tests marked as experimental as agreed with bochklin
55
6funcs_1.charset_collation_1 # depends on compile-time decisions6funcs_1.charset_collation_1 # depends on compile-time decisions
7funcs_1.innodb_trig_1011ext @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
8funcs_1.myisam_trig_1011ext @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
9funcs_1.memory_trig_1011ext @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
107
11main.func_math @freebsd # Bug#11751977 2010-05-04 alik main.func_math fails on FreeBSD in PB28main.func_math @freebsd # Bug#11751977 2010-05-04 alik main.func_math fails on FreeBSD in PB2
12main.mysqlslap @windows # Bug#11761520 2010-08-10 alik mysqlslap fails sporadically starting from Dahlia9main.mysqlslap @windows # Bug#11761520 2010-08-10 alik mysqlslap fails sporadically starting from Dahlia
13main.signal_demo3 @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
14main.sp @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
15
16main.bug33509 @solaris # Bug#11753919 2012-02-16 didrik Several test cases fail on Solaris with error Thread stack overrun
1710
18main.index_merge_innodb # BUG#11754168 2012-05-08 jorgen Doing an attempt at reenabling tests disabled by bug. EXPLAIN's row estimates varies for innodb so marked experimental for a while11main.index_merge_innodb # BUG#11754168 2012-05-08 jorgen Doing an attempt at reenabling tests disabled by bug. EXPLAIN's row estimates varies for innodb so marked experimental for a while
19main.kill @freebsd # Bug#12619719 2011-08-04 Occasional failure in PB212main.kill @freebsd # Bug#12619719 2011-08-04 Occasional failure in PB2
20main.kill @darwin # Bug#12619719 2012-07-12 Occasional failure in PB213main.kill @darwin # Bug#12619719 2012-07-12 Occasional failure in PB2
21main.mix2_myisam @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
22main.sp-lock @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
23main.sp-prelocking @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
24main.sp-fib @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
2514
26innodb.innodb_monitor # Bug#12320827 2011-08-04 Occasional failure in PB215innodb.innodb_monitor # Bug#12320827 2011-08-04 Occasional failure in PB2
2716
28rpl.rpl_delayed_slave # BUG#11764654 rpl_delayed_slave fails sporadically in pb17rpl.rpl_delayed_slave # BUG#11764654 rpl_delayed_slave fails sporadically in pb
29rpl.rpl_innodb_bug28430 # Bug#1175442518rpl.rpl_innodb_bug28430 # Bug#11754425
30rpl.rpl_row_sp011 @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
31rpl.rpl_seconds_behind_master # BUG#11765124 2010-11-24 luis fails sporadically on pb2
32rpl.rpl_show_slave_running # BUG#12346048 2011-04-11 sven fails sporadically on pb219rpl.rpl_show_slave_running # BUG#12346048 2011-04-11 sven fails sporadically on pb2
33rpl.rpl_parallel_switch_sequential # BUG#13626976 2012-02-07 dlenev Fails sporadically on pb220rpl.rpl_parallel_switch_sequential # BUG#13626976 2012-02-07 dlenev Fails sporadically on pb2
34rpl.rpl_gtid_stress_failover # BUG#11938382,BUG#13779291 2012-03-26 Nuno Fails sporadically on pb2 (see also BUG#13813811)
35rpl.rpl_report_port # BUG#13812374 2012-05-10 Hemant Fails after the post fix for bug#1381237421rpl.rpl_report_port # BUG#13812374 2012-05-10 Hemant Fails after the post fix for bug#13812374
36rpl.rpl_switch_stm_row_mixed @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
37rpl.rpl_mix_found_rows @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
38rpl.rpl_insert_id @solaris # Bug#11753919 2012-05-22 Hemant Several test cases fail on Solaris with error Thread stack overrun
39sys_vars.max_sp_recursion_depth_func @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
4022
41# BUG #59055 : All ndb tests should be removed from the repository23# BUG #59055 : All ndb tests should be removed from the repository
42# Leaving the sys_vars tests for now. sys_vars.all_vars.test fails on removing ndb tests24# Leaving the sys_vars tests for now. sys_vars.all_vars.test fails on removing ndb tests
4325
=== modified file 'Percona-Server/mysql-test/collections/default.weekly'
--- Percona-Server/mysql-test/collections/default.weekly 2012-10-16 06:21:51 +0000
+++ Percona-Server/mysql-test/collections/default.weekly 2012-12-17 04:11:35 +0000
@@ -11,7 +11,7 @@
11# Repeat daily run11# Repeat daily run
12# big-test option for normal runs 12# big-test option for normal runs
13# Default suites (in modes binlog format stmt/mixed/row, parts), embedded and ps-protocol13# Default suites (in modes binlog format stmt/mixed/row, parts), embedded and ps-protocol
14perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=90 --debug-server --parallel=auto --experimental=collections/default.experimental --comment=normal-debug-big --vardir=var-normal-debug-big --report-features --skip-test-list=collections/disabled-daily.list --unit-tests14perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=90 --debug-server --parallel=auto --experimental=collections/default.experimental --comment=normal-debug-big --vardir=var-normal-debug-big --report-features --skip-test-list=collections/disabled-daily.list --unit-tests --mysqld=--innodb_autoextend_increment=64
15perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --debug-server --parallel=auto --experimental=collections/default.experimental --comment=embedded-debug-big --vardir=var-embedded-debug-big --embedded15perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --debug-server --parallel=auto --experimental=collections/default.experimental --comment=embedded-debug-big --vardir=var-embedded-debug-big --embedded
16perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=90 --debug-server --parallel=auto --experimental=collections/default.experimental --comment=ps-debug-big --vardir=var-ps-debug-big --ps-protocol --skip-test-list=collections/disabled-daily.list16perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=90 --debug-server --parallel=auto --experimental=collections/default.experimental --comment=ps-debug-big --vardir=var-ps-debug-big --ps-protocol --skip-test-list=collections/disabled-daily.list
1717
@@ -39,60 +39,28 @@
39perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-mixed-tests-innodb-engine-debug --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-innodb-engine-debug --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-weekly.list39perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-mixed-tests-innodb-engine-debug --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-innodb-engine-debug --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-weekly.list
4040
41#Memcached tests41#Memcached tests
42perl mysql-test-run.pl --timer --force --debug-server --comment=memcached-debug --vardir=var-debug-memcached --experimental=collections/default.experimental --skip-ndb --parallel=1 --retry=0 --suite=memcached --mysqld=--innodb-page-size=4k --skip-test-list=collections/disabled-weekly.list42perl mysql-test-run.pl --timer --force --debug-server --comment=memcached-debug --vardir=var-debug-memcached --experimental=collections/default.experimental --skip-ndb --parallel=1 --retry=0 --suite=memcached --skip-test-list=collections/disabled-weekly.list
4343
44# Non debug runs of all the tests 44# Non debug runs of default suites in normal and embedded modes
4545perl mysql-test-run.pl --force --debug-server --timer --parallel=auto --experimental=collections/default.experimental --comment=normal-non-debug --vardir=var-normal-non-debug --report-features --skip-test-list=collections/disabled-daily.list --unit-tests
46# Repeat daily run46perl mysql-test-run.pl --force --debug-server --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded-non-debug --vardir=var-embedded-non-debug --embedded
47# big-test option for normal runs 47
48# Default suites in modes normal(binlog format statement/mixed/row, parts), embedded and ps-protocol48
49perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=90 --parallel=auto --experimental=collections/default.experimental --comment=normal-big --vardir=var-normal-big --report-features --skip-test-list=collections/disabled-daily.list --unit-tests
50perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --comment=embedded-big --vardir=var-embedded-big --embedded
51perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=90 --parallel=auto --experimental=collections/default.experimental --comment=ps-big --vardir=var-ps-big --ps-protocol --skip-test-list=collections/disabled-daily.list
52
53# Run the suites that are not part of the default - funcs_2, stress, jp, nist
54perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --comment=funcs2-big --vardir=var-funcs2-big --suite=funcs_2
55perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --comment=stress-big --vardir=var-stress-big --suite=stress
56perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --comment=jp-big --vardir=var-jp-big --suite=jp
57perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --comment=nist-big --vardir=var-nist-big --suite=nist
58perl mysql-test-run.pl --force --timer --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-ps_nist --suite=nist --ps-protocol
59
60
61# Additional replication configurations
62perl mysql-test-run.pl --timer --force --big-test --testcase-timeout=60 --parallel=auto --comment=all_binlog_checksum --experimental=collections/default.experimental --mysqld=--binlog-checksum=CRC32 --vardir=var-all_binlog_checksum --suite=main,binlog,innodb,federated,rpl,sys_vars,perfschema --skip-test-list=collections/disabled-weekly.list
63perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --comment=rpl_crash_safe_relay --vardir=var-rpl_crash_safe_relay --suite=rpl --mysqld=--relay-log-info-repository=TABLE --skip-test-list=collections/disabled-daily.list
64perl mysql-test-run.pl --force --timer --big-test --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --comment=rpl_crash_safe_master --vardir=var-rpl_crash_safe_master --suite=rpl --mysqld=--master-info-repository=TABLE --skip-test-list=collections/disabled-daily.list
65
66#Engine independent tests
67perl mysql-test-run.pl --timer --force --big-test --testcase-timeout=60 --parallel=auto --comment=eits-tests-myisam-engine-big --experimental=collections/default.experimental --vardir=var-stmt-eits-tests-myisam-engine-big --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --skip-test-list=collections/disabled-weekly.list
68perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-rpl-binlog-row-tests-myisam-engine --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-myisam-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --do-test=rpl --mysqld=--binlog-format=row --skip-test-list=collections/disabled-weekly.list
69perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-rpl-binlog-mixed-tests-myisam-engine --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-myisam-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --do-test=rpl --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-weekly.list
70perl mysql-test-run.pl --timer --force --big-test --testcase-timeout=60 --parallel=auto --comment=eits-tests-innodb-engine-big --experimental=collections/default.experimental --vardir=var-stmt-eits-tests-innodb-engine-big --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --skip-test-list=collections/disabled-weekly.list
71perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-rpl-binlog-row-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=row --skip-test-list=collections/disabled-weekly.list
72perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-rpl-binlog-mixed-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-weekly.list
73
74#Memcached tests
75perl mysql-test-run.pl --timer --force --comment=memcached --vardir=var-memcached --experimental=collections/default.experimental --skip-ndb --parallel=1 --retry=0 --suite=memcached --mysqld=--innodb-page-size=4k --skip-test-list=collections/disabled-weekly.list
7649
77# Multi-Thread Slave50# Multi-Thread Slave
78perl mysql-test-run.pl --timer --force --big-test --testcase-timeout=60 --debug-server --parallel=auto --comment=n_mix-MTS-debug-big --vardir=var-n_mix-MTS-debug-big --suite=rpl --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=051perl mysql-test-run.pl --timer --force --big-test --testcase-timeout=60 --debug-server --parallel=auto --comment=MTS-debug-big --vardir=var-MTS-debug-big --suite=rpl --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0
7952
80# Run with 4K page size53# Run with 4K page size
81perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix_4k_size --vardir=var-n_mix_4k_size --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests --mysqld=--innodb-page-size=4k --skip-test=innodb_ignore_builtin54perl mysql-test-run.pl --debug-server --timer --force --parallel=auto --comment=n_mix_4k_size --vardir=var-n_mix_4k_size --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests --mysqld=--innodb-page-size=4k --skip-test=innodb_ignore_builtin
82perl mysql-test-run.pl --timer --force --parallel=auto --comment=main_ps_row_4k_size --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --mysqld=--innodb-page-size=4k --skip-test=innodb_ignore_builtin55perl mysql-test-run.pl --debug-server --timer --force --parallel=auto --comment=main_ps_row_4k_size --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --mysqld=--innodb-page-size=4k --skip-test=innodb_ignore_builtin
83perl mysql-test-run.pl --timer --force --parallel=auto --comment=main_embedded_4k_size --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb --mysqld=--innodb-page-size=4k --skip-test=innodb_ignore_builtin56perl mysql-test-run.pl --debug-server --timer --force --parallel=auto --comment=main_embedded_4k_size --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb --mysqld=--innodb-page-size=4k --skip-test=innodb_ignore_builtin
8457
85# Run with 8K page size58# Run with 8K page size
86perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix_8k_size --vardir=var-n_mix_8k_size --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests --mysqld=--innodb-page-size=8k --skip-test=innodb_ignore_builtin59perl mysql-test-run.pl --debug-server --timer --force --parallel=auto --comment=n_mix_8k_size --vardir=var-n_mix_8k_size --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests --mysqld=--innodb-page-size=8k --skip-test=innodb_ignore_builtin
87perl mysql-test-run.pl --timer --force --parallel=auto --comment=main_ps_row_8k_size --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --mysqld=--innodb-page-size=8k --skip-test=innodb_ignore_builtin60perl mysql-test-run.pl --debug-server --timer --force --parallel=auto --comment=main_ps_row_8k_size --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --mysqld=--innodb-page-size=8k --skip-test=innodb_ignore_builtin
88perl mysql-test-run.pl --timer --force --parallel=auto --comment=main_embedded_8k_size --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb --mysqld=--innodb-page-size=8k --skip-test=innodb_ignore_builtin61perl mysql-test-run.pl --debug-server --timer --force --parallel=auto --comment=main_embedded_8k_size --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb --mysqld=--innodb-page-size=8k --skip-test=innodb_ignore_builtin
8962
90# Run InnoDB with 4k page size
91perl mysql-test-run.pl --timer --force --parallel=auto --comment=innodb_4k_size --vardir=var-innodb-4k --experimental=collections/default.experimental --skip-ndb --suite=innodb --mysqld=--innodb-page-size=4k
92
93# Run InnoDB with 8k page size
94perl mysql-test-run.pl --timer --force --parallel=auto --comment=innodb_8k_size --vardir=var-innodb-8k --experimental=collections/default.experimental --skip-ndb --suite=innodb --mysqld=--innodb-page-size=8k
9563
96# Additional run to test rpl HASH_SCAN & INDEX_SCAN64# Additional run to test rpl HASH_SCAN & INDEX_SCAN
97perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=binlog_rpl_row_hash_scan --vardir=var-binlog_rpl_row_hash_scan --mysqld=--binlog-format=row --suite=binlog,rpl --mysqld=--slave-rows-search-algorithms=HASH_SCAN,INDEX_SCAN --big-test --testcase-timeout=6065perl mysql-test-run.pl --force --debug-server --timer --parallel=auto --experimental=collections/default.experimental --comment=binlog_rpl_row_hash_scan --vardir=var-binlog_rpl_row_hash_scan --mysqld=--binlog-format=row --suite=binlog,rpl --mysqld=--slave-rows-search-algorithms=HASH_SCAN,INDEX_SCAN --big-test --testcase-timeout=60
98perl mysql-test-run.pl --timer --force --parallel=auto --comment=rpl_binlog_row_hash_MTS --vardir=var-mts-rpl-binlog-hash-n_mix --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl,binlog -mysqld=--slave-rows-search-algorithms=HASH_SCAN,INDEX_SCAN66perl mysql-test-run.pl --debug-server --timer --force --parallel=auto --comment=rpl_binlog_row_hash_MTS --vardir=var-mts-rpl-binlog-hash-n_mix --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl,binlog -mysqld=--slave-rows-search-algorithms=HASH_SCAN,INDEX_SCAN
9967
=== removed file 'Percona-Server/mysql-test/collections/mysql-5.6.release'
--- Percona-Server/mysql-test/collections/mysql-5.6.release 2012-09-06 13:52:50 +0000
+++ Percona-Server/mysql-test/collections/mysql-5.6.release 1970-01-01 00:00:00 +0000
@@ -1,6 +0,0 @@
1perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=n_mix-debug --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests
2perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=main_ps_row-debug --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list
3perl mysql-test-run.pl --timer --force --parallel=auto --comment=main_embedded-debug --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb
4perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=innodb_4k_size-debug --vardir=var-innodb-4k --experimental=collections/default.experimental --skip-ndb --suite=innodb --mysqld=--innodb-page-size=4k
5perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=partitions-debug --vardir=var-parts --suite=parts
6perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=rpl_binlog_n_mix_MTS-debug --vardir=var-mts-rpl-binlog-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
70
=== removed file 'Percona-Server/mysql-test/collections/mysql-trunk-bug27480.push'
--- Percona-Server/mysql-test/collections/mysql-trunk-bug27480.push 2011-03-24 08:45:04 +0000
+++ Percona-Server/mysql-test/collections/mysql-trunk-bug27480.push 1970-01-01 00:00:00 +0000
@@ -1,4 +0,0 @@
1perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list
2perl mysql-test-run.pl --timer --force --parallel=auto --comment=main_ps_row --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list
3perl mysql-test-run.pl --timer --force --parallel=auto --comment=main_embedded --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb
4perl mysql-test-run.pl --timer --force --parallel=auto --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 --experimental=collections/default.experimental --skip-ndb
50
=== removed file 'Percona-Server/mysql-test/collections/mysql-trunk-stage.push'
--- Percona-Server/mysql-test/collections/mysql-trunk-stage.push 2012-05-31 11:06:04 +0000
+++ Percona-Server/mysql-test/collections/mysql-trunk-stage.push 1970-01-01 00:00:00 +0000
@@ -1,6 +0,0 @@
1perl mysql-test-run.pl --timer --debug-server --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
2perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=main_ps_row --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list
3perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=main_embedded --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb
4perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=innodb_4k_size --vardir=var-innodb-4k --experimental=collections/default.experimental --skip-ndb --suite=innodb --mysqld=--innodb-page-size=4k
5perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts
6perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=rpl_binlog_n_mix_MTS --vardir=var-mts-rpl-binlog-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
70
=== removed file 'Percona-Server/mysql-test/collections/mysql-trunk-wl3584-gtid-ON.push'
--- Percona-Server/mysql-test/collections/mysql-trunk-wl3584-gtid-ON.push 2012-02-17 09:27:56 +0000
+++ Percona-Server/mysql-test/collections/mysql-trunk-wl3584-gtid-ON.push 1970-01-01 00:00:00 +0000
@@ -1,20 +0,0 @@
1# Additional modes for rpl. Multi-Threaded Slave
2perl mysql-test-run.pl --timer --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_binlog_n_mix_MTS --vardir=var-mts-rpl-binlog-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
3
4perl mysql-test-run.pl --timer --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_binlog_ps_row_MTS --vardir=var-mts-rpl-binlog-ps_row --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
5
6perl mysql-test-run.pl --timer --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_binlog_stmt_MTS --vardir=var-mts-rpl-binlog-stmt --mysqld=--binlog-format=statement --experimental=collections/default.experimental --skip-ndb --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
7
8# Additional modes for rpl and binlog suites. Checksum and relay-log-info-repository
9perl mysql-test-run.pl --force --retry=0 --max-test-fail=0 --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=rpl_binlog_checksum-debug --vardir=var-rpl_binlog_checksum-debug --suite=rpl,binlog --mysqld=--binlog-checksum=CRC32
10
11perl mysql-test-run.pl --force --retry=0 --max-test-fail=0 --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=rpl_crash_safe_relay-debug --vardir=var-rpl_crash_safe_relay-debug --suite=rpl --mysqld=--relay-log-info-repository=TABLE
12
13perl mysql-test-run.pl --force --retry=0 --max-test-fail=0 --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=rpl_crash_safe_master-debug --vardir=var-rpl_crash_safe_master-debug --suite=rpl --mysqld=--master-info-repository=TABLE
14
15# modes for gtid on
16#perl mysql-test-run.pl --debug-server --timer --skip-ndb --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_gtid_enabled --vardir=var-gtid-enabled --mysqld=--gtid-mode=ON --mysqld=--log-bin --mysqld=--log-slave-updates --mysqld=--disable-gtid-unsafe-statements --mysqld=--debug="+d,allow_gtid_unsafe_non_transactional_updates" --skip-test-list=collections/disabled-gtid-on.list --suite=rpl,binlog
17
18#perl mysql-test-run.pl --debug-server --timer --skip-ndb --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_mts_gtid_enabled --vardir=var-mts-gtid-enabled --mysqld=--gtid-mode=ON --mysqld=--log-bin --mysqld=--log-slave-updates --mysqld=--disable-gtid-unsafe-statements --mysqld=--debug="+d,allow_gtid_unsafe_non_transactional_updates" --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --skip-test-list=collections/disabled-gtid-on.list --suite=rpl
19
20#perl mysql-test-run.pl --debug-server --timer --skip-ndb --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_crc_gtid_enabled --vardir=var-crc-gtid-enabled --mysqld=--gtid-mode=ON --mysqld=--log-bin --mysqld=--log-slave-updates --mysqld=--disable-gtid-unsafe-statements --mysqld=--debug="+d,allow_gtid_unsafe_non_transactional_updates" --mysqld=--binlog-checksum=CRC32 --skip-test-list=collections/disabled-gtid-on.list --suite=rpl,binlog
210
=== removed file 'Percona-Server/mysql-test/collections/mysql-trunk-wl3584.push'
--- Percona-Server/mysql-test/collections/mysql-trunk-wl3584.push 2012-02-17 09:27:56 +0000
+++ Percona-Server/mysql-test/collections/mysql-trunk-wl3584.push 1970-01-01 00:00:00 +0000
@@ -1,16 +0,0 @@
1# n_mix
2perl mysql-test-run.pl --timer --force --retry=0 --max-test-fail=0 --parallel=auto --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --unit-tests
3
4# main_ps_row
5perl mysql-test-run.pl --timer --force --retry=0 --max-test-fail=0 --parallel=auto --comment=main_ps_row --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb
6
7# main_embedded
8perl mysql-test-run.pl --timer --force --parallel=auto --comment=main_embedded --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb
9
10
11# Additional modes for gtid on
12#perl mysql-test-run.pl --debug-server --timer --skip-ndb --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_gtid_enabled --vardir=var-gtid-enabled --mysqld=--gtid-mode=ON --mysqld=--log-bin --mysqld=--log-slave-updates --mysqld=--disable-gtid-unsafe-statements --mysqld=--debug="+d,allow_gtid_unsafe_non_transactional_updates" --skip-test-list=collections/disabled-gtid-on.list --suite=rpl,binlog
13
14#perl mysql-test-run.pl --debug-server --timer --skip-ndb --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_mts_gtid_enabled --vardir=var-mts-gtid-enabled --mysqld=--gtid-mode=ON --mysqld=--log-bin --mysqld=--log-slave-updates --mysqld=--disable-gtid-unsafe-statements --mysqld=--debug="+d,allow_gtid_unsafe_non_transactional_updates" --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --skip-test-list=collections/disabled-gtid-on.list --suite=rpl
15
16#perl mysql-test-run.pl --debug-server --timer --skip-ndb --force --retry=0 --max-test-fail=0 --parallel=auto --comment=rpl_crc_gtid_enabled --vardir=var-crc-gtid-enabled --mysqld=--gtid-mode=ON --mysqld=--log-bin --mysqld=--log-slave-updates --mysqld=--disable-gtid-unsafe-statements --mysqld=--debug="+d,allow_gtid_unsafe_non_transactional_updates" --mysqld=--binlog-checksum=CRC32 --skip-test-list=collections/disabled-gtid-on.list --suite=rpl,binlog
170
=== removed file 'Percona-Server/mysql-test/collections/mysql-trunk-wl5223.push'
--- Percona-Server/mysql-test/collections/mysql-trunk-wl5223.push 2012-05-08 20:03:33 +0000
+++ Percona-Server/mysql-test/collections/mysql-trunk-wl5223.push 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_all --vardir=var-n_all --experimental=collections/default.experimental --skip-ndb --unit-tests
2perl mysql-test-run.pl --timer --big-test --testcase-timeout=60 --force --parallel=auto --comment=n_big --vardir=var-n_big --big-test --suite=rpl,binlog --experimental=collections/default.experimental --skip-ndb
30
=== removed file 'Percona-Server/mysql-test/collections/mysql-trunk.release'
--- Percona-Server/mysql-test/collections/mysql-trunk.release 2012-06-11 09:01:15 +0000
+++ Percona-Server/mysql-test/collections/mysql-trunk.release 1970-01-01 00:00:00 +0000
@@ -1,6 +0,0 @@
1perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=n_mix-debug --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests
2perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=main_ps_row-debug --vardir=var-main-ps_row --suite=main --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list
3perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=main_embedded-debug --vardir=var-main_emebbed --suite=main --embedded --experimental=collections/default.experimental --skip-ndb
4perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=innodb_4k_size-debug --vardir=var-innodb-4k --experimental=collections/default.experimental --skip-ndb --suite=innodb --mysqld=--innodb-page-size=4k
5perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=partitions-debug --vardir=var-parts --suite=parts
6perl mysql-test-run.pl --timer --debug-server --force --parallel=auto --comment=rpl_binlog_n_mix_MTS-debug --vardir=var-mts-rpl-binlog-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --unit-tests --mysqld=--slave-parallel-workers=4 --mysqld=--slave-transaction-retries=0 --suite=rpl
70
=== added file 'Percona-Server/mysql-test/include/Load_data.inc'
--- Percona-Server/mysql-test/include/Load_data.inc 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/include/Load_data.inc 2012-12-17 04:11:35 +0000
@@ -0,0 +1,14 @@
1--echo ===============
2--echo Load the data
3--echo ===============
4
5SET @col_1 = repeat('a', 10);
6
7while ($i) {
8
9eval INSERT INTO $table
10VALUES (@col_1);
11dec $i;
12}
13commit;
14
015
=== added file 'Percona-Server/mysql-test/include/create_table.inc'
--- Percona-Server/mysql-test/include/create_table.inc 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/include/create_table.inc 2012-12-17 04:11:35 +0000
@@ -0,0 +1,8 @@
1--echo ===============
2--echo create table & Index
3--echo ===============
4
5eval CREATE TABLE $table (col_1 text(10))
6ENGINE=INNODB ;
7
8
09
=== added file 'Percona-Server/mysql-test/include/have_partition_open_file_limit.inc'
--- Percona-Server/mysql-test/include/have_partition_open_file_limit.inc 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/include/have_partition_open_file_limit.inc 2012-12-17 04:11:35 +0000
@@ -0,0 +1,5 @@
1let $max_open_files_limit= `SELECT @@open_files_limit < 17000`;
2if ($max_open_files_limit)
3{
4 skip Need open_files_limit >= 16450 (see ulimit -n);
5}
06
=== added file 'Percona-Server/mysql-test/include/ib_logfile_size_check.inc'
--- Percona-Server/mysql-test/include/ib_logfile_size_check.inc 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/include/ib_logfile_size_check.inc 2012-12-17 04:11:35 +0000
@@ -0,0 +1,14 @@
1perl;
2 my $dir = $ENV{'MYSQLD_DATADIR'};
3 my $size;
4 opendir(DIR, $dir) or die $!;
5 while (my $file = readdir(DIR))
6 {
7
8 next unless ($file =~ m/\ib_logfile.$/);
9 $size = -s "$dir/$file";
10 print "The size of the ib_logfile(0/1): $size \n";
11 }
12 close(DIR);
13 exit(0)
14EOF
015
=== modified file 'Percona-Server/mysql-test/include/innodb-util.inc'
--- Percona-Server/mysql-test/include/innodb-util.inc 2012-06-19 06:35:20 +0000
+++ Percona-Server/mysql-test/include/innodb-util.inc 2012-12-17 04:11:35 +0000
@@ -19,13 +19,13 @@
19 my $ibd_file = sprintf("%s.ibd", $table);19 my $ibd_file = sprintf("%s.ibd", $table);
20 my $tmpd = $ENV{'MYSQLTEST_VARDIR'} . "/tmp";20 my $tmpd = $ENV{'MYSQLTEST_VARDIR'} . "/tmp";
2121
22 my @args = (File::Spec->catfile("$datadir", "$db", "$ibd_file"),22 my @args = (File::Spec->catfile($datadir, $db, $ibd_file),
23 File::Spec->catfile("$tmpd", "$ibd_file"));23 File::Spec->catfile($tmpd, $ibd_file));
2424
25 copy(@args) or die "copy @args failed: $!";25 copy(@args) or die "copy @args failed: $!";
2626
27 my @args = (File::Spec->catfile("$datadir", "$db", "$cfg_file"),27 my @args = (File::Spec->catfile($datadir, $db, $cfg_file),
28 File::Spec->catfile("$tmpd", "$cfg_file"));28 File::Spec->catfile($tmpd, $cfg_file));
2929
30 copy(@args) or die "copy @args failed: $!";30 copy(@args) or die "copy @args failed: $!";
31}31}
@@ -38,7 +38,7 @@
38 print "unlink: $cfg_file\n";38 print "unlink: $cfg_file\n";
3939
40 # These may or may not exist40 # These may or may not exist
41 unlink(File::Spec->catfile("$datadir", "$db", "$cfg_file"));41 unlink(File::Spec->catfile($datadir, $db, $cfg_file));
42}42}
4343
44sub ib_unlink_tablespace {44sub ib_unlink_tablespace {
@@ -48,7 +48,7 @@
4848
49 print "unlink: $ibd_file\n";49 print "unlink: $ibd_file\n";
50 # This may or may not exist50 # This may or may not exist
51 unlink(File::Spec->catfile("$datadir", "$db", "$ibd_file"));51 unlink(File::Spec->catfile($datadir, $db, $ibd_file));
5252
53 ib_cleanup($db, $table);53 ib_cleanup($db, $table);
54}54}
@@ -57,8 +57,8 @@
57 my ($db, @tables) = @_;57 my ($db, @tables) = @_;
5858
59 foreach my $table (@tables) {59 foreach my $table (@tables) {
60 print "backup: $table\n";60 print "backup: $table\n";
61 ib_backup_tablespace($db, $table);61 ib_backup_tablespace($db, $table);
62 }62 }
63}63}
6464
@@ -66,30 +66,63 @@
6666
67sub ib_discard_tablespaces { }67sub ib_discard_tablespaces { }
6868
69sub ib_restore_cfg_file {
70 my ($tmpd, $datadir, $db, $table) = @_;
71 my $cfg_file = sprintf("%s.cfg", $table);
72
73 my @args = (File::Spec->catfile($tmpd, $cfg_file),
74 File::Spec->catfile($datadir, "$db", $cfg_file));
75
76 copy(@args) or die "copy @args failed: $!";
77}
78
79sub ib_restore_ibd_file {
80 my ($tmpd, $datadir, $db, $table) = @_;
81 my $ibd_file = sprintf("%s.ibd", $table);
82
83 my @args = (File::Spec->catfile($tmpd, $ibd_file),
84 File::Spec->catfile($datadir, $db, $ibd_file));
85
86 copy(@args) or die "copy @args failed: $!";
87}
88
69sub ib_restore_tablespace {89sub ib_restore_tablespace {
70 my ($db, $table) = @_;90 my ($db, $table) = @_;
71 my $datadir = $ENV{'MYSQLD_DATADIR'};91 my $datadir = $ENV{'MYSQLD_DATADIR'};
72 my $cfg_file = sprintf("%s.cfg", $table);
73 my $ibd_file = sprintf("%s.ibd", $table);
74 my $tmpd = $ENV{'MYSQLTEST_VARDIR'} . "/tmp";92 my $tmpd = $ENV{'MYSQLTEST_VARDIR'} . "/tmp";
7593
76 my @args = (File::Spec->catfile("$tmpd", "$cfg_file"),94 ib_restore_cfg_file($tmpd, $datadir, $db, $table);
77 File::Spec->catfile("$datadir", "$db", "$cfg_file"));95 ib_restore_ibd_file($tmpd, $datadir, $db, $table);
78
79 copy(@args) or die "copy @args failed: $!";
80
81 my @args = (File::Spec->catfile("$tmpd", "$ibd_file"),
82 File::Spec->catfile("$datadir", "$db", "$ibd_file"));
83
84 copy(@args) or die "copy @args failed: $!";
85}96}
8697
87sub ib_restore_tablespaces {98sub ib_restore_tablespaces {
88 my ($db, @tables) = @_;99 my ($db, @tables) = @_;
89100
90 foreach my $table (@tables) {101 foreach my $table (@tables) {
91 print "restore: $table\n";102 print "restore: $table .ibd and .cfg files\n";
92 ib_restore_tablespace($db, $table);103 ib_restore_tablespace($db, $table);
104 }
105}
106
107sub ib_restore_cfg_files {
108 my ($db, @tables) = @_;
109 my $datadir = $ENV{'MYSQLD_DATADIR'};
110 my $tmpd = $ENV{'MYSQLTEST_VARDIR'} . "/tmp";
111
112 foreach my $table (@tables) {
113 print "restore: $table .cfg file\n";
114 ib_restore_cfg_file($tmpd, $datadir, $db, $table);
115 }
116}
117
118sub ib_restore_ibd_files {
119 my ($db, @tables) = @_;
120 my $datadir = $ENV{'MYSQLD_DATADIR'};
121 my $tmpd = $ENV{'MYSQLTEST_VARDIR'} . "/tmp";
122
123 foreach my $table (@tables) {
124 print "restore: $table .ibd file\n";
125 ib_restore_ibd_file($tmpd, $datadir, $db, $table);
93 }126 }
94}127}
95EOF128EOF
96129
=== modified file 'Percona-Server/mysql-test/include/mtr_warnings.sql'
--- Percona-Server/mysql-test/include/mtr_warnings.sql 2012-08-22 01:40:20 +0000
+++ Percona-Server/mysql-test/include/mtr_warnings.sql 2012-12-17 04:11:35 +0000
@@ -239,6 +239,9 @@
239 of events, this warning is emitted.239 of events, this warning is emitted.
240 */240 */
241 ("Slave SQL: Coordinator thread of multi-threaded slave is being stopped in the middle of assigning a group of events.*"),241 ("Slave SQL: Coordinator thread of multi-threaded slave is being stopped in the middle of assigning a group of events.*"),
242
243 ("Changed limits: max_open_files: * max_connections: * table_cache: *"),
244 ("Could not increase number of max_open_files to more than *"),
242245
243 ("THE_LAST_SUPPRESSION")||246 ("THE_LAST_SUPPRESSION")||
244247
245248
=== modified file 'Percona-Server/mysql-test/include/mysqld--help.inc'
--- Percona-Server/mysql-test/include/mysqld--help.inc 2012-08-22 01:40:20 +0000
+++ Percona-Server/mysql-test/include/mysqld--help.inc 2012-12-17 04:11:35 +0000
@@ -18,7 +18,7 @@
18 # their paths may vary:18 # their paths may vary:
19 @skipvars=qw/basedir open-files-limit general-log-file log plugin-dir19 @skipvars=qw/basedir open-files-limit general-log-file log plugin-dir
20 log-slow-queries pid-file slow-query-log-file20 log-slow-queries pid-file slow-query-log-file
21 datadir slave-load-tmpdir tmpdir socket/;21 datadir slave-load-tmpdir tmpdir socket table-definition-cache table-open-cache/;
2222
23 # Plugins which may or may not be there:23 # Plugins which may or may not be there:
24 @plugins=qw/innodb ndb ndbinfo archive blackhole federated partition ndbcluster debug temp-pool ssl des-key-file24 @plugins=qw/innodb ndb ndbinfo archive blackhole federated partition ndbcluster debug temp-pool ssl des-key-file
2525
=== modified file 'Percona-Server/mysql-test/include/rpl_start_server.inc'
--- Percona-Server/mysql-test/include/rpl_start_server.inc 2012-08-22 01:40:20 +0000
+++ Percona-Server/mysql-test/include/rpl_start_server.inc 2012-12-17 04:11:35 +0000
@@ -11,6 +11,7 @@
11# [--let $rpl_omit_print_server_parameters= 0]11# [--let $rpl_omit_print_server_parameters= 0]
12# [--let $rpl_debug_trace= 1]12# [--let $rpl_debug_trace= 1]
13# [--let $rpl_debug= 1]13# [--let $rpl_debug= 1]
14# [--let $rpl_server_error= 0]
14# --source include/rpl_start_server.inc15# --source include/rpl_start_server.inc
15#16#
16# Parameters:17# Parameters:
@@ -44,6 +45,9 @@
44# $rpl_debug45# $rpl_debug
45# See include/rpl_init.inc46# See include/rpl_init.inc
46#47#
48# $rpl_server_error
49# If set, failure of the server startup is expected.
50#
47# ==== See also ====51# ==== See also ====
48#52#
49# rpl_stop_server.inc53# rpl_stop_server.inc
@@ -112,8 +116,10 @@
112116
113#--exec echo "$_rpl_start_server_command" > $MYSQLTEST_VARDIR/tmp/mysqld.$rpl_server_number.expect117#--exec echo "$_rpl_start_server_command" > $MYSQLTEST_VARDIR/tmp/mysqld.$rpl_server_number.expect
114118
115--source include/rpl_reconnect.inc119if (!$rpl_server_error)
116120{
117121 --source include/rpl_reconnect.inc
118--let $include_filename= rpl_start_server.inc [$_rpl_start_server_info]122
119--source include/end_include_file.inc123 --let $include_filename= rpl_start_server.inc [$_rpl_start_server_info]
124 --source include/end_include_file.inc
125}
120126
=== modified file 'Percona-Server/mysql-test/include/subquery_sj.inc'
--- Percona-Server/mysql-test/include/subquery_sj.inc 2012-10-16 06:21:51 +0000
+++ Percona-Server/mysql-test/include/subquery_sj.inc 2012-12-17 04:11:35 +0000
@@ -4318,12 +4318,23 @@
43184318
4319INSERT INTO t2 VALUES ('v'), ('y'), ('j'), ('c'), ('d'), ('r');4319INSERT INTO t2 VALUES ('v'), ('y'), ('j'), ('c'), ('d'), ('r');
43204320
4321-- disable_query_log
4322-- disable_result_log
4323ANALYZE TABLE t1;
4324ANALYZE TABLE t2;
4325-- enable_result_log
4326-- enable_query_log
4327
4328let $query=
4321SELECT col_varchar_key4329SELECT col_varchar_key
4322FROM t14330FROM t1
4323WHERE col_varchar_key IN (SELECT col_varchar_nokey4331WHERE col_varchar_key IN (SELECT col_varchar_nokey
4324 FROM t2)4332 FROM t2)
4325ORDER BY col_datetime_key LIMIT 4;4333ORDER BY col_datetime_key LIMIT 4;
43264334
4335eval explain $query;
4336eval $query;
4337
4327DROP TABLE t1, t2;4338DROP TABLE t1, t2;
43284339
4329--echo # End of test for bug#12818569.4340--echo # End of test for bug#12818569.
43304341
=== added file 'Percona-Server/mysql-test/include/vardir_size_check.inc'
--- Percona-Server/mysql-test/include/vardir_size_check.inc 1970-01-01 00:00:00 +0000
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches