Commit 84795ec0 authored by Vysheng's avatar Vysheng

fixed bug in binlog init

parent 3765e69d
......@@ -1359,8 +1359,10 @@ static void replay_log_event (void) {
}
static void create_new_binlog (void) {
static int s[1000];
packet_ptr = s;
clear_packet ();
//static int s[1000];
//packet_ptr = s;
out_int (CODE_binlog_start);
if (tgl_state.test_mode) {
out_int (CODE_binlog_dc_option);
......@@ -1415,7 +1417,7 @@ static void create_new_binlog (void) {
perror ("Write new binlog");
exit (2);
}
assert (write (fd, s, (packet_ptr - s) * 4) == (packet_ptr - s) * 4);
assert (write (fd, packet_buffer, (packet_ptr - packet_buffer) * 4) == (packet_ptr - packet_buffer) * 4);
close (fd);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment