3066
3066
void Slave_log_event::pack_info(Protocol *protocol)
3068
char buf[256+HOSTNAME_LENGTH], *pos;
3069
pos= strcpy(buf, "host=")+5;
3070
pos= my_stpncpy(pos, master_host.c_str(), HOSTNAME_LENGTH);
3071
pos= strcpy(pos, ",port=")+6;
3072
pos= int10_to_str((long) master_port, pos, 10);
3073
pos= strcpy(pos, ",log=")+5;
3074
pos= strcpy(pos, master_log.c_str())+master_log.length();
3075
pos= strcpy(pos, ",pos=")+5;
3076
pos= int64_t10_to_str(master_pos, pos, 10);
3077
protocol->store(buf, pos-buf, &my_charset_bin);
3068
std::ostringstream stream;
3069
stream << "host=" << master_host << ",port=" << master_port;
3070
stream << ",log=" << master_log << ",pos=" << master_pos;
3072
protocol->store(stream.str().c_str(), stream.str().length(),