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
3fcec81d
Commit
3fcec81d
authored
Mar 25, 2010
by
mmakela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/innodb+: ibuf_merge_or_delete_for_page(): Simplify the code
and correct a comment.
parent
c6d7cd6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
20 deletions
+14
-20
ibuf/ibuf0ibuf.c
ibuf/ibuf0ibuf.c
+14
-20
No files found.
ibuf/ibuf0ibuf.c
View file @
3fcec81d
...
@@ -4128,7 +4128,7 @@ ibuf_merge_or_delete_for_page(
...
@@ -4128,7 +4128,7 @@ ibuf_merge_or_delete_for_page(
btr_pcur_t
pcur
;
btr_pcur_t
pcur
;
dtuple_t
*
search_tuple
;
dtuple_t
*
search_tuple
;
#ifdef UNIV_IBUF_DEBUG
#ifdef UNIV_IBUF_DEBUG
ulint
volume
;
ulint
volume
=
0
;
#endif
#endif
page_zip_des_t
*
page_zip
=
NULL
;
page_zip_des_t
*
page_zip
=
NULL
;
ibool
tablespace_being_deleted
=
FALSE
;
ibool
tablespace_being_deleted
=
FALSE
;
...
@@ -4284,9 +4284,6 @@ ibuf_merge_or_delete_for_page(
...
@@ -4284,9 +4284,6 @@ ibuf_merge_or_delete_for_page(
memset
(
mops
,
0
,
sizeof
(
mops
));
memset
(
mops
,
0
,
sizeof
(
mops
));
memset
(
dops
,
0
,
sizeof
(
dops
));
memset
(
dops
,
0
,
sizeof
(
dops
));
#ifdef UNIV_IBUF_DEBUG
volume
=
0
;
#endif
loop:
loop:
mtr_start
(
&
mtr
);
mtr_start
(
&
mtr
);
...
@@ -4339,7 +4336,7 @@ ibuf_merge_or_delete_for_page(
...
@@ -4339,7 +4336,7 @@ ibuf_merge_or_delete_for_page(
fputs
(
"
\n
InnoDB: from the insert buffer!
\n\n
"
,
stderr
);
fputs
(
"
\n
InnoDB: from the insert buffer!
\n\n
"
,
stderr
);
}
else
if
(
block
)
{
}
else
if
(
block
)
{
/* Now we have at pcur a record which should be
/* Now we have at pcur a record which should be
inserted to
the index page; NOTE that the call below
applied on
the index page; NOTE that the call below
copies pointers to fields in rec, and we must
copies pointers to fields in rec, and we must
keep the latch to the rec page until the
keep the latch to the rec page until the
insertion is finished! */
insertion is finished! */
...
@@ -4354,9 +4351,13 @@ ibuf_merge_or_delete_for_page(
...
@@ -4354,9 +4351,13 @@ ibuf_merge_or_delete_for_page(
entry
=
ibuf_build_entry_from_ibuf_rec
(
entry
=
ibuf_build_entry_from_ibuf_rec
(
rec
,
heap
,
&
dummy_index
);
rec
,
heap
,
&
dummy_index
);
#ifdef UNIV_IBUF_DEBUG
if
(
op
==
IBUF_OP_INSERT
)
{
ut_ad
(
page_validate
(
block
->
frame
,
dummy_index
));
switch
(
op
)
{
ibool
success
;
case
IBUF_OP_INSERT
:
#ifdef UNIV_IBUF_DEBUG
volume
+=
rec_get_converted_size
(
volume
+=
rec_get_converted_size
(
dummy_index
,
entry
,
0
);
dummy_index
,
entry
,
0
);
...
@@ -4364,10 +4365,7 @@ ibuf_merge_or_delete_for_page(
...
@@ -4364,10 +4365,7 @@ ibuf_merge_or_delete_for_page(
ut_a
(
volume
<=
4
*
UNIV_PAGE_SIZE
ut_a
(
volume
<=
4
*
UNIV_PAGE_SIZE
/
IBUF_PAGE_SIZE_PER_FREE_SPACE
);
/
IBUF_PAGE_SIZE_PER_FREE_SPACE
);
}
#endif
#endif
switch
(
op
)
{
case
IBUF_OP_INSERT
:
ibuf_insert_to_index_page
(
ibuf_insert_to_index_page
(
entry
,
block
,
dummy_index
,
&
mtr
);
entry
,
block
,
dummy_index
,
&
mtr
);
break
;
break
;
...
@@ -4393,17 +4391,13 @@ ibuf_merge_or_delete_for_page(
...
@@ -4393,17 +4391,13 @@ ibuf_merge_or_delete_for_page(
mtr_start
(
&
mtr
);
mtr_start
(
&
mtr
);
if
(
block
)
{
ibool
success
;
success
=
buf_page_get_known_nowait
(
success
=
buf_page_get_known_nowait
(
RW_X_LATCH
,
block
,
RW_X_LATCH
,
block
,
BUF_KEEP_OLD
,
BUF_KEEP_OLD
,
__FILE__
,
__LINE__
,
&
mtr
);
__FILE__
,
__LINE__
,
&
mtr
);
ut_a
(
success
);
ut_a
(
success
);
buf_block_dbg_add_level
(
buf_block_dbg_add_level
(
block
,
SYNC_TREE_NODE
);
block
,
SYNC_TREE_NODE
);
}
if
(
!
ibuf_restore_pos
(
space
,
page_no
,
if
(
!
ibuf_restore_pos
(
space
,
page_no
,
search_tuple
,
search_tuple
,
...
...
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