~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_repl.cc

MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
547
547
         The packet has offsets equal to the normal offsets in a binlog
548
548
         event +1 (the first character is \0).
549
549
       */
550
 
       DBUG_PRINT("info",
551
 
                  ("Looked for a Format_description_log_event, found event type %d",
552
 
                   (*packet)[EVENT_TYPE_OFFSET+1]));
553
550
       if ((*packet)[EVENT_TYPE_OFFSET+1] == FORMAT_DESCRIPTION_EVENT)
554
551
       {
555
552
         binlog_can_be_corrupted= test((*packet)[FLAGS_OFFSET+1] &
638
635
        goto err;
639
636
      }
640
637
 
641
 
      DBUG_PRINT("info", ("log event code %d",
642
 
                          (*packet)[LOG_EVENT_OFFSET+1] ));
643
638
      if ((*packet)[LOG_EVENT_OFFSET+1] == LOAD_EVENT)
644
639
      {
645
640
        if (send_file(thd))
1782
1777
  DBUG_ENTER("fix_slave_net_timeout");
1783
1778
#ifdef HAVE_REPLICATION
1784
1779
  pthread_mutex_lock(&LOCK_active_mi);
1785
 
  DBUG_PRINT("info",("slave_net_timeout=%lu mi->heartbeat_period=%.3f",
1786
 
                     slave_net_timeout,
1787
 
                     (active_mi? active_mi->heartbeat_period : 0.0)));
1788
1780
  if (active_mi && slave_net_timeout < active_mi->heartbeat_period)
1789
1781
    push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
1790
1782
                        ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE,