From 633b6185be83744edd51455289c497857f5b6bc0 Mon Sep 17 00:00:00 2001 From: Simon J Mudd Date: Sat, 18 Nov 2017 19:47:57 +0100 Subject: [PATCH] Cosmetic: rename function set_unknow_error to correct set_unknown_error --- sql/rpl_binlog_sender.cc | 18 +++++++++--------- sql/rpl_binlog_sender.h | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sql/rpl_binlog_sender.cc b/sql/rpl_binlog_sender.cc index 00cee8bb6bf..a0f7e50c6ff 100644 --- a/sql/rpl_binlog_sender.cc +++ b/sql/rpl_binlog_sender.cc @@ -139,7 +139,7 @@ void Binlog_sender::init() (thd, m_flag, m_start_file, m_start_pos, &m_observe_transmission))) { - set_unknow_error("Failed to run hook 'transmit_start'"); + set_unknown_error("Failed to run hook 'transmit_start'"); DBUG_VOID_RETURN; } m_transmit_started=true; @@ -185,7 +185,7 @@ void Binlog_sender::init() #ifndef DBUG_OFF if (opt_sporadic_binlog_dump_fail && (binlog_dump_count++ % 2)) - set_unknow_error("Master fails in COM_BINLOG_DUMP because of " + set_unknown_error("Master fails in COM_BINLOG_DUMP because of " "--sporadic-binlog-dump-fail"); m_event_count= 0; #endif @@ -978,7 +978,7 @@ inline int Binlog_sender::reset_transmit_packet(ushort flags, size_t event_len) if (m_observe_transmission && RUN_HOOK(binlog_transmit, reserve_header, (m_thd, flags, &m_packet))) { - set_unknow_error("Failed to run hook 'reserve_header'"); + set_unknown_error("Failed to run hook 'reserve_header'"); DBUG_RETURN(1); } @@ -1219,7 +1219,7 @@ inline int Binlog_sender::flush_net() if (DBUG_EVALUATE_IF("simulate_flush_error", 1, m_thd->get_protocol()->flush())) { - set_unknow_error("failed on flush_net()"); + set_unknown_error("failed on flush_net()"); return 1; } return 0; @@ -1238,7 +1238,7 @@ inline int Binlog_sender::send_packet() m_thd->get_protocol_classic()->get_net(), (uchar*) m_packet.ptr(), m_packet.length()))) { - set_unknow_error("Failed on my_net_write()"); + set_unknown_error("Failed on my_net_write()"); DBUG_RETURN(1); } @@ -1260,7 +1260,7 @@ inline int Binlog_sender::before_send_hook(const char *log_file, RUN_HOOK(binlog_transmit, before_send_event, (m_thd, m_flag, &m_packet, log_file, log_pos))) { - set_unknow_error("run 'before_send_event' hook failed"); + set_unknown_error("run 'before_send_event' hook failed"); return 1; } return 0; @@ -1273,7 +1273,7 @@ inline int Binlog_sender::after_send_hook(const char *log_file, RUN_HOOK(binlog_transmit, after_send_event, (m_thd, m_flag, &m_packet, log_file, log_pos))) { - set_unknow_error("Failed to run hook 'after_send_event'"); + set_unknown_error("Failed to run hook 'after_send_event'"); return 1; } @@ -1283,7 +1283,7 @@ inline int Binlog_sender::after_send_hook(const char *log_file, */ if (m_thd->get_protocol_classic()->get_net()->last_errno != 0) { - set_unknow_error("Found net error"); + set_unknown_error("Found net error"); return 1; } return 0; @@ -1297,7 +1297,7 @@ inline int Binlog_sender::check_event_count() if (max_binlog_dump_events != 0 && (++m_event_count > max_binlog_dump_events)) { - set_unknow_error("Debugging binlog dump abort"); + set_unknown_error("Debugging binlog dump abort"); return 1; } return 0; diff --git a/sql/rpl_binlog_sender.h b/sql/rpl_binlog_sender.h index c4fbe248e1c..287a5e62025 100644 --- a/sql/rpl_binlog_sender.h +++ b/sql/rpl_binlog_sender.h @@ -382,7 +382,7 @@ class Binlog_sender : Gtid_mode_copy m_errno= errorno; } - void set_unknow_error(const char *errmsg) + void set_unknown_error(const char *errmsg) { set_error(ER_UNKNOWN_ERROR, errmsg); }