Commit 25a4a721 authored by vvaltman's avatar vvaltman

Merge branch 'master' of github.com:vysheng/tg

parents de089530 84795ec0
...@@ -1359,8 +1359,10 @@ static void replay_log_event (void) { ...@@ -1359,8 +1359,10 @@ static void replay_log_event (void) {
} }
static void create_new_binlog (void) { static void create_new_binlog (void) {
static int s[1000]; clear_packet ();
packet_ptr = s; //static int s[1000];
//packet_ptr = s;
out_int (CODE_binlog_start); out_int (CODE_binlog_start);
if (tgl_state.test_mode) { if (tgl_state.test_mode) {
out_int (CODE_binlog_dc_option); out_int (CODE_binlog_dc_option);
...@@ -1415,7 +1417,7 @@ static void create_new_binlog (void) { ...@@ -1415,7 +1417,7 @@ static void create_new_binlog (void) {
perror ("Write new binlog"); perror ("Write new binlog");
exit (2); 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); 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