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
412893d6
Commit
412893d6
authored
Mar 23, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Define and use PAGE_ZIP_MATCH.
In UNIV_HOTBACKUP builds, assume fixed allocation.
parent
ac8e5d59
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
include/page0zip.h
include/page0zip.h
+8
-0
include/page0zip.ic
include/page0zip.ic
+1
-1
page/page0zip.c
page/page0zip.c
+4
-4
No files found.
include/page0zip.h
View file @
412893d6
...
...
@@ -443,6 +443,14 @@ page_zip_calc_checksum(
ulint
size
)
/* in: size of compressed page */
__attribute__
((
nonnull
));
#ifndef UNIV_HOTBACKUP
# define PAGE_ZIP_MATCH(ptr, page_zip) \
(buf_frame_get_page_zip(ptr) == (page_zip))
#else
/* !UNIV_HOTBACKUP */
# define PAGE_ZIP_MATCH(ptr, page_zip) \
(page_align(ptr) + UNIV_PAGE_SIZE == (page_zip)->data)
#endif
/* !UNIV_HOTBACKUP */
#ifdef UNIV_MATERIALIZE
# undef UNIV_INLINE
# define UNIV_INLINE UNIV_INLINE_ORIGINAL
...
...
include/page0zip.ic
View file @
412893d6
...
...
@@ -374,7 +374,7 @@ page_zip_write_header(
{
ulint pos;
ut_ad(
buf_frame_get_page_zip(str) == page_zip
);
ut_ad(
PAGE_ZIP_MATCH(str, page_zip)
);
ut_ad(page_zip_simple_validate(page_zip));
UNIV_MEM_ASSERT_RW(page_zip->data, page_zip_get_size(page_zip));
...
...
page/page0zip.c
View file @
412893d6
...
...
@@ -3318,7 +3318,7 @@ page_zip_write_rec(
ulint
heap_no
;
byte
*
slot
;
ut_ad
(
buf_frame_get_page_zip
(
rec
)
==
page_zip
);
ut_ad
(
PAGE_ZIP_MATCH
(
rec
,
page_zip
)
);
ut_ad
(
page_zip_simple_validate
(
page_zip
));
ut_ad
(
page_zip_get_size
(
page_zip
)
>
PAGE_DATA
+
page_zip_dir_size
(
page_zip
));
...
...
@@ -3568,7 +3568,7 @@ page_zip_write_blob_ptr(
ulint
blob_no
;
ulint
len
;
ut_ad
(
buf_frame_get_page_zip
(
rec
)
==
page_zip
);
ut_ad
(
PAGE_ZIP_MATCH
(
rec
,
page_zip
)
);
ut_ad
(
page_simple_validate_new
((
page_t
*
)
page
));
ut_ad
(
page_zip_simple_validate
(
page_zip
));
ut_ad
(
page_zip_get_size
(
page_zip
)
...
...
@@ -3721,7 +3721,7 @@ page_zip_write_node_ptr(
byte
*
storage
;
page_t
*
page
=
page_align
(
rec
);
ut_ad
(
buf_frame_get_page_zip
(
rec
)
==
page_zip
);
ut_ad
(
PAGE_ZIP_MATCH
(
rec
,
page_zip
)
);
ut_ad
(
page_simple_validate_new
(
page
));
ut_ad
(
page_zip_simple_validate
(
page_zip
));
ut_ad
(
page_zip_get_size
(
page_zip
)
...
...
@@ -3788,7 +3788,7 @@ page_zip_write_trx_id_and_roll_ptr(
page_t
*
page
=
page_align
(
rec
);
ulint
len
;
ut_ad
(
buf_frame_get_page_zip
(
rec
)
==
page_zip
);
ut_ad
(
PAGE_ZIP_MATCH
(
rec
,
page_zip
)
);
ut_ad
(
page_simple_validate_new
(
page
));
ut_ad
(
page_zip_simple_validate
(
page_zip
));
ut_ad
(
page_zip_get_size
(
page_zip
)
...
...
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