summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster_binlog.cc
diff options
context:
space:
mode:
authorunknown <tomas@whalegate.ndb.mysql.com>2007-04-03 14:31:46 +0200
committerunknown <tomas@whalegate.ndb.mysql.com>2007-04-03 14:31:46 +0200
commite5a81746de94d77e18d2b70a7410348dd6fc7624 (patch)
tree93eec7cc1878a6553da1c51083679bb39f4f91f7 /sql/ha_ndbcluster_binlog.cc
parente0f91f2262f05a5e8b031b9c09c73211999073e0 (diff)
downloadmariadb-git-e5a81746de94d77e18d2b70a7410348dd6fc7624.tar.gz
Bug #21494 Master Cluster MySQLD is point of failure that can lead to mismatch slave data
- insert gap event on cluster connect
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r--sql/ha_ndbcluster_binlog.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc
index e5b4cffa7fb..d1c2ad15894 100644
--- a/sql/ha_ndbcluster_binlog.cc
+++ b/sql/ha_ndbcluster_binlog.cc
@@ -3590,6 +3590,14 @@ restart:
Main NDB Injector loop
*/
{
+ /*
+ Always insert a GAP event as we cannot know what has happened in the cluster
+ while not being connected.
+ */
+ LEX_STRING const msg= { C_STRING_WITH_LEN("Cluster connect") };
+ inj->record_incident(thd, INCIDENT_LOST_EVENTS, msg);
+ }
+ {
thd->proc_info= "Waiting for ndbcluster to start";
pthread_mutex_lock(&injector_mutex);