MySQL 9.1.0
Source Code Documentation
temptable::Exponential_policy Struct Reference

#include <allocator.h>

Static Public Member Functions

static size_t block_size (size_t number_of_blocks, size_t n_bytes_requested)
 Given the current number of allocated blocks by the allocator, and number of bytes actually requested by the client code, calculate the new block size. More...
 

Member Function Documentation

◆ block_size()

static size_t temptable::Exponential_policy::block_size ( size_t  number_of_blocks,
size_t  n_bytes_requested 
)
inlinestatic

Given the current number of allocated blocks by the allocator, and number of bytes actually requested by the client code, calculate the new block size.

[in] Current number of allocated blocks. [in] Number of bytes requested by the client code.

Returns
New block size.

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