mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
InnoDB: After review fixes
innobase/include/page0page.ic: page_rec_set_next(): s/ut_a()/ut_ad()/ page_rec_get_prev(): Eliminate a buf_frame_align() call innobase/lock/lock0lock.c: lock_rec_get_first(): Determine heap_no before the loop
This commit is contained in:
parent
76a11195b8
commit
ca25e99b16
2 changed files with 6 additions and 12 deletions
|
|
@ -597,7 +597,7 @@ page_rec_set_next(
|
|||
|
||||
if (next) {
|
||||
ut_ad(!page_rec_is_infimum(next));
|
||||
ut_a(page == ut_align_down(next, UNIV_PAGE_SIZE));
|
||||
ut_ad(page == ut_align_down(next, UNIV_PAGE_SIZE));
|
||||
offs = (ulint) (next - page);
|
||||
} else {
|
||||
offs = 0;
|
||||
|
|
@ -624,7 +624,7 @@ page_rec_get_prev(
|
|||
|
||||
ut_ad(page_rec_check(rec));
|
||||
|
||||
page = buf_frame_align(rec);
|
||||
page = ut_align_down(rec, UNIV_PAGE_SIZE);
|
||||
|
||||
ut_ad(!page_rec_is_infimum(rec));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue