• Monty's avatar
    Fixes for binary logging --read-only mode · b62101f8
    Monty authored
    - Any temporary tables created under read-only mode will never be logged
      to binary log.  Any usage of these tables to update normal tables, even
      after read-only has been disabled, will use row base logging (as the
      temporary table will not be on the slave).
    - Analyze, check and repair table will not be logged in read-only mode.
    
    Other things:
    - Removed not used varaibles in
      MYSQL_BIN_LOG::flush_and_set_pending_rows_event.
    - Set table_share->table_creation_was_logged for all normal tables.
    - THD::binlog_query() now returns -1 if statement was not logged., This
      is used to update table_share->table_creation_was_logged.
    - Don't log admin statements in opt_readonly is set.
    - Table's that doesn't have table_creation_was_logged will set binlog format to row
      logging.
    - Removed not needed/wrong setting of table->s->table_creation_was_logged
      in create_table_from_items()
    b62101f8
read_only.test 76 Bytes