mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix unused variable thd warning in embedded
The warning came up post merge and is visible when compiling without WSREP.
This commit is contained in:
@ -5822,9 +5822,9 @@ static inline int binlog_log_row(TABLE* table,
|
|||||||
const uchar *after_record,
|
const uchar *after_record,
|
||||||
Log_func *log_func)
|
Log_func *log_func)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_WSREP
|
||||||
THD *const thd= table->in_use;
|
THD *const thd= table->in_use;
|
||||||
|
|
||||||
#ifdef WITH_WSREP
|
|
||||||
/* only InnoDB tables will be replicated through binlog emulation */
|
/* only InnoDB tables will be replicated through binlog emulation */
|
||||||
if ((WSREP_EMULATE_BINLOG(thd) &&
|
if ((WSREP_EMULATE_BINLOG(thd) &&
|
||||||
table->file->partition_ht()->db_type != DB_TYPE_INNODB) ||
|
table->file->partition_ht()->db_type != DB_TYPE_INNODB) ||
|
||||||
|
Reference in New Issue
Block a user