MySQL 8.3.0
Source Code Documentation
Log_files_write_impl Namespace Reference

Functions

static void validate_buffer (const log_t &log, const byte *buffer, size_t buffer_size)
 
static void validate_start_lsn (const log_t &log, lsn_t start_lsn, size_t buffer_size)
 
static bool current_file_has_space (const log_t &log, os_offset_t offset, size_t size)
 
static dberr_t start_next_file (log_t &log, lsn_t start_lsn)
 
static bool write_ahead_enough (os_offset_t write_ahead_end, os_offset_t offset, size_t size)
 
static bool current_write_ahead_enough (const log_t &log, os_offset_t offset, size_t size)
 
static os_offset_t compute_next_write_ahead_end (os_offset_t real_offset)
 
static size_t compute_how_much_to_write (const log_t &log, os_offset_t real_offset, size_t buffer_size, bool &write_from_log_buffer)
 
static void prepare_full_blocks (const log_t &log, byte *buffer, size_t size, lsn_t start_lsn)
 
static dberr_t write_blocks (log_t &log, byte *write_buf, size_t write_size, os_offset_t real_offset)
 
static void notify_about_advanced_write_lsn (log_t &log, lsn_t old_write_lsn, lsn_t new_write_lsn)
 
static void copy_to_write_ahead_buffer (log_t &log, const byte *buffer, size_t &size, lsn_t start_lsn)
 
static size_t prepare_for_write_ahead (log_t &log, os_offset_t real_offset, size_t &write_size)
 
static void update_current_write_ahead (log_t &log, os_offset_t real_offset, size_t write_size)
 

Function Documentation

◆ compute_how_much_to_write()

static size_t Log_files_write_impl::compute_how_much_to_write ( const log_t log,
os_offset_t  real_offset,
size_t  buffer_size,
bool &  write_from_log_buffer 
)
inlinestatic

◆ compute_next_write_ahead_end()

static os_offset_t Log_files_write_impl::compute_next_write_ahead_end ( os_offset_t  real_offset)
inlinestatic

◆ copy_to_write_ahead_buffer()

static void Log_files_write_impl::copy_to_write_ahead_buffer ( log_t log,
const byte buffer,
size_t &  size,
lsn_t  start_lsn 
)
inlinestatic

◆ current_file_has_space()

static bool Log_files_write_impl::current_file_has_space ( const log_t log,
os_offset_t  offset,
size_t  size 
)
inlinestatic

◆ current_write_ahead_enough()

static bool Log_files_write_impl::current_write_ahead_enough ( const log_t log,
os_offset_t  offset,
size_t  size 
)
inlinestatic

◆ notify_about_advanced_write_lsn()

static void Log_files_write_impl::notify_about_advanced_write_lsn ( log_t log,
lsn_t  old_write_lsn,
lsn_t  new_write_lsn 
)
inlinestatic

◆ prepare_for_write_ahead()

static size_t Log_files_write_impl::prepare_for_write_ahead ( log_t log,
os_offset_t  real_offset,
size_t &  write_size 
)
inlinestatic

◆ prepare_full_blocks()

static void Log_files_write_impl::prepare_full_blocks ( const log_t log,
byte buffer,
size_t  size,
lsn_t  start_lsn 
)
inlinestatic

◆ start_next_file()

static dberr_t Log_files_write_impl::start_next_file ( log_t log,
lsn_t  start_lsn 
)
static

◆ update_current_write_ahead()

static void Log_files_write_impl::update_current_write_ahead ( log_t log,
os_offset_t  real_offset,
size_t  write_size 
)
inlinestatic

◆ validate_buffer()

static void Log_files_write_impl::validate_buffer ( const log_t log,
const byte buffer,
size_t  buffer_size 
)
inlinestatic

◆ validate_start_lsn()

static void Log_files_write_impl::validate_start_lsn ( const log_t log,
lsn_t  start_lsn,
size_t  buffer_size 
)
inlinestatic

◆ write_ahead_enough()

static bool Log_files_write_impl::write_ahead_enough ( os_offset_t  write_ahead_end,
os_offset_t  offset,
size_t  size 
)
inlinestatic

◆ write_blocks()

static dberr_t Log_files_write_impl::write_blocks ( log_t log,
byte write_buf,
size_t  write_size,
os_offset_t  real_offset 
)
inlinestatic