mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-16329 [3/5] use binlog_cache_data directly in most places
* Eliminate most usages of THD::use_trans_table. Only 3 left, and they are at quite high levels, and really essential. * Eliminate is_transactional argument when possible. Lots of places are left though, because of some WSREP error handling in MYSQL_BIN_LOG::set_write_error. * Remove junk binlog functions from THD * binlog_prepare_pending_rows_event is moved to log.cc inside MYSQL_BIN_LOG and is not anymore template. Instead it accepls event factory with a type code, and a callback to a constructing function in it.
This commit is contained in:
committed by
Sergei Golubchik
parent
429f635f30
commit
6427e343cf
@@ -7269,7 +7269,9 @@ int handler::binlog_log_row(TABLE *table,
|
||||
if (thd->variables.option_bits & OPTION_GTID_BEGIN)
|
||||
is_trans= 1;
|
||||
|
||||
bool error= (*log_func)(thd, table, &mysql_bin_log, cache_mngr,
|
||||
auto *cache= binlog_get_cache_data(cache_mngr, use_trans_cache(thd, is_trans));
|
||||
|
||||
bool error= (*log_func)(thd, table, &mysql_bin_log, cache,
|
||||
is_trans, before_record, after_record);
|
||||
DBUG_RETURN(error ? HA_ERR_RBR_LOGGING_FAILED : 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user