MySQL 9.0.0
Source Code Documentation
Clone_File_Meta Struct Reference

Clone file information. More...

#include <clone0desc.h>

Public Member Functions

void set_deleted_chunk (uint32_t chunk)
 Set file as deleted chunk. More...
 
bool is_deleted () const
 
bool is_renamed () const
 
bool can_encrypt () const
 
void reset_ddl ()
 Reset DDL state of file metadata. More...
 
void init ()
 

Public Attributes

uint64_t m_file_size
 File size in bytes. More...
 
uint64_t m_alloc_size
 File allocation size on disk for sparse files. More...
 
uint32_t m_fsp_flags
 Tablespace FSP flags. More...
 
Compression::Type m_compress_type
 File compression type. More...
 
bool m_punch_hole
 If transparent compression is needed. More...
 
bool m_deleted
 
bool m_renamed
 
bool m_transfer_encryption_key
 
size_t m_fsblk_size
 File system block size. More...
 
space_id_t m_space_id
 Tablespace ID for the file. More...
 
uint m_file_index
 File index in clone data file vector. More...
 
uint m_begin_chunk
 Chunk number for the first chunk in file. More...
 
uint m_end_chunk
 Chunk number for the last chunk in file. More...
 
size_t m_file_name_len
 File name length in bytes. More...
 
size_t m_file_name_alloc_len
 Allocation length of name buffer. More...
 
const char * m_file_name
 File name. More...
 
Encryption_metadata m_encryption_metadata
 Encryption metadata. More...
 

Detailed Description

Clone file information.

Member Function Documentation

◆ can_encrypt()

bool Clone_File_Meta::can_encrypt ( ) const
inline
Returns
true, iff file is encrypted.

◆ init()

void Clone_File_Meta::init ( void  )

◆ is_deleted()

bool Clone_File_Meta::is_deleted ( ) const
inline
Returns
true, iff file is deleted.

◆ is_renamed()

bool Clone_File_Meta::is_renamed ( ) const
inline
Returns
true, iff file is deleted.

◆ reset_ddl()

void Clone_File_Meta::reset_ddl ( )
inline

Reset DDL state of file metadata.

◆ set_deleted_chunk()

void Clone_File_Meta::set_deleted_chunk ( uint32_t  chunk)
inline

Set file as deleted chunk.

Parameters
[in]chunkchunk number that is found deleted.

Member Data Documentation

◆ m_alloc_size

uint64_t Clone_File_Meta::m_alloc_size

File allocation size on disk for sparse files.

◆ m_begin_chunk

uint Clone_File_Meta::m_begin_chunk

Chunk number for the first chunk in file.

◆ m_compress_type

Compression::Type Clone_File_Meta::m_compress_type

File compression type.

◆ m_deleted

bool Clone_File_Meta::m_deleted

◆ m_encryption_metadata

Encryption_metadata Clone_File_Meta::m_encryption_metadata

Encryption metadata.

◆ m_end_chunk

uint Clone_File_Meta::m_end_chunk

Chunk number for the last chunk in file.

◆ m_file_index

uint Clone_File_Meta::m_file_index

File index in clone data file vector.

◆ m_file_name

const char* Clone_File_Meta::m_file_name

File name.

◆ m_file_name_alloc_len

size_t Clone_File_Meta::m_file_name_alloc_len

Allocation length of name buffer.

◆ m_file_name_len

size_t Clone_File_Meta::m_file_name_len

File name length in bytes.

◆ m_file_size

uint64_t Clone_File_Meta::m_file_size

File size in bytes.

◆ m_fsblk_size

size_t Clone_File_Meta::m_fsblk_size

File system block size.

◆ m_fsp_flags

uint32_t Clone_File_Meta::m_fsp_flags

Tablespace FSP flags.

◆ m_punch_hole

bool Clone_File_Meta::m_punch_hole

If transparent compression is needed.

It is derived information and is not transferred.

◆ m_renamed

bool Clone_File_Meta::m_renamed

◆ m_space_id

space_id_t Clone_File_Meta::m_space_id

Tablespace ID for the file.

◆ m_transfer_encryption_key

bool Clone_File_Meta::m_transfer_encryption_key

The documentation for this struct was generated from the following files: