From 36a2a185fe18d31a644da46cfabd9757a379280c Mon Sep 17 00:00:00 2001 From: Brave Galera Crew Date: Wed, 23 Jan 2019 15:30:00 +0400 Subject: Galera4 --- sql/sql_truncate.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/sql_truncate.cc') diff --git a/sql/sql_truncate.cc b/sql/sql_truncate.cc index 798e929170c..389276d0bcf 100644 --- a/sql/sql_truncate.cc +++ b/sql/sql_truncate.cc @@ -416,9 +416,11 @@ bool Sql_cmd_truncate_table::truncate_table(THD *thd, TABLE_LIST *table_ref) { bool hton_can_recreate; +#ifdef WITH_WSREP if (WSREP(thd) && wsrep_to_isolation_begin(thd, table_ref->db.str, table_ref->table_name.str, 0)) DBUG_RETURN(TRUE); +#endif /* WITH_WSREP */ if (lock_table(thd, table_ref, &hton_can_recreate)) DBUG_RETURN(TRUE); -- cgit v1.2.1