1. 03 Dec, 2007 1 commit
    • unknown's avatar
      Bug#30998 Drop View breaks replication if view does not exist · 26946f31
      unknown authored
      When executing drop view statement on the master, the statement is not written into bin-log if any error occurs, this could cause master slave inconsistence if any view has been dropped. 
      
      If some error occured and no view has been dropped, don't bin-log the statement, if at least one view has been dropped the query is bin-logged possible with an error.
      
      
      sql/sql_view.cc:
        If at least one view has been dropped the query is bin-logged possible with an error.
      mysql-test/suite/rpl/r/rpl_drop_view.result:
        Add test result for bug#30998
      mysql-test/suite/rpl/t/rpl_drop_view.test:
        Add test case for bug#30998
      26946f31
  2. 27 Nov, 2007 1 commit
  3. 26 Nov, 2007 2 commits
  4. 24 Nov, 2007 1 commit
  5. 23 Nov, 2007 10 commits
    • unknown's avatar
      Add mysql-test/lib/*.sql to dists* · 0e0322c9
      unknown authored
      
      mysql-test/Makefile.am:
        Add mysql-test/include/*.sql to dist
      scripts/make_binary_distribution.sh:
        Add mysql-test/include/*.sql to bindist
      0e0322c9
    • unknown's avatar
      Remove printout · e4d2c9d3
      unknown authored
      e4d2c9d3
    • unknown's avatar
      - Don't process already skipped testcases one more time · 1ada48ba
      unknown authored
      in optimization phase
      - Don't check specified binlog format if hasn't been assigned one
      
      
      1ada48ba
    • unknown's avatar
      Add lib to extra dist · b048e1fb
      unknown authored
      b048e1fb
    • unknown's avatar
      Apply patch for BUG#30630 · 269b6f35
      unknown authored
      269b6f35
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-rpl · 7c338deb
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1-rpl-wl3949
      
      
      7c338deb
    • unknown's avatar
      Move the "use lib" directive to mtr.pl · ea9d91e8
      unknown authored
      ea9d91e8
    • unknown's avatar
      Merge kindahl-laptop.dnsalias.net:/home/bkroot/mysql-5.1-rpl · e6e30345
      unknown authored
      into  kindahl-laptop.dnsalias.net:/home/bk/b32580-mysql-5.1-rpl
      
      
      e6e30345
    • unknown's avatar
      BUG#32580 (mysqlbinlog cannot read binlog event generated by user variable usage): · dc8d5bc7
      unknown authored
      The client program 'mysqlbinlog' crashed when trying to print a User_var_log_event holding
      a floating-point value since the format specifier for my_b_printf() does not support
      floating-point format specifiers.
      
      This patch prints the floating-point number to an internal buffer, and then writes
      that buffer to the output instead.
      
      
      mysql-test/r/mysqlbinlog.result:
        Result file change.
      mysql-test/t/mysqlbinlog.test:
        Adding test that mysqlbinlog can write and read back User_var_log_event
        for real, decimal, integer, and string. These are the only types supported
        for user variables.
      sql/log_event.cc:
        Using my_sprintf() to print floating-point value of User_var_log_event value to a
        character buffer and then to the real output, since my_b_printf() does not
        support floating-point format. Also adding macro to give buffer size needed 
        for printing floating-point numbers in %g format.
      dc8d5bc7
    • unknown's avatar
      WL#3949 Test should set binlog format dnamically · 59574a6e
      unknown authored
      - Reorganize collect a little to make it easier to apply optimizations
        and settings to collected test cases.
      - Add suite/rpl/combination file
      - Rename include/set_binlog_format_x.inc to .sql since thay are run by "mysql"
       
      
      
      mysql-test/include/set_binlog_format_mixed.sql:
        Rename: mysql-test/include/set_binlog_format_mixed.inc -> mysql-test/include/set_binlog_format_mixed.sql
      mysql-test/include/set_binlog_format_row.sql:
        Rename: mysql-test/include/set_binlog_format_row.inc -> mysql-test/include/set_binlog_format_row.sql
      mysql-test/include/set_binlog_format_statement.sql:
        Rename: mysql-test/include/set_binlog_format_statement.inc -> mysql-test/include/set_binlog_format_statement.sql
      mysql-test/lib/mtr_cases.pl:
        Reorganize code to
         - collect a suite
         - multiply the tests in the suite with any combinations the suite has
         - optimize the suite by skipping test not supported with current settings
        Use My::Config to read combinations file in my.cnf file format, this
        allowas a "short name" to be used for the combination instead of
        the full name wich is set to the extra arguments the combination applies
        Add function 'print_testcase' that can be used to print the testcases
        during different stages of the collect phase
      mysql-test/lib/mtr_report.pl:
        Print <testname> '<combination>' if combination is set
      mysql-test/mysql-test-run.pl:
        Add comments, fix indentation
        Rename .in to .sql files
        Only set binlog format dynamicall for master, slav is always restarted
      mysql-test/lib/My/Config.pm:
        New BitKeeper file ``mysql-test/lib/My/Config.pm''
      mysql-test/suite/rpl/combinations:
        New BitKeeper file ``mysql-test/suite/rpl/combinations''
      59574a6e
  6. 21 Nov, 2007 5 commits
  7. 20 Nov, 2007 3 commits
    • unknown's avatar
      WL#3949, fix for 2nd part · 2d1f41a1
      unknown authored
      
      mysql-test/mysql-test-run.pl:
        updated mtr
      mysql-test/include/set_binlog_format_mixed.inc:
        set mixed binlog format
      mysql-test/include/set_binlog_format_row.inc:
        set row binlog format
      mysql-test/include/set_binlog_format_statement.inc:
        set statement binlog format
      2d1f41a1
    • unknown's avatar
      BUG#31581: 5.1-telco-6.1 -> 5.1.22. Slave crashes during starting · ccfcd595
      unknown authored
      This patch has two purposes:
      (1) To refactor the code so that
         {Write|Update|Delete}_rows_log_event_old does not use code from
         {Write|Update|Delete}_rows_log_event. Before refactoring there
         was the following problem: whenever we modifed the code for new
         events, it affected the old events. This is bad, as it makes
         maintainance difficult. After refactoring, we can safely edit the
         new code without affecting old events. So, if we for instance
         modify the binary format of new events, we no longer need to worry
         about how the new code reads old events.
      (2) To fix BUG#31581.
      
      These two objectives are reached by the following changes:
       - Merged Rows_log_event into Old_rows_log_event and
         {Write|Update|Delete}_rows_log_event into
         {Write|Update|Delete}_rows_log_event_old.
       - Fixed the bug by replacing {WRITE|UPDATE|DELETE}_ROWS_EVENT by
         PRE_GA_{WRITE|UPDATE|DELETE}_ROWS_EVENT.
       - Added comments to log_event_old.h
      
      (This patch is identical to the previously committed patch which was
      a collapse of three changesets, except that it adds assert(0) to
      constructors for old types of row log events that should never be
      called.)
      
      
      sql/log_event_old.cc:
        Merged Rows_log_event into Old_rows_log_event and
        {Write|Update|Delete}_rows_log_event into
        {Write|Update|Delete}_rows_log_event_old. Also fixed the bug by
        replacing {WRITE|UPDATE|DELETE}_ROWS_EVENT by
        PRE_GA_{WRITE|UPDATE|DELETE}_ROWS_EVENT.
      sql/log_event_old.h:
        Merged Rows_log_event into Old_rows_log_event and
        {Write|Update|Delete}_rows_log_event into
        {Write|Update|Delete}_rows_log_event_old. Also added comment
        explaining what the file contains and what the classes do.
      ccfcd595
    • unknown's avatar
      WL#3949, second part. Added soft switching of the binlog format (w/o restart a server) · bfb18f9a
      unknown authored
      
      mysql-test/lib/mtr_cases.pl:
        updated the code for combination
      mysql-test/mysql-test-run.pl:
        added soft switching of binlog format
      mysql-test/lib/mtr_misc.pl:
        added new sub mtr_diff_opts
      mysql-test/suite/rpl/r/rpl_invoked_features.result:
        updated result
      mysql-test/suite/rpl/t/rpl_invoked_features.test:
        updated test
      mysql-test/suite/rpl/t/rpl_misc_functions.test:
        updated test
      mysql-test/suite/rpl/t/rpl_session_var.test:
        updated test
      bfb18f9a
  8. 14 Nov, 2007 3 commits
    • unknown's avatar
      Post-merge fixes. · 8f798dff
      unknown authored
      
      sql/sql_delete.cc:
        Correcting merge error.
      8f798dff
    • unknown's avatar
      Reverting changes to debug printouts to ha_ndbcluster.cc. · b04cd27c
      unknown authored
      
      sql/ha_ndbcluster.cc:
        Reverting previous changes done to DBUG_ENTER strings.
      b04cd27c
    • unknown's avatar
      Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1 · 19ef3ae8
      unknown authored
      into  dl145h.mysql.com:/data0/mkindahl/mysql-5.1-new-rpl
      
      
      mysql-test/extra/rpl_tests/rpl_extraMaster_Col.test:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/suite/rpl/include/rpl_mixed_dml.inc:
        Auto merged
      mysql-test/suite/rpl/r/rpl_bug31076.result:
        Auto merged
      mysql-test/suite/rpl/t/rpl_bug31076.test:
        Auto merged
      mysql-test/suite/rpl/t/rpl_innodb_bug28430.test:
        Auto merged
      mysql-test/suite/rpl_ndb/t/disabled.def:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/handler.cc:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/log_event_old.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/slave.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      mysql-test/t/partition.test:
        Manual merge.
      BitKeeper/deleted/.del-rpl_row_extraColmaster_ndb.result~a2c64bae75b49d2:
        Manual merge.
      mysql-test/suite/rpl/r/rpl_extraColmaster_innodb.result:
        Manual merge.
      mysql-test/suite/rpl/r/rpl_extraColmaster_myisam.result:
        Manual merge.
      mysql-test/suite/rpl/t/disabled.def:
        Manual merge.
      sql/sql_delete.cc:
        Manual merge.
      19ef3ae8
  9. 12 Nov, 2007 2 commits
    • unknown's avatar
      Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.1-rpl · 296931c1
      unknown authored
      into  koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.1/bug31170-rpl_innodb_bug28430_fails
      
      
      mysql-test/suite/rpl/r/rpl_innodb_bug28430.result:
        Auto merged
      mysql-test/suite/rpl/t/rpl_innodb_bug28430.test:
        manual merge
      296931c1
    • unknown's avatar
      BUG#31611 (Security risk with BINLOG statement): · c4f94b70
      unknown authored
      Adding missing drop of user created for test case.
      
      
      mysql-test/r/mysqlbinlog.result:
        Result file change.
      mysql-test/t/mysqlbinlog.test:
        Dropping user that was added earlier in the test.
      c4f94b70
  10. 09 Nov, 2007 3 commits
    • unknown's avatar
      BUG#31552 (Replication breaks when deleting rows from out-of-sync table without PK): · e7c56ceb
      unknown authored
      Pushing test case for bug only. Bug already fixed as a result of the patch for BUG#19958.
      
      
      mysql-test/extra/rpl_tests/rpl_row_basic.test:
        Adding test to see that no error is given on slave when deleting
        rows that don't exist on table without primary key.
      mysql-test/suite/rpl/r/rpl_row_basic_2myisam.result:
        Result change.
      mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result:
        Result change.
      mysql-test/suite/rpl_ndb/r/rpl_row_basic_7ndb.result:
        Result change.
      e7c56ceb
    • unknown's avatar
      Fixing some tests to make the replication team tree green. · 1aa12b22
      unknown authored
      
      mysql-test/suite/rpl/r/rpl_found_rows.result:
        Result change.
      mysql-test/suite/rpl/t/rpl_found_rows.test:
        Adding ORDER BY to avoid order dependencies.
        Setting BINLOG_FORMAT=MIXED; for all master clients: one were missing.
        Dropping procedures that polluted later test results.
      1aa12b22
    • unknown's avatar
      Bug #31170 rpl_innodb_bug28430 fails: varying timing, ports, and log use · dc34f928
      unknown authored
      Non-deterministic parameters  of  SHOW SLAVE STATUS are masked out
      by means of using the standard include-macro.
      
      The masked-out parameters are not needed by the logics of the original
      tests. What is need to demonstre that replication is not stopped remains.
      
      
      
      mysql-test/suite/rpl/r/rpl_innodb_bug28430.result:
        results changed
      mysql-test/suite/rpl/t/rpl_innodb_bug28430.test:
        using the standard macro that takes care of masking out env specific values
      dc34f928
  11. 08 Nov, 2007 3 commits
  12. 07 Nov, 2007 4 commits
  13. 06 Nov, 2007 2 commits