summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 210a9246a16..f7fe67c8437 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -40,6 +40,9 @@
#include "sql_statistics.h"
#include "discover.h"
#include "mdl.h" // MDL_wait_for_graph_visitor
+#ifdef WITH_WSREP
+#include "ha_partition.h"
+#endif /* WITH_WSREP */
/* INFORMATION_SCHEMA name */
LEX_STRING INFORMATION_SCHEMA_NAME= {C_STRING_WITH_LEN("information_schema")};
@@ -3998,6 +4001,12 @@ void TABLE::init(THD *thd, TABLE_LIST *tl)
insert_values= 0;
fulltext_searched= 0;
file->ha_start_of_new_statement();
+#ifdef WITH_WSREP
+ if (file->ht->db_type == DB_TYPE_PARTITION_DB)
+ {
+ ((ha_partition*)file)->wsrep_reset_files();
+ }
+#endif
reginfo.impossible_range= 0;
created= TRUE;
cond_selectivity= 1.0;