diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 75bd9bd4d10..ec49341624b 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -44,6 +44,9 @@ // end_read_record #include "sql_insert.h" // fix_rownum_pointers #include "sql_partition.h" // make_used_partitions_str +#ifdef WITH_WSREP +#include "wsrep_mysqld.h" +#endif #define MEM_STRIP_BUF_SIZE ((size_t) thd->variables.sortbuff_size) diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 90f78a298c8..d4cea5290f1 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -45,6 +45,9 @@ #include "sql_insert.h" // For vers_insert_history_row() that may be // needed for System Versioning. +#ifdef WITH_WSREP +#include "wsrep_mysqld.h" +#endif /** True if the table's input and output record buffers are comparable using