• Michael Widenius's avatar
    Switch automaticly to statement based replication for statements that can't... · 51392386
    Michael Widenius authored
    Switch automaticly to statement based replication for statements that can't generate row based events. This is needed to avoid getting
    updates to system, statistics and admin tables logged to binary log.
    - Removed special code used to temporarily change to statement based replication.
    - Changed to a faster and smaller interface for temporarily switching to statement based replication.
    
    sql/event_db_repository.cc:
      Change to new interface to not use row based replication for system table changes.
    sql/events.cc:
      Change to new interface to not use row based replication for system table changes.
    sql/sp.cc:
      Removed temporarily switching to statement based replication (this is now done automaticly in mysql_execute_command())
    sql/sql_acl.cc:
      Change to new interface to not use row based replication for system table changes.
      Removed temporarily switching to statement based replication (this is now done automaticly in mysql_execute_command())
    sql/sql_class.h:
      Added new interface for temporarily switching to statement based replication.
    sql/sql_parse.cc:
      Mark commands that needs original replication mode with CF_FORCE_ORIGINAL_BINLOG_FORMAT.
      Switch automaticly to statement based replication for statements that can't generate row based events (and can't change replication mode)
    sql/sql_udf.cc:
      Removed temporarily switching to statement based replication (this is now done automaticly in mysql_execute_command())
    51392386
sql_udf.cc 16.4 KB