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
e72e3cd0
Commit
e72e3cd0
authored
Apr 12, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IB: redundant btr_pcur_move_to_prev_page() removed
parent
ecc6cd95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
71 deletions
+0
-71
storage/innobase/btr/btr0pcur.cc
storage/innobase/btr/btr0pcur.cc
+0
-60
storage/innobase/include/btr0pcur.h
storage/innobase/include/btr0pcur.h
+0
-11
No files found.
storage/innobase/btr/btr0pcur.cc
View file @
e72e3cd0
...
@@ -452,66 +452,6 @@ btr_pcur_move_to_next_page(
...
@@ -452,66 +452,6 @@ btr_pcur_move_to_next_page(
ut_d
(
page_check_dir
(
next_page
));
ut_d
(
page_check_dir
(
next_page
));
}
}
/*********************************************************//**
Moves the persistent cursor to the last record on the previous page. Releases the
latch on the current page, and bufferunfixes it. Note that there must not be
modifications on the current page, as then the x-latch can be released only in
mtr_commit. */
UNIV_INTERN
void
btr_pcur_move_to_prev_page
(
/*=======================*/
btr_pcur_t
*
cursor
,
/*!< in: persistent cursor; must be on the
last record of the current page */
mtr_t
*
mtr
)
/*!< in: mtr */
{
ulint
prev_page_no
;
page_t
*
page
;
buf_block_t
*
prev_block
;
page_t
*
prev_page
;
ulint
mode
;
ut_ad
(
cursor
->
pos_state
==
BTR_PCUR_IS_POSITIONED
);
ut_ad
(
cursor
->
latch_mode
!=
BTR_NO_LATCHES
);
ut_ad
(
btr_pcur_is_before_first_on_page
(
cursor
));
cursor
->
old_stored
=
false
;
page
=
btr_pcur_get_page
(
cursor
);
prev_page_no
=
btr_page_get_prev
(
page
,
mtr
);
ut_ad
(
prev_page_no
!=
FIL_NULL
);
mode
=
cursor
->
latch_mode
;
switch
(
mode
)
{
case
BTR_SEARCH_TREE
:
mode
=
BTR_SEARCH_LEAF
;
break
;
case
BTR_MODIFY_TREE
:
mode
=
BTR_MODIFY_LEAF
;
}
buf_block_t
*
block
=
btr_pcur_get_block
(
cursor
);
prev_block
=
btr_block_get
(
page_id_t
(
block
->
page
.
id
.
space
(),
prev_page_no
),
block
->
page
.
size
,
mode
,
btr_pcur_get_btr_cur
(
cursor
)
->
index
,
mtr
);
prev_page
=
buf_block_get_frame
(
prev_block
);
#ifdef UNIV_BTR_DEBUG
ut_a
(
page_is_comp
(
prev_page
)
==
page_is_comp
(
page
));
ut_a
(
btr_page_get_next
(
prev_page
,
mtr
)
==
btr_pcur_get_block
(
cursor
)
->
page
.
id
.
page_no
());
#endif
/* UNIV_BTR_DEBUG */
btr_leaf_page_release
(
btr_pcur_get_block
(
cursor
),
mode
,
mtr
);
page_cur_set_after_last
(
prev_block
,
btr_pcur_get_page_cur
(
cursor
));
ut_d
(
page_check_dir
(
prev_page
));
}
/*********************************************************//**
/*********************************************************//**
Moves the persistent cursor backward if it is on the first record of the page.
Moves the persistent cursor backward if it is on the first record of the page.
Commits mtr. Note that to prevent a possible deadlock, the operation
Commits mtr. Note that to prevent a possible deadlock, the operation
...
...
storage/innobase/include/btr0pcur.h
View file @
e72e3cd0
...
@@ -359,17 +359,6 @@ btr_pcur_move_to_next_page(
...
@@ -359,17 +359,6 @@ btr_pcur_move_to_next_page(
last record of the current page */
last record of the current page */
mtr_t
*
mtr
);
/*!< in: mtr */
mtr_t
*
mtr
);
/*!< in: mtr */
/*********************************************************//**
/*********************************************************//**
Moves the persistent cursor to the last record on the previous page.
Releases the latch on the current page, and bufferunfixes it.
Note that there must not be modifications on the current page,
as then the x-latch can be released only in mtr_commit. */
void
btr_pcur_move_to_prev_page
(
/*=======================*/
btr_pcur_t
*
cursor
,
/*!< in: persistent cursor; must be on the
last record of the current page */
mtr_t
*
mtr
);
/*!< in: mtr */
/*********************************************************//**
Moves the persistent cursor backward if it is on the first record
Moves the persistent cursor backward if it is on the first record
of the page. Releases the latch on the current page, and bufferunfixes
of the page. Releases the latch on the current page, and bufferunfixes
it. Note that to prevent a possible deadlock, the operation first
it. Note that to prevent a possible deadlock, the operation first
...
...
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