From 840aefc6a34a57c572fc6c37ea16648e8dd6a1e6 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Sun, 9 Aug 2015 14:16:50 -0400 Subject: MDEV-8590: Fix embedded build failure --- sql/handler.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sql/handler.cc b/sql/handler.cc index 705b760732e..51deee44eb6 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -5590,6 +5590,7 @@ static bool check_table_binlog_row_based(THD *thd, TABLE *table) return (thd->is_current_stmt_binlog_format_row() && table->s->cached_row_logging_check && +#ifdef WITH_WSREP /* Wsrep partially enables binary logging if it have not been explicitly turned on. As a result we return 'true' if we are in @@ -5608,6 +5609,10 @@ static bool check_table_binlog_row_based(THD *thd, TABLE *table) ((WSREP_EMULATE_BINLOG(thd) && (thd->wsrep_exec_mode != REPL_RECV)) || ((WSREP(thd) || (thd->variables.option_bits & OPTION_BIN_LOG)) && mysql_bin_log.is_open()))); +#else + (thd->variables.option_bits & OPTION_BIN_LOG) && + mysql_bin_log.is_open()); +#endif } -- cgit v1.2.1