MySQL 8.0.32
Source Code Documentation
file.cc File Reference

The interface to the operating system file i/o primitives. More...

#include "buf0checksum.h"
#include "db0err.h"
#include "fil0fil.h"
#include "mach0data.h"
#include "os0file.h"
#include "univ.i"
#include <lz4.h>
#include <zlib.h>

Functions

dberr_t os_file_decompress_page (bool dblwr_read, byte *src, byte *dst, ulint dst_len)
 Decompress the page data contents. More...
 

Detailed Description

The interface to the operating system file i/o primitives.

Created 10/21/1995 Heikki Tuuri

Function Documentation

◆ os_file_decompress_page()

dberr_t os_file_decompress_page ( bool  dblwr_read,
byte src,
byte dst,
ulint  dst_len 
)

Decompress the page data contents.

Page type must be FIL_PAGE_COMPRESSED, if not then the source contents are left unchanged and DB_SUCCESS is returned.

Parameters
[in]dblwr_readtrue of double write recovery in progress
[in,out]srcData read from disk, decompressed data will be copied to this page
[in,out]dstScratch area to use for decompression or nullptr.
[in]dst_lenIf dst is valid, then size of the scratch area in bytes
Returns
DB_SUCCESS or error code