summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2014-03-19 11:00:56 +0200
committerunknown <sanja@montyprogram.com>2014-03-19 11:00:56 +0200
commitaf3180ab6fa13b58fa4a4a2b00a89f2969dfa68d (patch)
treedf6af763f1bf35b482da253226f14a6c16c7d7af /sql/table.h
parentf1ca1f37c9c7a71456ed5ed0a46904c0a075cc32 (diff)
downloadmariadb-git-af3180ab6fa13b58fa4a4a2b00a89f2969dfa68d.tar.gz
MDEV-9095: Executing triggers on slave in row-based replication
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index e1e66898a6d..043760dd887 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -1234,6 +1234,10 @@ public:
bool get_fields_in_item_tree; /* Signal to fix_field */
bool m_needs_reopen;
bool created; /* For tmp tables. TRUE <=> tmp table was actually created.*/
+#ifdef HAVE_REPLICATION
+ /* used in RBR Triggers */
+ bool master_had_triggers;
+#endif
REGINFO reginfo; /* field connections */
MEM_ROOT mem_root;
@@ -1362,6 +1366,10 @@ public:
ulong actual_key_flags(KEY *keyinfo);
int update_default_fields();
inline ha_rows stat_records() { return used_stat_records; }
+
+ void prepare_triggers_for_insert_stmt_or_event();
+ bool prepare_triggers_for_delete_stmt_or_event();
+ bool prepare_triggers_for_update_stmt_or_event();
};