summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2018-03-22 21:01:20 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2018-03-22 21:01:20 +0200
commit1123f87b5c463611ff325b97c428290d6685267c (patch)
treee04d227a9af6c7cdcacd2eab358bd109a1d5e0c4 /sql
parentfc05777eac8defc15fd3cfa8ae55c7d2f2b8671a (diff)
downloadmariadb-git-1123f87b5c463611ff325b97c428290d6685267c.tar.gz
Fix unused variable thd warning in embedded
The warning came up post merge and is visible when compiling without WSREP.
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index a27778b8115..8093c17135b 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -5822,9 +5822,9 @@ static inline int binlog_log_row(TABLE* table,
const uchar *after_record,
Log_func *log_func)
{
+#ifdef WITH_WSREP
THD *const thd= table->in_use;
-#ifdef WITH_WSREP
/* only InnoDB tables will be replicated through binlog emulation */
if ((WSREP_EMULATE_BINLOG(thd) &&
table->file->partition_ht()->db_type != DB_TYPE_INNODB) ||