1. 12 Apr, 2007 1 commit
    • unknown's avatar
      BUG#25688 (RBR: circular replication may cause STMT_END_F flags to be · 6ed9fc6b
      unknown authored
      skipped):
      
      By moving statement end actions from Rows_log_event::do_apply_event() to
      Rows_log_event::do_update_pos() they will always be executed, even if
      Rows_log_event::do_apply_event() is skipped because the event originated
      at the same server. This because Rows_log_event::do_update_pos() is always
      executed (unless Rows_log_event::do_apply_event() failed with an error,
      in which case the slave stops with an error anyway). 
      
      Adding test case.
      
      Fixing logic to detect if inside a group. If a rotate event occured
      when an initial prefix of events for a statement, but for which the
      table did contain a key, last_event_start_time is set to zero, causing
      rotate to end the group but without unlocking any tables. This left a
      lock hanging around, which subsequently triggered an assertion when a
      second attempt was made to lock the same sequence of tables.
      
      In order to solve the above problem, a new flag was added to the relay
      log info structure that is used to indicate that the replication thread
      is currently executing a statement. Using this flag, the replication
      thread is in a group if it is either in a statement or inside a trans-
      action.
      
      The patch also eliminates some gratuitous header file inclusions that
      were not needed (and caused compile errors) and replaced them with
      forward definitions.
      
      
      sql/item_func.cc:
        Including definition of MASTER_INFO.
      sql/log.cc:
        Including definition of RELAY_LOG_INFO since it is used in the file.
      sql/log_event.cc:
        Moving statement end actions from Rows_log_event::do_apply_event() to
        Rows_log_event::do_update_pos().
        Factoring out code to update group positions and event positions into
        relay log info structure.
        ---
        Adding debugging printouts.
        Fixing logic to detect if inside a group.
      sql/log_event.h:
        Adding Rows_log_event::do_update_pos().
      sql/mysqld.cc:
        Including definition of MASTER_INFO.
      sql/repl_failsafe.cc:
        Including definition of MASTER_INFO.
      sql/rpl_mi.h:
        Including definition of RELAY_LOG_INFO since it is used in the file.
      sql/rpl_rli.cc:
        Adding member function stmt_done() to do after-statement updates of the
        relay log info structure.
      sql/rpl_rli.h:
        Adding member function stmt_done() to do after-statement updates of the
        relay log info structure.
      sql/set_var.cc:
        Including definition of MASTER_INFO.
      sql/slave.cc:
        Adding debuging printouts.
      sql/slave.h:
        Removing inclusion definitions of MASTER_INFO and RELAY_LOG_INFO and
        replacing them with forward declarations since the classes are not
        used in the file. The gratuitous inclusion lead to compile errors in
        the two classes above in files that used neither.
      sql/sql_binlog.cc:
        Including definition of RELAY_LOG_INFO since it is used in the file.
      sql/sql_class.cc:
        Including definition of RELAY_LOG_INFO since it is used in the file.
      sql/sql_class.h:
        Removing inclusion definitions of RELAY_LOG_INFO and replacing it
        with forward declaration since the class is not used in the file.
        The gratuitous inclusion lead to compile errors in the class above
        in files didn't use the class.
      sql/sql_insert.cc:
        Including definition of MASTER_INFO.
      sql/sql_repl.cc:
        Including definition of MASTER_INFO.
      mysql-test/r/rpl_ndb_circular_simplex.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_circular_simplex.result''
      mysql-test/t/rpl_ndb_circular_simplex.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_circular_simplex.test''
      6ed9fc6b
  2. 09 Apr, 2007 4 commits
    • unknown's avatar
      Merge mysql.com:/home/bar/mysql-5.0-rpl · 6d9d64ba
      unknown authored
      into  mysql.com:/home/bar/mysql-5.1-new-rpl
      
      
      client/mysql.cc:
        Auto merged
      mysql-test/r/variables.result:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/mysqld.cc:
        SCCS merged
      6d9d64ba
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl · 2e302abc
      unknown authored
      into  mysql.com:/home/bar/mysql-5.0.b22648
      
      
      2e302abc
    • unknown's avatar
      Bug#22648 LC_TIME_NAMES: Setting GLOBAL has no effect · 8e2b68c3
      unknown authored
      Problem: setting/displaying @@LC_TIME_NAMES didn't distinguish between
      GLOBAL and SESSION variable types - always SESSION variable
      was set/shonw.
      Fix: set either global or session value.
      Also, "mysqld --lc-time-names" was added to set "global default" value.
      
      
      mysql-test/r/variables.result:
        Adding test cases
      mysql-test/t/variables.test:
        Adding test cases
      sql/mysql_priv.h:
        Declaring variable for global default.
      sql/mysqld.cc:
        Adding --lc-time-names
      sql/set_var.cc:
        Distinguish between GLOBAL and SESSION variables.
      sql/sql_class.cc:
        Don't initialize to en_US, use global_system_variables value instead.
      8e2b68c3
    • unknown's avatar
      bug#27608 XML output is not well-formed · 33ac50f0
      unknown authored
      Problem: output was empty if the result is empty.
      Fix: print XML header and footer, even if the result
      is empty, to produce well-formed XML output.
      
      
      client/mysql.cc:
        Print header and footer even on empty set, when --xml
      mysql-test/r/client_xml.result:
        Adding test case
      mysql-test/t/client_xml.test:
        Adding test case
      33ac50f0
  3. 03 Apr, 2007 12 commits
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb · ec9b5eca
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-rpl
      
      
      sql/ha_ndbcluster_binlog.cc:
        Auto merged
      ec9b5eca
    • unknown's avatar
      Bug#17095 Cluster RBR in circle does not terminate · 502e5c93
      unknown authored
      - set correct server id
      
      
      502e5c93
    • unknown's avatar
      Bug #21494 Master Cluster MySQLD is point of failure that can lead to mismatch slave data · c2cde303
      unknown authored
        - insert gap event on cluster connect
      
      
      c2cde303
    • unknown's avatar
      Bug #21494 Master Cluster MySQLD is point of failure that can lead to mismatch slave data · e5a81746
      unknown authored
      - insert gap event on cluster connect
      
      
      e5a81746
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb · 2d384ffe
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-rpl
      
      
      client/Makefile.am:
        Auto merged
      mysql-test/r/rpl_ndb_basic.result:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      sql/ha_ndbcluster_binlog.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      2d384ffe
    • unknown's avatar
      Bug #17095 Cluster RBR in circle does not terminate · e0f91f22
      unknown authored
      - add any value to ndb
      - use it to update correct server id in binlog thread
      
      
      sql/ha_ndbcluster.cc:
        ndb: use "any value" to set correct server_id
      sql/ha_ndbcluster_binlog.cc:
        ndb: use "any value" to set correct server_id
      storage/ndb/include/kernel/AttributeHeader.hpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/include/kernel/signaldata/FireTrigOrd.hpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/include/kernel/signaldata/SumaImpl.hpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/include/ndbapi/NdbDictionary.hpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/include/ndbapi/NdbEventOperation.hpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/include/ndbapi/NdbOperation.hpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/kernel/blocks/dbtup/DbtupGen.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/kernel/blocks/dbtup/DbtupStoredProcDef.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/kernel/blocks/suma/Suma.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/ndbapi/NdbEventOperation.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/ndbapi/NdbOperationDefine.cpp:
        add any_value as psudo column, updatable from ndbapi
      storage/ndb/src/ndbapi/ndb_cluster_connection.cpp:
        add any_value as psudo column, updatable from ndbapi
      e0f91f22
    • unknown's avatar
      Bug #26783 replication status unknown after cluster or mysqld failure · 52f82d52
      unknown authored
      - correction, wrong datatype used
      
      
      52f82d52
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca · 9f855abd
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      9f855abd
    • unknown's avatar
      remove unused List · e4f490c1
      unknown authored
      e4f490c1
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new-rpl · 146a86a2
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-rpl
      
      
      client/Makefile.am:
        Auto merged
      mysql-test/r/rpl_ndb_basic.result:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      sql/ha_ndbcluster_binlog.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      146a86a2
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-rpl · 98398075
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
      
      
      client/Makefile.am:
        Auto merged
      mysql-test/r/rpl_ndb_basic.result:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      sql/ha_ndbcluster_binlog.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      98398075
    • unknown's avatar
      Bug #26783 replication status unknown after cluster or mysqld failure · 4c669601
      unknown authored
      - update the ndb_apply_status table with binlog info
      
      
      BitKeeper/etc/ignore:
        Added client/rpl_constants.h to the ignore list
      mysql-test/r/rpl_ndb_stm_innodb.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_stm_innodb.result''
      mysql-test/t/rpl_ndb_stm_innodb-master.opt:
        New BitKeeper file ``mysql-test/t/rpl_ndb_stm_innodb-master.opt''
      mysql-test/t/rpl_ndb_stm_innodb.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_stm_innodb.test''
      4c669601
  4. 02 Apr, 2007 18 commits
  5. 01 Apr, 2007 1 commit
  6. 31 Mar, 2007 4 commits