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
7ee331ab
Commit
7ee331ab
authored
Sep 15, 2009
by
Kristofer Pettersson
Browse files
Options
Browse Files
Download
Plain Diff
autocommit
parents
d98625d5
0c4c2d7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
sql/sql_plugin.cc
sql/sql_plugin.cc
+6
-11
No files found.
sql/sql_plugin.cc
View file @
7ee331ab
...
...
@@ -1520,7 +1520,7 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv,
void
plugin_shutdown
(
void
)
{
uint
i
,
count
=
plugin_array
.
elements
,
free_slots
=
0
;
uint
i
,
count
=
plugin_array
.
elements
;
struct
st_plugin_int
**
plugins
,
*
plugin
;
struct
st_plugin_dl
**
dl
;
DBUG_ENTER
(
"plugin_shutdown"
);
...
...
@@ -1541,18 +1541,13 @@ void plugin_shutdown(void)
while
(
reap_needed
&&
(
count
=
plugin_array
.
elements
))
{
reap_plugins
();
for
(
i
=
free_slots
=
0
;
i
<
count
;
i
++
)
for
(
i
=
0
;
i
<
count
;
i
++
)
{
plugin
=
*
dynamic_element
(
&
plugin_array
,
i
,
struct
st_plugin_int
**
);
switch
(
plugin
->
state
)
{
case
PLUGIN_IS_READY
:
if
(
plugin
->
state
==
PLUGIN_IS_READY
)
{
plugin
->
state
=
PLUGIN_IS_DELETED
;
reap_needed
=
true
;
break
;
case
PLUGIN_IS_FREED
:
case
PLUGIN_IS_UNINITIALIZED
:
free_slots
++
;
break
;
}
}
if
(
!
reap_needed
)
...
...
@@ -1586,8 +1581,8 @@ void plugin_shutdown(void)
if
(
!
(
plugins
[
i
]
->
state
&
(
PLUGIN_IS_UNINITIALIZED
|
PLUGIN_IS_FREED
|
PLUGIN_IS_DISABLED
)))
{
sql_print_
information
(
"Plugin '%s' will be forced to shutdown"
,
plugins
[
i
]
->
name
.
str
);
sql_print_
warning
(
"Plugin '%s' will be forced to shutdown"
,
plugins
[
i
]
->
name
.
str
);
/*
We are forcing deinit on plugins so we don't want to do a ref_count
check until we have processed all the plugins.
...
...
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