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
54b25f06
Commit
54b25f06
authored
Jun 20, 2012
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed MDEV-348: 5.5 valgrind warinings on maria tests
parent
29c3a273
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
storage/maria/ma_close.c
storage/maria/ma_close.c
+20
-14
No files found.
storage/maria/ma_close.c
View file @
54b25f06
...
...
@@ -193,14 +193,17 @@ int maria_close(register MARIA_HA *info)
else
share_can_be_freed
=
TRUE
;
if
(
share
->
state_history
&&
share
->
state_history
->
trid
)
if
(
share
->
state_history
)
{
if
(
share
->
state_history
->
trid
)
/* If not visible for all */
{
MARIA_STATE_HISTORY_CLOSED
*
history
;
DBUG_PRINT
(
"info"
,
(
"Storing state history"
));
/*
Here we ignore the unlikely case that we don't have memory to
store the state. In the worst case what happens is that any transaction
that tries to access this table will get a wrong status information.
Here we ignore the unlikely case that we don't have memory
to store the state. In the worst case what happens is that
any transaction that tries to access this table will get a
wrong status information.
*/
if
((
history
=
(
MARIA_STATE_HISTORY_CLOSED
*
)
my_malloc
(
sizeof
(
*
history
),
MYF
(
MY_WME
))))
...
...
@@ -210,6 +213,9 @@ int maria_close(register MARIA_HA *info)
if
(
my_hash_insert
(
&
maria_stored_state
,
(
uchar
*
)
history
))
my_free
(
history
);
}
}
else
my_free
(
share
->
state_history
);
/* Marker for concurrent checkpoint */
share
->
state_history
=
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