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
0b04505e
Commit
0b04505e
authored
Dec 09, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: row_purge_remove_sec_if_poss_low(): Allocate mtr_vers
from the stack, not with mem_alloc().
parent
d182215a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
row/row0purge.c
row/row0purge.c
+5
-9
No files found.
row/row0purge.c
View file @
0b04505e
...
...
@@ -217,7 +217,7 @@ row_purge_remove_sec_if_poss_low(
ibool
found
;
ulint
err
;
mtr_t
mtr
;
mtr_t
*
mtr_vers
;
mtr_t
mtr_vers
;
log_free_check
();
mtr_start
(
&
mtr
);
...
...
@@ -250,21 +250,17 @@ row_purge_remove_sec_if_poss_low(
which cannot be purged yet, requires its existence. If some requires,
we should do nothing. */
mtr_
vers
=
mem_alloc
(
sizeof
(
mtr_t
)
);
mtr_
start
(
&
mtr_vers
);
mtr_start
(
mtr_vers
);
success
=
row_purge_reposition_pcur
(
BTR_SEARCH_LEAF
,
node
,
mtr_vers
);
success
=
row_purge_reposition_pcur
(
BTR_SEARCH_LEAF
,
node
,
&
mtr_vers
);
if
(
success
)
{
old_has
=
row_vers_old_has_index_entry
(
TRUE
,
btr_pcur_get_rec
(
&
(
node
->
pcur
)),
mtr_vers
,
index
,
entry
);
&
mtr_vers
,
index
,
entry
);
}
btr_pcur_commit_specify_mtr
(
&
(
node
->
pcur
),
mtr_vers
);
mem_free
(
mtr_vers
);
btr_pcur_commit_specify_mtr
(
&
(
node
->
pcur
),
&
mtr_vers
);
if
(
!
success
||
!
old_has
)
{
/* Remove the index record */
...
...
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