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
f644f6af
Commit
f644f6af
authored
Oct 15, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Introduce UNIV_ZIP_COPY for invoking page_zip_copy_recs()
more often in B-tree operations.
parent
05c33d6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
btr/btr0btr.c
btr/btr0btr.c
+20
-4
include/univ.i
include/univ.i
+2
-0
No files found.
btr/btr0btr.c
View file @
f644f6af
...
...
@@ -1177,7 +1177,11 @@ btr_root_raise_and_insert(
/* Copy the records from root to the new page one by one. */
if
(
UNIV_UNLIKELY
if
(
0
#ifdef UNIV_ZIP_COPY
||
new_page_zip
#endif
/* UNIV_ZIP_COPY */
||
UNIV_UNLIKELY
(
!
page_copy_rec_list_end
(
new_block
,
root_block
,
page_get_infimum_rec
(
root
),
index
,
mtr
)))
{
...
...
@@ -1947,7 +1951,11 @@ btr_page_split_and_insert(
if
(
direction
==
FSP_DOWN
)
{
/* fputs("Split left\n", stderr); */
if
(
UNIV_UNLIKELY
if
(
0
#ifdef UNIV_ZIP_COPY
||
page_zip
#endif
/* UNIV_ZIP_COPY */
||
UNIV_UNLIKELY
(
!
page_move_rec_list_start
(
new_block
,
block
,
move_limit
,
cursor
->
index
,
mtr
)))
{
/* For some reason, compressing new_page failed,
...
...
@@ -1986,7 +1994,11 @@ btr_page_split_and_insert(
}
else
{
/* fputs("Split right\n", stderr); */
if
(
UNIV_UNLIKELY
if
(
0
#ifdef UNIV_ZIP_COPY
||
page_zip
#endif
/* UNIV_ZIP_COPY */
||
UNIV_UNLIKELY
(
!
page_move_rec_list_end
(
new_block
,
block
,
move_limit
,
cursor
->
index
,
mtr
)))
{
/* For some reason, compressing new_page failed,
...
...
@@ -2359,7 +2371,11 @@ btr_lift_page_up(
btr_page_set_level
(
father_page
,
father_page_zip
,
page_level
,
mtr
);
/* Copy the records to the father page one by one. */
if
(
UNIV_UNLIKELY
if
(
0
#ifdef UNIV_ZIP_COPY
||
father_page_zip
#endif
/* UNIV_ZIP_COPY */
||
UNIV_UNLIKELY
(
!
page_copy_rec_list_end
(
father_block
,
block
,
page_get_infimum_rec
(
page
),
index
,
mtr
)))
{
...
...
include/univ.i
View file @
f644f6af
...
...
@@ -158,6 +158,8 @@ operations (very slow); also UNIV_DEBUG must be defined */
printing B-trees */
#
define
UNIV_ZIP_DEBUG
/* extensive consistency checks
for compressed pages */
#
define
UNIV_ZIP_COPY
/* call page_zip_copy_recs()
more often */
#
endif
#
define
UNIV_BTR_DEBUG
/* check B-tree links */
...
...
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