1. 28 Sep, 2008 1 commit
    • He Zhenxing's avatar
      BUG#38734 rpl_server_id2 sync_with_master failed · 0d2025e1
      He Zhenxing authored
      Rotate event is automatically generated and written when rotating binary
      log or relay log. Rotate events for relay logs are usually ignored by slave
      SQL thread becuase they have the same server id as that of the slave.
      However, if --replicate-same-server-id is enabled, rotate event
      for relay log would be treated as if it's a rotate event from master, and
      would be executed by slave to update the rli->group_master_log_name and
      rli->group_master_log_pos to a wrong value and cause the MASTER_POS_WAIT
      function to fail and return NULL.
      
      This patch fixed this problem by setting a flag bit (LOG_EVENT_RELAY_LOG_F)
      in the event to tell the SQL thread to ignore these Rotate events generated
      for relay logs.
      
      This patch also added another binlog event flag bit (LOG_EVENT_ARTIFICIAL_F)
      to distinquish faked events, the method used before this was by checking if
      log_pos was zero.
      0d2025e1
  2. 29 Aug, 2008 3 commits
  3. 27 Aug, 2008 1 commit
  4. 25 Aug, 2008 2 commits
  5. 22 Aug, 2008 1 commit
  6. 20 Aug, 2008 2 commits
  7. 19 Aug, 2008 2 commits
    • Mats Kindahl's avatar
      Merging with 5.1-rpl · e2882676
      Mats Kindahl authored
      e2882676
    • Mats Kindahl's avatar
      Bug #34707: Row based replication: slave creates table within wrong database · f0bf4a47
      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.
      f0bf4a47
  8. 15 Aug, 2008 1 commit
  9. 14 Aug, 2008 6 commits
  10. 13 Aug, 2008 5 commits
  11. 12 Aug, 2008 4 commits
  12. 11 Aug, 2008 12 commits