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
687496f7
Commit
687496f7
authored
Aug 30, 2012
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1 to mysql-5.5.
parents
d743cb59
0303bc42
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
2 deletions
+35
-2
storage/innobase/btr/btr0btr.c
storage/innobase/btr/btr0btr.c
+26
-0
storage/innobase/page/page0cur.c
storage/innobase/page/page0cur.c
+1
-0
storage/innobase/page/page0page.c
storage/innobase/page/page0page.c
+8
-2
No files found.
storage/innobase/btr/btr0btr.c
View file @
687496f7
...
...
@@ -3263,6 +3263,7 @@ btr_compress(
if
(
adjust
)
{
nth_rec
=
page_rec_get_n_recs_before
(
btr_cur_get_rec
(
cursor
));
ut_ad
(
nth_rec
>
0
);
}
/* Decide the page to which we try to merge and which will inherit
...
...
@@ -3498,6 +3499,7 @@ btr_compress(
mem_heap_free
(
heap
);
if
(
adjust
)
{
ut_ad
(
nth_rec
>
0
);
btr_cur_position
(
index
,
page_rec_get_nth
(
merge_block
->
frame
,
nth_rec
),
...
...
@@ -4011,8 +4013,22 @@ btr_index_page_validate(
{
page_cur_t
cur
;
ibool
ret
=
TRUE
;
#ifndef DBUG_OFF
ulint
nth
=
1
;
#endif
/* !DBUG_OFF */
page_cur_set_before_first
(
block
,
&
cur
);
/* Directory slot 0 should only contain the infimum record. */
DBUG_EXECUTE_IF
(
"check_table_rec_next"
,
ut_a
(
page_rec_get_nth_const
(
page_cur_get_page
(
&
cur
),
0
)
==
cur
.
rec
);
ut_a
(
page_dir_slot_get_n_owned
(
page_dir_get_nth_slot
(
page_cur_get_page
(
&
cur
),
0
))
==
1
););
page_cur_move_to_next
(
&
cur
);
for
(;;)
{
...
...
@@ -4026,6 +4042,16 @@ btr_index_page_validate(
return
(
FALSE
);
}
/* Verify that page_rec_get_nth_const() is correctly
retrieving each record. */
DBUG_EXECUTE_IF
(
"check_table_rec_next"
,
ut_a
(
cur
.
rec
==
page_rec_get_nth_const
(
page_cur_get_page
(
&
cur
),
page_rec_get_n_recs_before
(
cur
.
rec
)));
ut_a
(
nth
++
==
page_rec_get_n_recs_before
(
cur
.
rec
)););
page_cur_move_to_next
(
&
cur
);
}
...
...
storage/innobase/page/page0cur.c
View file @
687496f7
...
...
@@ -1902,6 +1902,7 @@ page_cur_delete_rec(
/* Save to local variables some data associated with current_rec */
cur_slot_no
=
page_dir_find_owner_slot
(
current_rec
);
ut_ad
(
cur_slot_no
>
0
);
cur_dir_slot
=
page_dir_get_nth_slot
(
page
,
cur_slot_no
);
cur_n_owned
=
page_dir_slot_get_n_owned
(
cur_dir_slot
);
...
...
storage/innobase/page/page0page.c
View file @
687496f7
...
...
@@ -796,8 +796,8 @@ page_copy_rec_list_start(
/* Before copying, "ret" was the predecessor
of the predefined supremum record. If it was
the predefined infimum record, then it would
still be the infimum
. Thus, the assertion
ut_a(ret_pos > 0) would fail here
. */
still be the infimum
, and we would have
ret_pos == 0
. */
if
(
UNIV_UNLIKELY
(
!
page_zip_reorganize
(
new_block
,
index
,
mtr
)))
{
...
...
@@ -1052,6 +1052,7 @@ page_delete_rec_list_end(
n_owned
=
rec_get_n_owned_new
(
rec2
)
-
count
;
slot_index
=
page_dir_find_owner_slot
(
rec2
);
ut_ad
(
slot_index
>
0
);
slot
=
page_dir_get_nth_slot
(
page
,
slot_index
);
}
else
{
rec_t
*
rec2
=
rec
;
...
...
@@ -1067,6 +1068,7 @@ page_delete_rec_list_end(
n_owned
=
rec_get_n_owned_old
(
rec2
)
-
count
;
slot_index
=
page_dir_find_owner_slot
(
rec2
);
ut_ad
(
slot_index
>
0
);
slot
=
page_dir_get_nth_slot
(
page
,
slot_index
);
}
...
...
@@ -1471,6 +1473,10 @@ page_rec_get_nth_const(
ulint
n_owned
;
const
rec_t
*
rec
;
if
(
nth
==
0
)
{
return
(
page_get_infimum_rec
(
page
));
}
ut_ad
(
nth
<
UNIV_PAGE_SIZE
/
(
REC_N_NEW_EXTRA_BYTES
+
1
));
for
(
i
=
0
;;
i
++
)
{
...
...
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