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
1c2556ff
Commit
1c2556ff
authored
Aug 13, 2009
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Plain Diff
Merge from mysql-5.0-bugteam.
parents
fce4fa36
050c36c7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
7 deletions
+48
-7
mysql-test/collections/default.experimental
mysql-test/collections/default.experimental
+0
-7
server-tools/instance-manager/mysql_connection.cc
server-tools/instance-manager/mysql_connection.cc
+12
-0
sql-common/client.c
sql-common/client.c
+3
-0
sql/client_settings.h
sql/client_settings.h
+8
-0
sql/slave.cc
sql/slave.cc
+25
-0
No files found.
mysql-test/collections/default.experimental
View file @
1c2556ff
...
@@ -2,12 +2,5 @@ funcs_1.charset_collation_1 # depends on compile-time decisions
...
@@ -2,12 +2,5 @@ funcs_1.charset_collation_1 # depends on compile-time decisions
binlog.binlog_tmp_table # Bug#45578: Test binlog_tmp_table fails ramdonly on PB2: Unknown table 't2'
binlog.binlog_tmp_table # Bug#45578: Test binlog_tmp_table fails ramdonly on PB2: Unknown table 't2'
main.ctype_gbk_binlog # Bug#46010: main.ctype_gbk_binlog fails sporadically : Table 't2' already exists
main.ctype_gbk_binlog # Bug#46010: main.ctype_gbk_binlog fails sporadically : Table 't2' already exists
rpl.rpl_row_create_table # Bug#45576: rpl_row_create_table fails on PB2
rpl.rpl_row_create_table # Bug#45576: rpl_row_create_table fails on PB2
rpl.rpl_extraColmaster_myisam # Bug#46013: rpl_extraColmaster_myisam fails on pb2
rpl.rpl_stm_reset_slave # Bug#46014: rpl_stm_reset_slave crashes the server sporadically in pb2
rpl.rpl_extraCol_myisam # Bug#40796
rpl.rpl_extraColmaster_innodb # Bug#40796
rpl.rpl_extraCol_innodb # Bug#40796
rpl_ndb.rpl_ndb_log # Bug#38998
rpl_ndb.rpl_ndb_log # Bug#38998
rpl.rpl_innodb_bug28430 # Bug#46029
rpl.rpl_innodb_bug28430 # Bug#46029
rpl.rpl_row_basic_3innodb # Bug#45243
rpl.rpl_truncate_3innodb # Bug#46030
server-tools/instance-manager/mysql_connection.cc
View file @
1c2556ff
...
@@ -70,6 +70,18 @@ void my_net_local_init(NET *net)
...
@@ -70,6 +70,18 @@ void my_net_local_init(NET *net)
C_MODE_END
C_MODE_END
/*
Unused stub hook required for linking the client API.
*/
C_MODE_START
void
slave_io_thread_detach_vio
()
{
}
C_MODE_END
/*
/*
Every resource, which we can fail to acquire, is allocated in init().
Every resource, which we can fail to acquire, is allocated in init().
...
...
sql-common/client.c
View file @
1c2556ff
...
@@ -933,6 +933,9 @@ void end_server(MYSQL *mysql)
...
@@ -933,6 +933,9 @@ void end_server(MYSQL *mysql)
{
{
init_sigpipe_variables
init_sigpipe_variables
DBUG_PRINT
(
"info"
,(
"Net: %s"
,
vio_description
(
mysql
->
net
.
vio
)));
DBUG_PRINT
(
"info"
,(
"Net: %s"
,
vio_description
(
mysql
->
net
.
vio
)));
#ifdef MYSQL_SERVER
slave_io_thread_detach_vio
();
#endif
set_sigpipe
(
mysql
);
set_sigpipe
(
mysql
);
vio_delete
(
mysql
->
net
.
vio
);
vio_delete
(
mysql
->
net
.
vio
);
reset_sigpipe
(
mysql
);
reset_sigpipe
(
mysql
);
...
...
sql/client_settings.h
View file @
1c2556ff
...
@@ -33,3 +33,11 @@
...
@@ -33,3 +33,11 @@
#define mysql_server_init(a,b,c) 0
#define mysql_server_init(a,b,c) 0
#ifdef HAVE_REPLICATION
C_MODE_START
void
slave_io_thread_detach_vio
();
C_MODE_END
#else
#define slave_io_thread_detach_vio()
#endif
sql/slave.cc
View file @
1c2556ff
...
@@ -3738,6 +3738,31 @@ void end_relay_log_info(Relay_log_info* rli)
...
@@ -3738,6 +3738,31 @@ void end_relay_log_info(Relay_log_info* rli)
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
/**
Hook to detach the active VIO before closing a connection handle.
The client API might close the connection (and associated data)
in case it encounters a unrecoverable (network) error. This hook
is called from the client code before the VIO handle is deleted
allows the thread to detach the active vio so it does not point
to freed memory.
Other calls to THD::clear_active_vio throughout this module are
redundant due to the hook but are left in place for illustrative
purposes.
*/
extern
"C"
void
slave_io_thread_detach_vio
()
{
#ifdef SIGNAL_WITH_VIO_CLOSE
THD
*
thd
=
current_thd
;
if
(
thd
->
slave_thread
)
thd
->
clear_active_vio
();
#endif
}
/*
/*
Try to connect until successful or slave killed
Try to connect until successful or slave killed
...
...
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