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
7e4c185c
Commit
7e4c185c
authored
Sep 13, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-14272 Mariadb crashes with signal 11 when using federatedx engine and galera
cherry-pick
e6ce97a5
parent
d1c2cd30
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
2 deletions
+41
-2
mysql-test/suite/federated/net_thd_crash-12951.result
mysql-test/suite/federated/net_thd_crash-12951.result
+11
-0
mysql-test/suite/federated/net_thd_crash-12951.test
mysql-test/suite/federated/net_thd_crash-12951.test
+23
-0
storage/federated/ha_federated.cc
storage/federated/ha_federated.cc
+7
-2
No files found.
mysql-test/suite/federated/net_thd_crash-12951.result
0 → 100644
View file @
7e4c185c
set global query_cache_size= 16*1024*1024;
set global query_cache_type= 1;
create table t1 (i int) engine=innodb;
create table t2 (i int) engine=federated
CONNECTION="mysql://root@localhost:MASTER_MYPORT/test/t1";
select * from t2;
i
drop table t2;
drop table t1;
set global query_cache_type= default;
set global query_cache_size= default;
mysql-test/suite/federated/net_thd_crash-12951.test
0 → 100644
View file @
7e4c185c
#
# MDEV-12951 Server crash [mysqld got exception 0xc0000005]
#
--
source
include
/
have_innodb
.
inc
set
global
query_cache_size
=
16
*
1024
*
1024
;
set
global
query_cache_type
=
1
;
create
table
t1
(
i
int
)
engine
=
innodb
;
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
eval
create
table
t2
(
i
int
)
engine
=
federated
CONNECTION
=
"mysql://root@localhost:
$MASTER_MYPORT
/test/t1"
;
select
*
from
t2
;
source
include
/
restart_mysqld
.
inc
;
drop
table
t2
;
drop
table
t1
;
set
global
query_cache_type
=
default
;
set
global
query_cache_size
=
default
;
storage/federated/ha_federated.cc
View file @
7e4c185c
...
...
@@ -2982,6 +2982,9 @@ int ha_federated::reset(void)
}
reset_dynamic
(
&
results
);
if
(
mysql
)
mysql
->
net
.
thd
=
NULL
;
return
0
;
}
...
...
@@ -3202,12 +3205,14 @@ int ha_federated::real_query(const char *query, size_t length)
int
rc
=
0
;
DBUG_ENTER
(
"ha_federated::real_query"
);
if
(
!
mysql
&&
(
rc
=
real_connect
())
)
if
(
!
query
||
!
length
)
goto
end
;
if
(
!
query
||
!
length
)
if
(
!
mysql
&&
(
rc
=
real_connect
())
)
goto
end
;
mysql
->
net
.
thd
=
table
->
in_use
;
rc
=
mysql_real_query
(
mysql
,
query
,
(
uint
)
length
);
end:
...
...
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