summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index e8abf10af89..a54dcae9958 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -1567,6 +1567,15 @@ public:
online_alter_cache_data *online_alter_cache;
+ bool is_online_alter() const
+ {
+#ifdef HAVE_REPLICATION
+ return s->online_alter_binlog != NULL;
+#else
+ return false;
+#endif
+ }
+
inline void reset() { bzero((void*)this, sizeof(*this)); }
void init(THD *thd, TABLE_LIST *tl);
bool fill_item_list(List<Item> *item_list) const;