Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6db3dbca
Commit
6db3dbca
authored
Apr 03, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #21494 Master Cluster MySQLD is point of failure that can lead to mismatch slave data
- insert gap event on cluster connect
parent
81ac116d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+8
-0
sql/rpl_injector.cc
sql/rpl_injector.cc
+1
-1
sql/rpl_injector.h
sql/rpl_injector.h
+1
-1
No files found.
sql/ha_ndbcluster_binlog.cc
View file @
6db3dbca
...
...
@@ -3589,6 +3589,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"
;
...
...
sql/rpl_injector.cc
View file @
6db3dbca
...
...
@@ -198,7 +198,7 @@ int injector::record_incident(THD *thd, Incident incident)
return
0
;
}
int
injector
::
record_incident
(
THD
*
thd
,
Incident
incident
,
LEX_STRING
message
)
int
injector
::
record_incident
(
THD
*
thd
,
Incident
incident
,
LEX_STRING
const
message
)
{
Incident_log_event
ev
(
thd
,
incident
,
message
);
if
(
int
error
=
mysql_bin_log
.
write
(
&
ev
))
...
...
sql/rpl_injector.h
View file @
6db3dbca
...
...
@@ -324,7 +324,7 @@ public:
void
new_trans
(
THD
*
,
transaction
*
);
int
record_incident
(
THD
*
,
Incident
incident
);
int
record_incident
(
THD
*
,
Incident
incident
,
LEX_STRING
message
);
int
record_incident
(
THD
*
,
Incident
incident
,
LEX_STRING
const
message
);
private:
explicit
injector
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment