~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log_event.cc

  • Committer: Brian Aker
  • Date: 2008-11-12 01:27:19 UTC
  • Revision ID: brian@tangent.org-20081112012719-rz97qt34iii2f73o
Next pass in removing/standardizing replication

Show diffs side-by-side

added added

removed removed

Lines of Context:
5281
5281
      thread is certainly going to stop.
5282
5282
      rollback at the caller along with sbr.
5283
5283
    */
5284
 
    session->reset_current_stmt_binlog_row_based();
5285
5284
    const_cast<Relay_log_info*>(rli)->cleanup_context(session, error);
5286
5285
    session->is_slave_error= 1;
5287
5286
    return(error);
5376
5375
      event flushed.
5377
5376
    */
5378
5377
 
5379
 
    session->reset_current_stmt_binlog_row_based();
5380
 
 
5381
5378
    rli->cleanup_context(session, 0);
5382
5379
    if (error == 0)
5383
5380
    {
5771
5768
    */
5772
5769
    lex_start(session);
5773
5770
    mysql_reset_session_for_next_command(session);
5774
 
    /*
5775
 
      Check if the slave is set to use SBR.  If so, it should switch
5776
 
      to using RBR until the end of the "statement", i.e., next
5777
 
      STMT_END_F or next error.
5778
 
    */
5779
 
    if (!session->current_stmt_binlog_row_based &&
5780
 
        mysql_bin_log.is_open() && (session->options & OPTION_BIN_LOG))
5781
 
    {
5782
 
      session->set_current_stmt_binlog_row_based();
5783
 
    }
5784
5771
 
5785
5772
    /*
5786
5773
      Open the table if it is not already open and add the table to