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
48b403cd
Commit
48b403cd
authored
Jul 06, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #69682 - mysqld crashes after uninstall of plugin with "first" status var
parent
34ebf981
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
mysql-test/r/fulltext_plugin.result
mysql-test/r/fulltext_plugin.result
+2
-0
mysql-test/t/fulltext_plugin.test
mysql-test/t/fulltext_plugin.test
+6
-0
plugin/fulltext/plugin_example.c
plugin/fulltext/plugin_example.c
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+2
-3
No files found.
mysql-test/r/fulltext_plugin.result
View file @
48b403cd
...
...
@@ -3,3 +3,5 @@ CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
ALTER TABLE t1 ADD FULLTEXT(b) WITH PARSER simple_parser;
DROP TABLE t1;
UNINSTALL PLUGIN simple_parser;
show status like 'a%status';
Variable_name Value
mysql-test/t/fulltext_plugin.test
View file @
48b403cd
...
...
@@ -9,3 +9,9 @@ CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
ALTER
TABLE
t1
ADD
FULLTEXT
(
b
)
WITH
PARSER
simple_parser
;
DROP
TABLE
t1
;
UNINSTALL
PLUGIN
simple_parser
;
#
# Bug #69682 - mysqld crashes after uninstall of plugin with "first" status var
#
show
status
like
'a%status'
;
plugin/fulltext/plugin_example.c
View file @
48b403cd
...
...
@@ -210,7 +210,7 @@ static struct st_mysql_ftparser simple_parser_descriptor=
static
struct
st_mysql_show_var
simple_status
[]
=
{
{
"
static"
,
(
char
*
)
"just a static text"
,
SHOW_CHAR
},
{
"
A_static"
,
(
char
*
)
"just a static text"
,
SHOW_CHAR
},
{
"called"
,
(
char
*
)
&
number_of_calls
,
SHOW_LONG
},
{
0
,
0
,
0
}
};
...
...
sql/sql_show.cc
View file @
48b403cd
...
...
@@ -2199,12 +2199,11 @@ void remove_status_vars(SHOW_VAR *list)
{
pthread_mutex_lock
(
&
LOCK_status
);
SHOW_VAR
*
all
=
dynamic_element
(
&
all_status_vars
,
0
,
SHOW_VAR
*
);
int
a
=
0
,
b
=
all_status_vars
.
elements
,
c
=
(
a
+
b
)
/
2
;
for
(;
list
->
name
;
list
++
)
{
int
res
=
0
;
for
(
a
=
0
,
b
=
all_status_vars
.
elements
;
b
-
a
>
1
;
c
=
(
a
+
b
)
/
2
)
int
res
=
0
,
a
=
0
,
b
=
all_status_vars
.
elements
,
c
=
(
a
+
b
)
/
2
;
for
(
;
b
-
a
>
0
;
c
=
(
a
+
b
)
/
2
)
{
res
=
show_var_cmp
(
list
,
all
+
c
);
if
(
res
<
0
)
...
...
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