mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
[MDEV-6877] Add binlog writing according to columns
The logging function now writes to the binlog according to the bitmap columns implied by the binlog_row_image variable.
This commit is contained in:
@ -5658,8 +5658,7 @@ static int write_locked_table_maps(THD *thd)
|
||||
}
|
||||
|
||||
|
||||
typedef bool Log_func(THD*, TABLE*, bool, MY_BITMAP*,
|
||||
uint, const uchar*, const uchar*);
|
||||
typedef bool Log_func(THD*, TABLE*, bool, const uchar*, const uchar*);
|
||||
|
||||
static int binlog_log_row(TABLE* table,
|
||||
const uchar *before_record,
|
||||
@ -5705,8 +5704,7 @@ static int binlog_log_row(TABLE* table,
|
||||
*/
|
||||
bool const has_trans= thd->lex->sql_command == SQLCOM_CREATE_TABLE ||
|
||||
table->file->has_transactions();
|
||||
error= (*log_func)(thd, table, has_trans, &cols, table->s->fields,
|
||||
before_record, after_record);
|
||||
error= (*log_func)(thd, table, has_trans, before_record, after_record);
|
||||
}
|
||||
if (!use_bitbuf)
|
||||
my_bitmap_free(&cols);
|
||||
|
Reference in New Issue
Block a user