Commit f74acc25 authored by marko's avatar marko

branches/zip: Non-functional change:

page_zip_copy_recs(): Rename from page_zip_copy().
Update the function comment.
parent 3e927610
...@@ -1184,8 +1184,8 @@ btr_root_raise_and_insert( ...@@ -1184,8 +1184,8 @@ btr_root_raise_and_insert(
ut_a(new_page_zip); ut_a(new_page_zip);
/* Copy the page byte for byte. */ /* Copy the page byte for byte. */
page_zip_copy(new_page_zip, new_page, page_zip_copy_recs(new_page_zip, new_page,
root_page_zip, root, index, mtr); root_page_zip, root, index, mtr);
} }
/* If this is a pessimistic insert which is actually done to /* If this is a pessimistic insert which is actually done to
...@@ -1949,8 +1949,8 @@ insert_right: ...@@ -1949,8 +1949,8 @@ insert_right:
as appropriate. Deleting will always succeed. */ as appropriate. Deleting will always succeed. */
ut_a(new_page_zip); ut_a(new_page_zip);
page_zip_copy(new_page_zip, new_page, page_zip_copy_recs(new_page_zip, new_page,
page_zip, page, cursor->index, mtr); page_zip, page, cursor->index, mtr);
page_delete_rec_list_end(move_limit - page + new_page, page_delete_rec_list_end(move_limit - page + new_page,
new_block, cursor->index, new_block, cursor->index,
ULINT_UNDEFINED, ULINT_UNDEFINED,
...@@ -1976,8 +1976,8 @@ insert_right: ...@@ -1976,8 +1976,8 @@ insert_right:
as appropriate. Deleting will always succeed. */ as appropriate. Deleting will always succeed. */
ut_a(new_page_zip); ut_a(new_page_zip);
page_zip_copy(new_page_zip, new_page, page_zip_copy_recs(new_page_zip, new_page,
page_zip, page, cursor->index, mtr); page_zip, page, cursor->index, mtr);
page_delete_rec_list_start(move_limit - page page_delete_rec_list_start(move_limit - page
+ new_page, new_block, + new_page, new_block,
cursor->index, mtr); cursor->index, mtr);
...@@ -2339,8 +2339,8 @@ btr_lift_page_up( ...@@ -2339,8 +2339,8 @@ btr_lift_page_up(
ut_a(page_zip); ut_a(page_zip);
/* Copy the page byte for byte. */ /* Copy the page byte for byte. */
page_zip_copy(father_page_zip, father_page, page_zip_copy_recs(father_page_zip, father_page,
page_zip, page, index, mtr); page_zip, page, index, mtr);
} }
lock_update_copy_and_discard(father_block, block); lock_update_copy_and_discard(father_block, block);
......
...@@ -373,11 +373,13 @@ page_zip_reorganize( ...@@ -373,11 +373,13 @@ page_zip_reorganize(
mtr_t* mtr) /* in: mini-transaction */ mtr_t* mtr) /* in: mini-transaction */
__attribute__((nonnull)); __attribute__((nonnull));
/************************************************************************** /**************************************************************************
Copy a page byte for byte, except for the file page header and trailer. */ Copy the records of a page byte for byte. Do not copy the page header
or trailer, except those B-tree header fields that are directly
related to the storage of records. */
UNIV_INTERN UNIV_INTERN
void void
page_zip_copy( page_zip_copy_recs(
/*==========*/ /*===============*/
page_zip_des_t* page_zip, /* out: copy of src_zip page_zip_des_t* page_zip, /* out: copy of src_zip
(n_blobs, m_start, m_end, (n_blobs, m_start, m_end,
m_nonempty, data[0..size-1]) */ m_nonempty, data[0..size-1]) */
......
...@@ -4286,11 +4286,13 @@ page_zip_reorganize( ...@@ -4286,11 +4286,13 @@ page_zip_reorganize(
} }
/************************************************************************** /**************************************************************************
Copy a page byte for byte, except for the file page header and trailer. */ Copy the records of a page byte for byte. Do not copy the page header
or trailer, except those B-tree header fields that are directly
related to the storage of records. */
UNIV_INTERN UNIV_INTERN
void void
page_zip_copy( page_zip_copy_recs(
/*==========*/ /*===============*/
page_zip_des_t* page_zip, /* out: copy of src_zip page_zip_des_t* page_zip, /* out: copy of src_zip
(n_blobs, m_start, m_end, (n_blobs, m_start, m_end,
m_nonempty, data[0..size-1]) */ m_nonempty, data[0..size-1]) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment