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
a7af1d39
Commit
a7af1d39
authored
Mar 10, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace buf_block_align(btr_cur_get_page()) with
buf_block_align(btr_cur_get_rec()).
parent
5317b07a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
btr/btr0cur.c
btr/btr0cur.c
+3
-5
include/btr0cur.ic
include/btr0cur.ic
+2
-4
No files found.
btr/btr0cur.c
View file @
a7af1d39
...
...
@@ -2371,8 +2371,7 @@ btr_cur_compress(
ut_ad
(
mtr_memo_contains
(
mtr
,
dict_tree_get_lock
(
btr_cur_get_tree
(
cursor
)),
MTR_MEMO_X_LOCK
));
ut_ad
(
mtr_memo_contains
(
mtr
,
buf_block_align
(
btr_cur_get_page
(
cursor
)),
ut_ad
(
mtr_memo_contains
(
mtr
,
buf_block_align
(
btr_cur_get_rec
(
cursor
)),
MTR_MEMO_PAGE_X_FIX
));
ut_ad
(
btr_page_get_level
(
btr_cur_get_page
(
cursor
),
mtr
)
==
0
);
...
...
@@ -2398,8 +2397,7 @@ btr_cur_compress_if_useful(
ut_ad
(
mtr_memo_contains
(
mtr
,
dict_tree_get_lock
(
btr_cur_get_tree
(
cursor
)),
MTR_MEMO_X_LOCK
));
ut_ad
(
mtr_memo_contains
(
mtr
,
buf_block_align
(
btr_cur_get_page
(
cursor
)),
ut_ad
(
mtr_memo_contains
(
mtr
,
buf_block_align
(
btr_cur_get_rec
(
cursor
)),
MTR_MEMO_PAGE_X_FIX
));
if
(
btr_cur_compress_recommendation
(
cursor
,
mtr
))
{
...
...
@@ -2437,7 +2435,7 @@ btr_cur_optimistic_delete(
ibool
no_compress_needed
;
*
offsets_
=
(
sizeof
offsets_
)
/
sizeof
*
offsets_
;
ut_ad
(
mtr_memo_contains
(
mtr
,
buf_block_align
(
btr_cur_get_
page
(
cursor
)),
ut_ad
(
mtr_memo_contains
(
mtr
,
buf_block_align
(
btr_cur_get_
rec
(
cursor
)),
MTR_MEMO_PAGE_X_FIX
));
/* This is intended only for leaf page deletions */
...
...
include/btr0cur.ic
View file @
a7af1d39
...
...
@@ -98,8 +98,7 @@ btr_cur_compress_recommendation(
{
page_t* page;
ut_ad(mtr_memo_contains(mtr, buf_block_align(
btr_cur_get_page(cursor)),
ut_ad(mtr_memo_contains(mtr, buf_block_align(btr_cur_get_rec(cursor)),
MTR_MEMO_PAGE_X_FIX));
page = btr_cur_get_page(cursor);
...
...
@@ -142,8 +141,7 @@ btr_cur_can_delete_without_compress(
{
page_t* page;
ut_ad(mtr_memo_contains(mtr, buf_block_align(
btr_cur_get_page(cursor)),
ut_ad(mtr_memo_contains(mtr, buf_block_align(btr_cur_get_rec(cursor)),
MTR_MEMO_PAGE_X_FIX));
page = btr_cur_get_page(cursor);
...
...
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