- 19 Aug, 2008 1 commit
-
-
Mats Kindahl authored
The failure was caused by executing a CREATE-SELECT statement that creates a table in another database than the current one. In row-based logging, the CREATE statement was written to the binary log without the database, hence creating the table in the wrong database, causing the following inserts to fail since the table didn't exist in the given database. Fixed the bug by adding a parameter to store_create_info() that will make the function print the database name before the table name and used that in the calls that write the CREATE statement to the binary log. The database name is only printed if it is different than the currently selected database. The output of SHOW CREATE TABLE has not changed and is still printed without the database name. mysql-test/suite/rpl/r/rpl_row_create_table.result: Result file change. mysql-test/suite/rpl/t/rpl_row_create_table.test: Added test to check that CREATE-SELECT into another database than the current one replicates. sql/sql_insert.cc: Adding parameter to calls to store_create_info(). sql/sql_show.cc: Adding parameter to calls to store_create_info(). Extending store_create_info() with parameter 'show_database' that will cause the database to be written before the table name. sql/sql_show.h: Adding parameter to call to store_create_info() to tell if the database should be shown or not. sql/sql_table.cc: Adding parameter to calls to store_create_info().
-
- 11 Aug, 2008 2 commits
-
-
Magnus Svensson authored
-
Magnus Svensson authored
-
- 10 Aug, 2008 2 commits
-
-
Magnus Svensson authored
-
Magnus Svensson authored
Fixup mtr_unique. Remove usage of ps and grep. Make it a module. Move _process_alive to Platform.pm. Rename opt_baseport to baseport, it's not an option
-
- 09 Aug, 2008 7 commits
-
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
- 08 Aug, 2008 2 commits
-
-
Magnus Svensson authored
-
Magnus Svensson authored
-
- 07 Aug, 2008 1 commit
-
-
He Zhenxing authored
mysql-test/r/multi_update.result: update result sql/sql_class.cc: Initialize table_map_for_update to 0
-
- 06 Aug, 2008 2 commits
-
-
He Zhenxing authored
-
He Zhenxing authored
-
- 04 Aug, 2008 5 commits
-
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Sven Sandberg authored
manually resolved conflicts: Text conflict in client/mysqltest.c Contents conflict in mysql-test/include/have_bug25714.inc Text conflict in mysql-test/include/have_ndbapi_examples.inc Text conflict in mysql-test/mysql-test-run.pl Text conflict in mysql-test/suite/parts/inc/partition_check_drop.inc Text conflict in mysql-test/suite/parts/inc/partition_layout.inc Text conflict in mysql-test/suite/parts/inc/partition_layout_check1.inc Text conflict in mysql-test/suite/parts/inc/partition_layout_check2.inc Text conflict in mysql-test/suite/parts/r/partition_alter1_1_2_myisam.result Text conflict in mysql-test/suite/parts/r/partition_alter1_1_myisam.result Text conflict in mysql-test/suite/parts/r/partition_alter1_2_myisam.result Text conflict in mysql-test/suite/parts/r/partition_alter2_myisam.result Text conflict in mysql-test/suite/parts/r/partition_alter3_innodb.result Text conflict in mysql-test/suite/parts/r/partition_alter3_myisam.result Text conflict in mysql-test/suite/parts/r/partition_basic_innodb.result Text conflict in mysql-test/suite/parts/r/partition_basic_myisam.result Text conflict in mysql-test/suite/parts/r/partition_basic_symlink_myisam.result Text conflict in mysql-test/suite/parts/r/partition_engine_myisam.result Text conflict in mysql-test/suite/parts/r/partition_syntax_myisam.result Text conflict in mysql-test/suite/rpl_ndb/t/disabled.def Text conflict in mysql-test/t/disabled.def
-
- 01 Aug, 2008 3 commits
-
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
- 31 Jul, 2008 1 commit
-
-
He Zhenxing authored
The problem of this bug is that we need to get the list of tables to be updated for a multi-table update statement, which requires to open all the tables referenced by the statement and resolve all the fields involved in update in order to figure out the list of tables for update. However if there are replicate filter rules, some tables might not exist on slave and result in a failure before we could examine the filter rules. I think the whole problem can not be solved on slave alone, the master must record and send the information of tables involved for update to slave, so that the slave do not need to open all the tables referenced by the multi-table update statement to figure out which tables are involved for update. So a status variable is added to Query_log event to store the value of table map for update on master. And on slave, it will try to get the value of this variable and use it to examine filter rules without opening any tables on slave, if this values is not available, the old approach is used and thus the bug will still occur for when replicating from old masters. sql/sql_class.h: add member table_map_for_update to THD sql/sql_parse.cc: check filter rules by using table_map_for_update value sql/sql_update.cc: save the value of table_map_for_update
-
- 30 Jul, 2008 1 commit
-
-
Magnus Svensson authored
-
- 28 Jul, 2008 1 commit
-
-
He Zhenxing authored
test to stall for slave_net_timeout and cause some test case fail mysql-test/include/have_log_bin.inc: remove reset master, which can cause some test to stall for slave_net_timeout and cause some test case fail mysql-test/r/mysqlbinlog_base64.result: update result mysql-test/t/mysqlbinlog_base64.test: Add reset master to make sure binlog is clean when the test case start
-
- 25 Jul, 2008 2 commits
-
-
Serge Kozlov authored
-
Georgi Kodinov authored
mysql-test/suite/ndb/t/disabled.def: disabled failing test in 5.1-bzr mysql-test/suite/rpl_ndb/t/disabled.def: disabled failing test in 5.1-bzr
-
- 24 Jul, 2008 7 commits
-
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Magnus Svensson authored
-
Chad MILLER authored
-
Sven Sandberg authored
.bzrignore: Ignore doxygen files.
-
- 23 Jul, 2008 1 commit
-
-
Sven Sandberg authored
Problem: After START SLAVE, the Slave_IO_Status column of SHOW SLAVE STATUS goes from No to Yes asynchronously. That caused sporadic failures on pushbuild in rpl_stm_until since the test contains SHOW SLAVE STATUS right after START SLAVE. Fix: Wait until Slave_IO_Status becomes Yes after each START SLAVE. mysql-test/include/wait_for_slave_io_to_start.inc: Macro that waits until the Slave_IO_Running field of SHOW SLAVE STATUS becomes Yes. mysql-test/suite/rpl/r/rpl_stm_until.result: updated result file mysql-test/suite/rpl/t/rpl_stm_until.test: - Added wait_for_slave_io_to_start after each start slave. - Removed unused initialization of test variable $VERSION - Added comments.
-
- 22 Jul, 2008 2 commits
-
-
Sven Sandberg authored
Problem: mtr --max-test-fail=0 should allow unlimited number of errors, but stops after the second error. Fix: It's just a typo in mysql-test-run.pl mysql-test/mysql-test-run.pl: Just a typo.
-
Davi Arnaut authored
-