diff options
Diffstat (limited to 'sql/semisync_master.cc')
-rw-r--r-- | sql/semisync_master.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/semisync_master.cc b/sql/semisync_master.cc index 99d8b75ece8..5e83847edf9 100644 --- a/sql/semisync_master.cc +++ b/sql/semisync_master.cc @@ -755,10 +755,10 @@ int Repl_semi_sync_master::dump_start(THD* thd, add_slave(); report_reply_binlog(thd->variables.server_id, log_file + dirname_length(log_file), log_pos); - sql_print_information("Start semi-sync binlog_dump to slave (server_id: %d), " - "pos(%s, %lu", - thd->variables.server_id, log_file, - (unsigned long)log_pos); + sql_print_information("Start semi-sync binlog_dump to slave " + "(server_id: %ld), pos(%s, %lu)", + (long) thd->variables.server_id, log_file, + (ulong) log_pos); return 0; } @@ -768,7 +768,8 @@ void Repl_semi_sync_master::dump_end(THD* thd) if (!thd->semi_sync_slave) return; - sql_print_information("Stop semi-sync binlog_dump to slave (server_id: %d)", thd->variables.server_id); + sql_print_information("Stop semi-sync binlog_dump to slave (server_id: %ld)", + (long) thd->variables.server_id); remove_slave(); ack_receiver.remove_slave(thd); |