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
79e5dc96
Commit
79e5dc96
authored
Dec 16, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/innodb+: ibuf_insert_low(): Use common error handling
when holding a latch on the insert buffer bitmap page.
parent
364910b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
ibuf/ibuf0ibuf.c
ibuf/ibuf0ibuf.c
+5
-6
No files found.
ibuf/ibuf0ibuf.c
View file @
79e5dc96
...
...
@@ -3304,11 +3304,8 @@ ibuf_insert_low(
if
(
buf_page_peek
(
space
,
page_no
)
||
lock_rec_expl_exist_on_page
(
space
,
page_no
))
{
err
=
DB_STRONG_FAIL
;
mtr_commit
(
&
bitmap_mtr
);
goto
function_exit
;
goto
bitmap_fail
;
}
if
(
op
==
IBUF_OP_INSERT
)
{
...
...
@@ -3318,11 +3315,10 @@ ibuf_insert_low(
if
(
buffered
+
entry_size
+
page_dir_calc_reserved_space
(
1
)
>
ibuf_index_page_calc_free_from_bits
(
zip_size
,
bits
))
{
/* Release the bitmap page latch early. */
mtr_commit
(
&
bitmap_mtr
);
/* It may not fit */
err
=
DB_STRONG_FAIL
;
do_merge
=
TRUE
;
ibuf_get_merge_page_nos
(
...
...
@@ -3330,6 +3326,8 @@ ibuf_insert_low(
space_ids
,
space_versions
,
page_nos
,
&
n_stored
);
err
=
DB_STRONG_FAIL
;
goto
function_exit
;
}
}
...
...
@@ -3339,6 +3337,7 @@ ibuf_insert_low(
some cases. */
if
(
!
ibuf_set_entry_counter
(
ibuf_entry
,
space
,
page_no
,
&
pcur
,
mode
==
BTR_MODIFY_PREV
,
&
mtr
))
{
bitmap_fail:
err
=
DB_STRONG_FAIL
;
mtr_commit
(
&
bitmap_mtr
);
...
...
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