1. 16 Nov, 2007 2 commits
    • unknown's avatar
      Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1-new-rpl · 47d30b19
      unknown authored
      into  dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl-merge
      
      
      47d30b19
    • unknown's avatar
      Bug#32435: · 21138338
      unknown authored
      DROP DATABASE statement writes changes to mysql.proc table under RBR
      
      When replicating a DROP DATABASE statement with a database holding
      stored procedures, the changes to the mysql.proc table was recorded
      in the binary log under row-based replication.
      
      With this patch, the thread uses statement-logging format for the
      duration of the DROP DATABASE statement. The logging format is
      (already) reset at the end of the statement, so no additional code
      for resetting the logging format is necessary.
      
      
      sql/sql_db.cc:
        Clearing the row-based statement flag for the DROP DATABASE statement
        since it should always be replicated as a statement.
      mysql-test/extra/binlog_tests/database.test:
        New BitKeeper file ``mysql-test/extra/binlog_tests/database.test''
      mysql-test/suite/binlog/r/binlog_database.result:
        New BitKeeper file ``mysql-test/suite/binlog/r/binlog_database.result''
      mysql-test/suite/binlog/t/binlog_database.test:
        New BitKeeper file ``mysql-test/suite/binlog/t/binlog_database.test''
      21138338
  2. 15 Nov, 2007 1 commit
    • unknown's avatar
      Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl-merge · 9e0d1dbd
      unknown authored
      into  dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl-merge
      
      
      mysql-test/r/mysqlbinlog.result:
        Auto merged
      mysql-test/t/mysqlbinlog.test:
        Auto merged
      sql/log_event.cc:
        Auto merged
      BitKeeper/deleted/.del-compile-solaris-amd64:
        Delete: BUILD/compile-solaris-amd64
      9e0d1dbd
  3. 14 Nov, 2007 5 commits
    • unknown's avatar
      Post-merge fixes. · 8f798dff
      unknown authored
      
      sql/sql_delete.cc:
        Correcting merge error.
      8f798dff
    • unknown's avatar
      Merge mkindahl@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl · 5a3baf3d
      unknown authored
      into  dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl
      
      
      5a3baf3d
    • 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.0 · f5613086
      unknown authored
      into  dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl
      
      
      f5613086
    • 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
  4. 13 Nov, 2007 2 commits
  5. 12 Nov, 2007 3 commits
    • unknown's avatar
      BUG#31793 (log event corruption causes crash): · b3c4bc6e
      unknown authored
      Corrections to get_str_len_and_pointer().
      
      
      sql/log_event.cc:
        Adding missing return at end of get_str_len_and_pointer()
        and correcting computation of missing bytes.
      b3c4bc6e
    • 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
  6. 09 Nov, 2007 6 commits
    • unknown's avatar
      Merge capulet.net:/home/bk/mysql-5.0-rpl · 9eb28b96
      unknown authored
      into  capulet.net:/home/mats/devel/b31793-mysql-5.0-rpl
      
      
      sql/log_event.cc:
        Auto merged
      9eb28b96
    • unknown's avatar
      Merge mkindahl@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl · d7bc28fc
      unknown authored
      into  capulet.net:/home/bk/mysql-5.0-rpl
      
      
      d7bc28fc
    • unknown's avatar
      BUG#31793 (log event corruption causes crash): · dc91bc74
      unknown authored
      When running mysqlbinlog on a 64-bit machine with a corrupt relay log,
      it causes mysqlbinlog to crash. In this case, the crash is caused
      because a request for 18446744073709534806U bytes is issued, which
      apparantly can be served on a 64-bit machine (speculatively, I assume)
      but this causes the memcpy() issued later to copy the data to segfault.
      
      The request for the number of bytes is caused by a computation
      of data_len - server_vars_len where server_vars_len is corrupt in such
      a sense that it is > data_len. This causes a wrap-around, with the
      the data_len given above.
      
      This patch adds a check that if server_vars_len is greater than
      data_len before the substraction, and aborts reading the event in
      that case marking the event as invalid. It also adds checks to see
      that reading the server variables does not go outside the bounds
      of the available space, giving a limited amount of integrity check.
      
      
      mysql-test/r/mysqlbinlog.result:
        Result change.
      mysql-test/t/mysqlbinlog.test:
        Adding test that it fails gracefully for a corrupt relay log.
      sql/log_event.cc:
        Adding check that status var length does not cause wrap-around
        when performing subtraction. Extending get_str_len_and_pointer() to
        check that the string can actually be read without reading outside
        bounds. Adding checks when reading server variables from the Query-
        log_event so that the variable can really be read. Abort reading
        and mark the event as invalid otherwise.
      mysql-test/std_data/corrupt-relay-bin.000624:
        BitKeeper file /home/mats/devel/b31793-mysql-5.0-rpl/mysql-test/std_data/corrupt-relay-bin.000624
      dc91bc74
    • 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
  7. 08 Nov, 2007 3 commits
  8. 07 Nov, 2007 4 commits
  9. 06 Nov, 2007 14 commits
    • unknown's avatar
      Merge koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.0/bug27571_asyn_killed_flags · cb9af6f8
      unknown authored
      into  koti.dsl.inet.fi:/home/elkin/MySQL/merge-5.1
      
      
      mysql-test/suite/binlog/r/binlog_killed.result:
        Auto merged
      mysql-test/suite/binlog/t/binlog_killed.test:
        Auto merged
      mysql-test/suite/rpl/t/rpl_dual_pos_advance.test:
        Auto merged
      mysql-test/suite/rpl/t/rpl_temporary.test:
        manual merge
      sql/log.cc:
        manual merge
      cb9af6f8
    • unknown's avatar
      Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl · 6957e84e
      unknown authored
      into  koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.0/bug27571_asyn_killed_flags
      
      
      6957e84e
    • unknown's avatar
      bug#27571 · 0c1a085c
      unknown authored
      refining non-deterministic tests.
      The new Bug@32148 is in the way. Adjuting the tests to be somehow useful.
       
      
      
      mysql-test/r/binlog_killed.result:
        results changed
      mysql-test/t/binlog_killed.test:
        refining the tests as killing is inherently non-deterministic;
        leaving todos.
      0c1a085c
    • unknown's avatar
      Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · af48b26e
      unknown authored
      into  lambda.hsd1.co.comcast.net.:/home/malff/TREE/mysql-5.1-runtime
      
      
      af48b26e
    • unknown's avatar
      bug#27571 · febb4201
      unknown authored
      tests fixing: refreshing the results file.
      
      
      mysql-test/suite/binlog/r/binlog_killed.result:
        results changed
      febb4201
    • unknown's avatar
      BUG#12092 (FOUND_ROWS() not replicated): · 657dca93
      unknown authored
      In BUG#30244 added FOUND_ROWS() as an unsafe function, but that
      works only in mixed mode under 5.1. There is a workaround that
      can be used in statement-based mode either under 5.0 or 5.1
      where the result of FOUND_ROWS() is stored into a user vari-
      able and used that way instead. This will replicate correctly
      even under statement-based replication, since it will write
      a User_var entry to the binary log. For some other cases, the
      value has to be passed explicitly.
      
      This patch adds tests to demonstrate that the workarounds docu-
      mented for statement-based replication works as advertised, and
      does more extensive tests for cases that does not work under sta-
      tement-based replication actually work under mixed mode by switch-
      ing to row-based replication.
      
      
      mysql-test/include/reset_master_and_slave.inc:
        New BitKeeper file ``mysql-test/include/reset_master_and_slave.inc''
      mysql-test/suite/rpl/r/rpl_found_rows.result:
        New BitKeeper file ``mysql-test/suite/rpl/r/rpl_found_rows.result''
      mysql-test/suite/rpl/t/rpl_found_rows.test:
        New BitKeeper file ``mysql-test/suite/rpl/t/rpl_found_rows.test''
      657dca93
    • unknown's avatar
      Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl · 0216fb0d
      unknown authored
      into  koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.0/bug28597-log_name_upgrade
      
      
      0216fb0d
    • unknown's avatar
      results from 5.0 is not needed · 8d4fdc5c
      unknown authored
      
      BitKeeper/deleted/.del-binlog_killed_simulate.result:
        Delete: mysql-test/r/binlog_killed_simulate.result
      8d4fdc5c
    • unknown's avatar
      Merge koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0 · 74174d6f
      unknown authored
      into  koti.dsl.inet.fi:/home/elkin/MySQL/merge-5.1
      
      
      BitKeeper/deleted/.del-binlog_killed_bug27571-master.opt:
        Auto merged
      BitKeeper/deleted/.del-binlog_killed_bug27571.test:
        Auto merged
      74174d6f
    • unknown's avatar
      bug#27571 · d8c4501b
      unknown authored
      fixing tests
      
      
      mysql-test/r/binlog_killed_simulate.result:
        the new tests' result
      d8c4501b
    • unknown's avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · c33d42eb
      unknown authored
      into  magare.gmz:/home/kgeorge/mysql/autopush/B31974-5.1-runtime
      
      
      c33d42eb
    • unknown's avatar
      Bug #31974: additional commit (test case updates) · 17698ca0
      unknown authored
       loose index scan enabled for subqueries
      
      
      mysql-test/r/group_min_max.result:
        Bug #31974: test case updates
         loose index scan enabled for subqueries
      mysql-test/r/index_merge_myisam.result:
        Bug #31974: test case updates
         loose index scan enabled for subqueries
      17698ca0
    • unknown's avatar
      bug#27571 · 86e07400
      unknown authored
      removing extra tests (on 5.1 that's been already done)
      
      
      BitKeeper/deleted/.del-binlog_killed_bug27571-master.opt:
        Delete: mysql-test/t/binlog_killed_bug27571-master.opt
      BitKeeper/deleted/.del-binlog_killed_bug27571.test:
        Delete: mysql-test/t/binlog_killed_bug27571.test
      86e07400
    • unknown's avatar
      Merge koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0 · 80533592
      unknown authored
      into  koti.dsl.inet.fi:/home/elkin/MySQL/merge-5.1
      
      
      mysql-test/suite/binlog/r/binlog_killed.result:
        manual merge ul
      mysql-test/suite/binlog/t/binlog_killed.test:
        manual merge with 5.0 specific tests; use local
      mysql-test/suite/binlog/t/binlog_killed_simulate.test:
         manual merge with 5.0 specific tests; use local
      mysql-test/t/ctype_ucs.test:
        Auto merged
      mysql-test/t/func_regexp.test:
        Auto merged
      mysql-test/r/ctype_ucs.result:
        automerge
      mysql-test/r/ctype_utf8.result:
        automerge
      mysql-test/r/func_regexp.result:
        automerge
      mysql-test/t/ctype_utf8.test:
        automerge
      sql/item_cmpfunc.cc:
        automerge
      sql/item_cmpfunc.h:
        automerge
      sql/sql_class.h:
        automerge
      sql/sql_insert.cc:
        automerge
      sql/sql_parse.cc:
        automerge
      sql/sql_update.cc:
        automerge
      80533592