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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f2fa3015
Commit
f2fa3015
authored
May 06, 2011
by
Luis Soares
Browse files
Options
Browse Files
Download
Plain Diff
BUG#12425924
Automerging cset into latest mysql-5.5.
parents
e7dc2b0a
df07595d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
plugin/semisync/semisync_slave_plugin.cc
plugin/semisync/semisync_slave_plugin.cc
+2
-2
sql/rpl_handler.h
sql/rpl_handler.h
+3
-0
No files found.
plugin/semisync/semisync_slave_plugin.cc
View file @
f2fa3015
...
@@ -53,7 +53,6 @@ int repl_semi_slave_request_dump(Binlog_relay_IO_param *param,
...
@@ -53,7 +53,6 @@ int repl_semi_slave_request_dump(Binlog_relay_IO_param *param,
if
(
mysql_real_query
(
mysql
,
query
,
strlen
(
query
))
||
if
(
mysql_real_query
(
mysql
,
query
,
strlen
(
query
))
||
!
(
res
=
mysql_store_result
(
mysql
)))
!
(
res
=
mysql_store_result
(
mysql
)))
{
{
mysql_free_result
(
mysql_store_result
(
mysql
));
sql_print_error
(
"Execution failed on master: %s"
,
query
);
sql_print_error
(
"Execution failed on master: %s"
,
query
);
return
1
;
return
1
;
}
}
...
@@ -65,8 +64,10 @@ int repl_semi_slave_request_dump(Binlog_relay_IO_param *param,
...
@@ -65,8 +64,10 @@ int repl_semi_slave_request_dump(Binlog_relay_IO_param *param,
sql_print_warning
(
"Master server does not support semi-sync, "
sql_print_warning
(
"Master server does not support semi-sync, "
"fallback to asynchronous replication"
);
"fallback to asynchronous replication"
);
rpl_semi_sync_slave_status
=
0
;
rpl_semi_sync_slave_status
=
0
;
mysql_free_result
(
res
);
return
0
;
return
0
;
}
}
mysql_free_result
(
res
);
/*
/*
Tell master dump thread that we want to do semi-sync
Tell master dump thread that we want to do semi-sync
...
@@ -76,7 +77,6 @@ int repl_semi_slave_request_dump(Binlog_relay_IO_param *param,
...
@@ -76,7 +77,6 @@ int repl_semi_slave_request_dump(Binlog_relay_IO_param *param,
if
(
mysql_real_query
(
mysql
,
query
,
strlen
(
query
)))
if
(
mysql_real_query
(
mysql
,
query
,
strlen
(
query
)))
{
{
sql_print_error
(
"Set 'rpl_semi_sync_slave=1' on master failed"
);
sql_print_error
(
"Set 'rpl_semi_sync_slave=1' on master failed"
);
mysql_free_result
(
mysql_store_result
(
mysql
));
return
1
;
return
1
;
}
}
mysql_free_result
(
mysql_store_result
(
mysql
));
mysql_free_result
(
mysql_store_result
(
mysql
));
...
...
sql/rpl_handler.h
View file @
f2fa3015
...
@@ -73,7 +73,10 @@ class Delegate {
...
@@ -73,7 +73,10 @@ class Delegate {
while
(
info
&&
info
->
observer
!=
observer
)
while
(
info
&&
info
->
observer
!=
observer
)
info
=
iter
++
;
info
=
iter
++
;
if
(
info
)
if
(
info
)
{
iter
.
remove
();
iter
.
remove
();
delete
info
;
}
else
else
ret
=
TRUE
;
ret
=
TRUE
;
unlock
();
unlock
();
...
...
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