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
000c79b7
Commit
000c79b7
authored
Sep 24, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/innodb+: ibuf_delete(): Correctly set the free bits in the
insert buffer bitmap.
parent
16938c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
ibuf/ibuf0ibuf.c
ibuf/ibuf0ibuf.c
+19
-8
No files found.
ibuf/ibuf0ibuf.c
View file @
000c79b7
...
@@ -3430,8 +3430,9 @@ ibuf_delete(
...
@@ -3430,8 +3430,9 @@ ibuf_delete(
block
,
index
,
entry
,
PAGE_CUR_LE
,
&
page_cur
);
block
,
index
,
entry
,
PAGE_CUR_LE
,
&
page_cur
);
if
(
low_match
==
dtuple_get_n_fields
(
entry
))
{
if
(
low_match
==
dtuple_get_n_fields
(
entry
))
{
page_t
*
page
;
page_zip_des_t
*
page_zip
=
buf_block_get_page_zip
(
block
);
rec_t
*
rec
=
page_cur_get_rec
(
&
page_cur
);
page_t
*
page
=
buf_block_get_frame
(
block
);
rec_t
*
rec
=
page_cur_get_rec
(
&
page_cur
);
/* TODO: the below should probably be a separate function,
/* TODO: the below should probably be a separate function,
it's a bastardized version of btr_cur_optimistic_delete. */
it's a bastardized version of btr_cur_optimistic_delete. */
...
@@ -3448,14 +3449,24 @@ ibuf_delete(
...
@@ -3448,14 +3449,24 @@ ibuf_delete(
lock_update_delete
(
block
,
rec
);
lock_update_delete
(
block
,
rec
);
page
=
buf_block_get_frame
(
block
);
if
(
!
page_zip
)
{
max_ins_size
max_ins_size
=
page_get_max_insert_size_after_reorganize
(
=
page_get_max_insert_size_after_reorganize
(
page
,
1
);
page
,
1
);
}
#ifdef UNIV_ZIP_DEBUG
ut_a
(
!
page_zip
||
page_zip_validate
(
page_zip
,
page
));
#endif
/* UNIV_ZIP_DEBUG */
page_cur_delete_rec
(
&
page_cur
,
index
,
offsets
,
mtr
);
page_cur_delete_rec
(
&
page_cur
,
index
,
offsets
,
mtr
);
#ifdef UNIV_ZIP_DEBUG
ut_a
(
!
page_zip
||
page_zip_validate
(
page_zip
,
page
));
#endif
/* UNIV_ZIP_DEBUG */
ibuf_update_free_bits_low
(
block
,
max_ins_size
,
mtr
);
if
(
page_zip
)
{
ibuf_update_free_bits_zip
(
block
,
mtr
);
}
else
{
ibuf_update_free_bits_low
(
block
,
max_ins_size
,
mtr
);
}
if
(
UNIV_LIKELY_NULL
(
heap
))
{
if
(
UNIV_LIKELY_NULL
(
heap
))
{
mem_heap_free
(
heap
);
mem_heap_free
(
heap
);
...
...
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