From c704523195749285725797e2e1d4a955d47e364b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 21 Mar 2018 11:58:17 +0200 Subject: [PATCH] Remove orphan wsrep_node_is_ready() --- sql/sql_parse.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index affadf01d2cac..0a68d8ccea8cb 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -913,21 +913,6 @@ static bool wsrep_tables_accessible_when_detached(const TABLE_LIST *tables) #endif /* WITH_WSREP */ #ifndef EMBEDDED_LIBRARY -#ifdef WITH_WSREP -static bool wsrep_node_is_ready(THD *thd) -{ - if (thd->variables.wsrep_on && !thd->wsrep_applier && - (!wsrep_ready || wsrep_reject_queries != WSREP_REJECT_NONE)) - { - my_message(ER_UNKNOWN_COM_ERROR, - "WSREP has not yet prepared node for application use", - MYF(0)); - return false; - } - return true; -} -#endif - /** Read one command from connection and execute it (query or simple command). This function is called in loop from thread function.