revision-id: c54ecbc7f5d141fefd97b196113ad14d0c17eca6 (mariadb-10.4.4-751-gc54ecbc7f5d) parent(s): 96c4695c89e76c4007da73c9d5ed83c3216a4720 author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2020-03-10 01:23:30 +0300 message: Fix compile failure: "unused variable thd", when built without WSREP --- sql/select_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/select_handler.cc b/sql/select_handler.cc index e8de92e322c..4d2cacd1a6e 100644 --- a/sql/select_handler.cc +++ b/sql/select_handler.cc @@ -77,10 +77,10 @@ bool Pushdown_select::init() bool Pushdown_select::send_result_set_metadata() { - THD *thd= handler->thd; DBUG_ENTER("Pushdown_select::send_result_set_metadata"); #ifdef WITH_WSREP + THD *thd= handler->thd; if (WSREP(thd) && thd->wsrep_retry_query) { WSREP_DEBUG("skipping select metadata");