mirror of
https://github.com/MariaDB/server.git
synced 2025-04-21 22:55:35 +02:00
Allow binlog row image column marking even for wsrep binlog emulation.
This commit is contained in:
parent
dd4d81ddfd
commit
0e2ce3b745
1 changed files with 6 additions and 6 deletions
12
sql/table.cc
12
sql/table.cc
|
@ -5985,17 +5985,17 @@ void TABLE::mark_columns_per_binlog_row_image()
|
|||
DBUG_ASSERT(read_set->bitmap);
|
||||
DBUG_ASSERT(write_set->bitmap);
|
||||
|
||||
THD *thd= current_thd;
|
||||
|
||||
/**
|
||||
If in RBR we may need to mark some extra columns,
|
||||
depending on the binlog-row-image command line argument.
|
||||
*/
|
||||
if ((mysql_bin_log.is_open() && in_use &&
|
||||
in_use->is_current_stmt_binlog_format_row() &&
|
||||
!ha_check_storage_engine_flag(s->db_type(), HTON_NO_BINLOG_ROW_OPT)))
|
||||
if ((WSREP_EMULATE_BINLOG(thd) || mysql_bin_log.is_open()) &&
|
||||
in_use &&
|
||||
in_use->is_current_stmt_binlog_format_row() &&
|
||||
!ha_check_storage_engine_flag(s->db_type(), HTON_NO_BINLOG_ROW_OPT))
|
||||
{
|
||||
|
||||
THD *thd= current_thd;
|
||||
|
||||
/* if there is no PK, then mark all columns for the BI. */
|
||||
if (s->primary_key >= MAX_KEY)
|
||||
bitmap_set_all(read_set);
|
||||
|
|
Loading…
Add table
Reference in a new issue