MySQL 26.7.0
Source Code Documentation
clone0desc.cc File Reference

Innodb clone descriptors. More...

Functions

uint choose_desc_version (const byte *ref_loc)
 Choose lowest descriptor version between reference locator and currently supported version. More...
 
bool clone_validate_locator (const byte *desc_loc, uint desc_len)
 Check if clone locator is valid. More...
 
bool DESC_CHECK_FLAG (ulint flag, ulint bit)
 Check a specific bit in flag. More...
 
void DESC_SET_FLAG (ulint &flag, ulint bit)
 Set a specific bit in flag. More...
 

Detailed Description

Innodb clone descriptors.

Function Documentation

◆ choose_desc_version()

uint choose_desc_version ( const byte ref_loc)

Choose lowest descriptor version between reference locator and currently supported version.

Parameters
[in]ref_locreference locator
Returns
chosen version

◆ clone_validate_locator()

bool clone_validate_locator ( const byte desc_loc,
uint  desc_len 
)

Check if clone locator is valid.

Parameters
[in]desc_locserialized descriptor
[in]desc_lendescriptor length
Returns
true, if valid locator

◆ DESC_CHECK_FLAG()

bool DESC_CHECK_FLAG ( ulint  flag,
ulint  bit 
)
inline

Check a specific bit in flag.

Parameters
[in]flagbit flag
[in]bitcheck bit
Returns
true, iff bit is set in flag.

◆ DESC_SET_FLAG()

void DESC_SET_FLAG ( ulint flag,
ulint  bit 
)
inline

Set a specific bit in flag.

Parameters
[in]flagbit flag
[in]bitset bit