From 1123f87b5c463611ff325b97c428290d6685267c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= Date: Thu, 22 Mar 2018 21:01:20 +0200 Subject: [PATCH] Fix unused variable thd warning in embedded The warning came up post merge and is visible when compiling without WSREP. --- sql/handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ||