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
8848914b
Commit
8848914b
authored
Mar 10, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Replace buf_block_align(btr_cur_get_page()) with
buf_block_align(btr_cur_get_rec()).
parent
9d135b30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
btr/btr0cur.c
btr/btr0cur.c
+6
-10
include/btr0cur.ic
include/btr0cur.ic
+2
-4
No files found.
btr/btr0cur.c
View file @
8848914b
...
...
@@ -2531,8 +2531,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
))
{
...
...
@@ -2568,7 +2567,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 */
...
...
@@ -2586,20 +2585,17 @@ btr_cur_optimistic_delete(
if
(
no_compress_needed
)
{
page_zip_des_t
*
page_zip
;
lock_update_delete
(
rec
);
btr_search_update_hash_on_delete
(
cursor
);
max_ins_size
=
page_get_max_insert_size_after_reorganize
(
page
,
1
);
page_zip
=
buf_block_get_page_zip
(
buf_block_align
(
btr_cur_get_page
(
cursor
)));
page_cur_delete_rec
(
btr_cur_get_page_cur
(
cursor
),
cursor
->
index
,
offsets
,
page_zip
,
mtr
);
cursor
->
index
,
offsets
,
buf_block_get_page_zip
(
buf_block_align
(
btr_cur_get_rec
(
cursor
))),
mtr
);
ibuf_update_free_bits_low
(
cursor
->
index
,
page
,
max_ins_size
,
mtr
);
...
...
include/btr0cur.ic
View file @
8848914b
...
...
@@ -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