MySQL 9.1.0
Source Code Documentation
zipdecompress.h File Reference

Compressed page interface. More...

#include "btr0types.h"
#include "fil0types.h"
#include "page0types.h"
#include "page/page.ic"
#include "page/zipdecompress.ic"

Go to the source code of this file.

Functions

bool page_zip_decompress_low (page_zip_des_t *page_zip, page_t *page, bool all)
 NOTE: The functions in this file should only use functions from other files in library. More...
 

Detailed Description

Compressed page interface.

Created June 2005 by Marko Makela

Function Documentation

◆ page_zip_decompress_low()

bool page_zip_decompress_low ( page_zip_des_t page_zip,
page_t page,
bool  all 
)

NOTE: The functions in this file should only use functions from other files in library.

The code in this file is used to make a library for external tools. Decompress a page. This function should tolerate errors on the compressed page. Instead of letting assertions fail, it will return false if an inconsistency is detected.

Returns
true on success, false on failure in: true=decompress the whole page; false=verify but do not copy some page header fields that should not change after page creation

NOTE: The functions in this file should only use functions from other files in library.

This function should tolerate errors on the compressed page. Instead of letting assertions fail, it will return false if an inconsistency is detected.

Returns
true on success, false on failure

< dense page directory, sorted by address

Parameters
page_zipin: data, ssize; out: m_start, m_end, m_nonempty, n_blobs
pageout: uncompressed page, may be trashed
allin: true=decompress the whole page; false=verify but do not copy some page header fields that should not change after page creation