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
e5a81746
Commit
e5a81746
authored
17 years ago
by
unknown
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
e0f91f22
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 @
e5a81746
...
...
@@ -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"
;
...
...
This diff is collapsed.
Click to expand it.
sql/rpl_injector.cc
View file @
e5a81746
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
sql/rpl_injector.h
View file @
e5a81746
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
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