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
30204e96
Commit
30204e96
authored
Jun 04, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Add missing Doxygen comments for page0zip.
parent
413654b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
include/page0zip.h
include/page0zip.h
+8
-0
include/page0zip.ic
include/page0zip.ic
+5
-5
page/page0zip.c
page/page0zip.c
+5
-2
No files found.
include/page0zip.h
View file @
30204e96
...
@@ -444,9 +444,17 @@ page_zip_calc_checksum(
...
@@ -444,9 +444,17 @@ page_zip_calc_checksum(
__attribute__
((
nonnull
));
__attribute__
((
nonnull
));
#ifndef UNIV_HOTBACKUP
#ifndef UNIV_HOTBACKUP
/** Check if a pointer to an uncompressed page matches a compressed page.
@param ptr pointer to an uncompressed page frame
@param page_zip compressed page descriptor
@return TRUE if ptr and page_zip refer to the same block */
# define PAGE_ZIP_MATCH(ptr, page_zip) \
# define PAGE_ZIP_MATCH(ptr, page_zip) \
(buf_frame_get_page_zip(ptr) == (page_zip))
(buf_frame_get_page_zip(ptr) == (page_zip))
#else
/* !UNIV_HOTBACKUP */
#else
/* !UNIV_HOTBACKUP */
/** Check if a pointer to an uncompressed page matches a compressed page.
@param ptr pointer to an uncompressed page frame
@param page_zip compressed page descriptor
@return TRUE if ptr and page_zip refer to the same block */
# define PAGE_ZIP_MATCH(ptr, page_zip) \
# define PAGE_ZIP_MATCH(ptr, page_zip) \
(page_align(ptr) + UNIV_PAGE_SIZE == (page_zip)->data)
(page_align(ptr) + UNIV_PAGE_SIZE == (page_zip)->data)
#endif
/* !UNIV_HOTBACKUP */
#endif
/* !UNIV_HOTBACKUP */
...
...
include/page0zip.ic
View file @
30204e96
...
@@ -98,15 +98,15 @@ In summary, the compressed page looks like this:
...
@@ -98,15 +98,15 @@ In summary, the compressed page looks like this:
- deleted records (free list) in link order
- deleted records (free list) in link order
*/
*/
/* Start offset of the area that will be compressed */
/*
*
Start offset of the area that will be compressed */
#define PAGE_ZIP_START PAGE_NEW_SUPREMUM_END
#define PAGE_ZIP_START PAGE_NEW_SUPREMUM_END
/* Size of an compressed page directory entry */
/*
*
Size of an compressed page directory entry */
#define PAGE_ZIP_DIR_SLOT_SIZE 2
#define PAGE_ZIP_DIR_SLOT_SIZE 2
/* Mask of record offsets */
/*
*
Mask of record offsets */
#define PAGE_ZIP_DIR_SLOT_MASK 0x3fff
#define PAGE_ZIP_DIR_SLOT_MASK 0x3fff
/* 'owned' flag */
/*
*
'owned' flag */
#define PAGE_ZIP_DIR_SLOT_OWNED 0x4000
#define PAGE_ZIP_DIR_SLOT_OWNED 0x4000
/* 'deleted' flag */
/*
*
'deleted' flag */
#define PAGE_ZIP_DIR_SLOT_DEL 0x8000
#define PAGE_ZIP_DIR_SLOT_DEL 0x8000
/**********************************************************************//**
/**********************************************************************//**
...
...
page/page0zip.c
View file @
30204e96
...
@@ -3021,9 +3021,12 @@ page_zip_hexdump_func(
...
@@ -3021,9 +3021,12 @@ page_zip_hexdump_func(
}
}
}
}
/** Dump a block of memory on the standard error stream.
@param buf in: data
@param size in: length of the data, in bytes */
#define page_zip_hexdump(buf, size) page_zip_hexdump_func(#buf, buf, size)
#define page_zip_hexdump(buf, size) page_zip_hexdump_func(#buf, buf, size)
/* Flag: make page_zip_validate() compare page headers only */
/*
*
Flag: make page_zip_validate() compare page headers only */
UNIV_INTERN
ibool
page_zip_validate_header_only
=
FALSE
;
UNIV_INTERN
ibool
page_zip_validate_header_only
=
FALSE
;
/**********************************************************************//**
/**********************************************************************//**
...
@@ -3864,7 +3867,7 @@ page_zip_write_trx_id_and_roll_ptr(
...
@@ -3864,7 +3867,7 @@ page_zip_write_trx_id_and_roll_ptr(
}
}
#ifdef UNIV_ZIP_DEBUG
#ifdef UNIV_ZIP_DEBUG
/* Set this variable in a debugger to disable page_zip_clear_rec().
/*
*
Set this variable in a debugger to disable page_zip_clear_rec().
The only observable effect should be the compression ratio due to
The only observable effect should be the compression ratio due to
deleted records not being zeroed out. In rare cases, there can be
deleted records not being zeroed out. In rare cases, there can be
page_zip_validate() failures on the node_ptr, trx_id and roll_ptr
page_zip_validate() failures on the node_ptr, trx_id and roll_ptr
...
...
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