An error occurred fetching the project authors.
  1. 19 Oct, 2007 1 commit
    • unknown's avatar
      BUG#28618 (Skipping into the middle of a group with SQL_SLAVE_SKIP_COUNTER · 74ef292d
      unknown authored
      is possible):
      
      When skipping the beginning of a transaction starting with BEGIN, the OPTION_BEGIN
      flag was not set correctly, which caused the slave to not recognize that it was
      inside a group. This patch sets the OPTION_BEGIN flag for BEGIN, COMMIT, ROLLBACK,
      and XID events. It also adds checks if inside a group before decreasing the
      slave skip counter to zero.
      
      Begin_query_log_event was not marked that it could not end a group, which is now
      corrected.
      
      
      mysql-test/extra/rpl_tests/rpl_extraSlave_Col.test:
        Correcting slave skip counter to get the correct behaviour.
      mysql-test/suite/rpl/r/rpl_slave_skip.result:
        Result change.
      mysql-test/suite/rpl/t/rpl_slave_skip.test:
        Adding tests to check that skipping works for transactions:
        - Skipping one group with BEGIN first
        - Skipping two groups with BEGIN first
        - Skipping one group without BEGIN first but with AUTOCOMMIT=0
        - LOAD DATA INFILE under statement-based replication
      mysql-test/suite/rpl_ndb/r/rpl_ndb_extraCol.result:
        Result change.
      sql/log_event.cc:
        Adding checks if we're in a group when the slave skip counter is 1.
        In that case, we should keep going.
        
        Adding helping member function Log_event::continue_group() denoting
        that this event cannot end a group, and if the skip counter indicates
        that the group ends after this event, it should not decrease the skip
        counter.
        
        Query_log_event will change the OPTION_BEGIN flag for BEGIN, COMMIT, and
        ROLLBACK, even when skipping because of a positive skip count, and
        Xid_log_event will also affect the OPTION_BEGIN flag, even when being
        skipped.
        
        Begin_load_query_log_event cannot end a group, so it is marked to
        continue the group.
      sql/log_event.h:
        Adding helper function Log_event::continue_group().
      sql/rpl_rli.h:
        Adding Relay_log_info::get_flag() to get the value of a
        replication flag.
      sql/slave.cc:
        Adding debug output and changing debug message.
      mysql-test/suite/rpl/data/rpl_bug28618.dat:
        New BitKeeper file ``mysql-test/suite/rpl/data/rpl_bug28618.dat''
      mysql-test/suite/rpl/t/rpl_slave_skip-slave.opt:
        New BitKeeper file ``mysql-test/suite/rpl/t/rpl_slave_skip-slave.opt''
      74ef292d
  2. 27 Jun, 2007 1 commit
    • unknown's avatar
      Move disabling of rpl_invoked_features to suite/rpl/t/disabled.def · 530dc045
      unknown authored
      Move tests to their respective suite
      
      
      mysql-test/suite/binlog/t/binlog_innodb.test:
        Rename: mysql-test/t/binlog_innodb.test -> mysql-test/suite/binlog/t/binlog_innodb.test
      mysql-test/suite/binlog/r/binlog_innodb.result:
        Rename: mysql-test/r/binlog_innodb.result -> mysql-test/suite/binlog/r/binlog_innodb.result
      mysql-test/suite/binlog/t/binlog_multi_engine.test:
        Rename: mysql-test/t/binlog_multi_engine.test -> mysql-test/suite/binlog/t/binlog_multi_engine.test
      mysql-test/suite/binlog/r/binlog_multi_engine.result:
        Rename: mysql-test/r/binlog_multi_engine.result -> mysql-test/suite/binlog/r/binlog_multi_engine.result
      mysql-test/suite/rpl/t/rpl_grant.test:
        Rename: mysql-test/t/rpl_grant.test -> mysql-test/suite/rpl/t/rpl_grant.test
      mysql-test/suite/rpl/t/rpl_invoked_features-master.opt:
        Rename: mysql-test/t/rpl_invoked_features-master.opt -> mysql-test/suite/rpl/t/rpl_invoked_features-master.opt
      mysql-test/suite/rpl/t/rpl_invoked_features-slave.opt:
        Rename: mysql-test/t/rpl_invoked_features-slave.opt -> mysql-test/suite/rpl/t/rpl_invoked_features-slave.opt
      mysql-test/suite/rpl/t/rpl_invoked_features.test:
        Rename: mysql-test/t/rpl_invoked_features.test -> mysql-test/suite/rpl/t/rpl_invoked_features.test
      mysql-test/suite/rpl/t/rpl_loaddata_fatal-slave.opt:
        Rename: mysql-test/t/rpl_loaddata_fatal-slave.opt -> mysql-test/suite/rpl/t/rpl_loaddata_fatal-slave.opt
      mysql-test/suite/rpl/t/rpl_loaddata_fatal.test:
        Rename: mysql-test/t/rpl_loaddata_fatal.test -> mysql-test/suite/rpl/t/rpl_loaddata_fatal.test
      mysql-test/suite/rpl/t/rpl_slave_skip.test:
        Rename: mysql-test/t/rpl_slave_skip.test -> mysql-test/suite/rpl/t/rpl_slave_skip.test
      mysql-test/suite/rpl/r/rpl_grant.result:
        Rename: mysql-test/r/rpl_grant.result -> mysql-test/suite/rpl/r/rpl_grant.result
      mysql-test/suite/rpl/r/rpl_invoked_features.result:
        Rename: mysql-test/r/rpl_invoked_features.result -> mysql-test/suite/rpl/r/rpl_invoked_features.result
      mysql-test/suite/rpl/r/rpl_loaddata_fatal.result:
        Rename: mysql-test/r/rpl_loaddata_fatal.result -> mysql-test/suite/rpl/r/rpl_loaddata_fatal.result
      mysql-test/suite/rpl/r/rpl_slave_skip.result:
        Rename: mysql-test/r/rpl_slave_skip.result -> mysql-test/suite/rpl/r/rpl_slave_skip.result
      mysql-test/suite/rpl/t/disabled.def:
        Move disabling of rpl_invoked_features to suite/rpl/t/disabled.def
      mysql-test/t/disabled.def:
        Move disabling of rpl_invoked_features to suite/rpl/t/disabled.def
      530dc045
  3. 13 Jun, 2007 1 commit
    • unknown's avatar
      Fixing some trivial test problems. · 2b24acb2
      unknown authored
      mysql-test/r/rpl_loaddata_fatal.result:
        Result change
      mysql-test/r/rpl_slave_skip.result:
        Result change
      mysql-test/t/rpl_loaddata_fatal.test:
        Test only valid for debug build
        Adding shutdown sequence.
      mysql-test/t/rpl_slave_skip.test:
        Masking out new columns.
      sql/log_event.cc:
        Freeing memory to keep valgrind silent.
      2b24acb2
  4. 01 Jun, 2007 1 commit
    • unknown's avatar
      WL#3339 (Issue warnings when statement-based replication may fail): · 1217839e
      unknown authored
      Adding missing test files. Result change in test rpl_udf.
      
      
      mysql-test/r/rpl_udf.result:
        Result change
      mysql-test/r/rpl_slave_skip.result:
        New BitKeeper file ``mysql-test/r/rpl_slave_skip.result''
      mysql-test/t/rpl_slave_skip.test:
        New BitKeeper file ``mysql-test/t/rpl_slave_skip.test''
      1217839e