| 4562 | |
| 4563 | |
| 4564 | bool Event_log::open(enum cache_type io_cache_type_arg) |
| 4565 | { |
| 4566 | bool error= init_io_cache(&log_file, -1, LOG_BIN_IO_SIZE, io_cache_type_arg, |
| 4567 | 0, 0, MYF(MY_WME | MY_NABP | MY_WAIT_IF_FULL)); |
| 4568 | |
| 4569 | log_state= LOG_OPENED; |
| 4570 | inited= true; |
| 4571 | if (error) |
| 4572 | return error; |
| 4573 | |
| 4574 | longlong bytes_written= write_description_event(BINLOG_CHECKSUM_ALG_OFF, |
| 4575 | false, true, false); |
| 4576 | status_var_add(current_thd->status_var.binlog_bytes_written, bytes_written); |
| 4577 | return bytes_written < 0; |
| 4578 | } |
| 4579 | |
| 4580 | longlong |
| 4581 | Event_log::write_description_event(enum_binlog_checksum_alg checksum_alg, |
no test coverage detected