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
a8f71eb3
Commit
a8f71eb3
authored
Jul 08, 2010
by
Jimmy Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug #54764 memory allocated in os_aio_array_create is not
freed at shutdown
rb://395
, approved by Sunny Bains
parent
3ff4ccd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
storage/innobase/os/os0file.c
storage/innobase/os/os0file.c
+10
-0
No files found.
storage/innobase/os/os0file.c
View file @
a8f71eb3
...
@@ -3233,6 +3233,9 @@ os_aio_array_create(
...
@@ -3233,6 +3233,9 @@ os_aio_array_create(
#endif
#endif
#if defined(LINUX_NATIVE_AIO)
#if defined(LINUX_NATIVE_AIO)
array
->
aio_ctx
=
NULL
;
array
->
aio_events
=
NULL
;
/* If we are not using native aio interface then skip this
/* If we are not using native aio interface then skip this
part of initialization. */
part of initialization. */
if
(
!
srv_use_native_aio
)
{
if
(
!
srv_use_native_aio
)
{
...
@@ -3313,6 +3316,13 @@ os_aio_array_free(
...
@@ -3313,6 +3316,13 @@ os_aio_array_free(
os_event_free
(
array
->
not_full
);
os_event_free
(
array
->
not_full
);
os_event_free
(
array
->
is_empty
);
os_event_free
(
array
->
is_empty
);
#if defined(LINUX_NATIVE_AIO)
if
(
srv_use_native_aio
)
{
ut_free
(
array
->
aio_events
);
ut_free
(
array
->
aio_ctx
);
}
#endif
/* LINUX_NATIVE_AIO */
ut_free
(
array
->
slots
);
ut_free
(
array
->
slots
);
ut_free
(
array
);
ut_free
(
array
);
}
}
...
...
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