MCPcopy Create free account
hub / github.com/MariaDB/server / open

Method open

sql/log.cc:4564–4578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4562
4563
4564bool 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
4580longlong
4581Event_log::write_description_event(enum_binlog_checksum_alg checksum_alg,

Callers 9

Wsrep_applier_serviceMethod · 0.45
mysqld.ccFile · 0.45
create_virtual_tmp_tableFunction · 0.45
wsrep_openFunction · 0.45
copy_data_between_tablesFunction · 0.45
initMethod · 0.45
purge_relay_logsFunction · 0.45
exec_coreMethod · 0.45

Calls 15

init_io_cacheFunction · 0.85
my_b_initedFunction · 0.85
end_io_cacheFunction · 0.85
my_closeFunction · 0.85
my_b_filelengthFunction · 0.85
my_b_safe_writeFunction · 0.85
my_b_tellFunction · 0.85
dirname_lengthFunction · 0.85
strmakeFunction · 0.85
reinit_io_cacheFunction · 0.85
my_b_writeFunction · 0.85

Tested by

no test coverage detected