34#ifndef log0files_governor_h
35#define log0files_governor_h
60#define log_files_mutex_enter(log) mutex_enter(&((log).m_files_mutex))
62#define log_files_mutex_exit(log) mutex_exit(&((log).m_files_mutex))
64#define log_files_mutex_own(log) mutex_own(&((log).m_files_mutex))
dberr_t
Definition: db0err.h:38
In-memory dictionary of log files (keeps their meta data).
void log_files_thread_concurrency_updated(log_t &log)
Updates capacity limitations after srv_thread_concurrency has been changed.
Definition: log0files_governor.cc:2029
void log_files_dummy_records_request_disable(log_t &log)
Disallows to generate dummy redo records but does not wait until the log_files_governor promised not ...
Definition: log0files_governor.cc:1927
dberr_t log_files_persist_flags(log_t &log, Log_flags log_flags)
Persists log flags to the newest log file.
Definition: log0files_governor.cc:1808
void log_files_update_encryption(log_t &log, const Encryption_metadata &encryption_metadata)
Updates the encryption metadata stored in-memory for all redo log files.
Definition: log0files_governor.cc:1851
void log_files_initialize_on_existing_redo(log_t &log)
Computes initial capacity limits and size suggested for the next log file.
Definition: log0files_governor.cc:2008
void log_files_governor(log_t *log_ptr)
The log files governor thread routine.
Definition: log0files_governor.cc:1348
void log_files_remove(log_t &log)
Removes all log files.
Definition: log0files_governor.cc:1603
void log_files_wait_for_next_file_available(log_t &log)
Waits until a next log file is available and can be produced.
Definition: log0files_governor.cc:1387
bool log_files_governor_is_active()
Checks if log file governor thread is active.
Definition: log0files_governor.h:56
dberr_t log_files_start(log_t &log)
Starts the log file management.
Definition: log0files_governor.cc:1648
void log_files_dummy_records_disable(log_t &log)
Disallows to generate dummy redo records and waits until the log_files_governor thread promised not t...
Definition: log0files_governor.cc:1931
dberr_t log_files_reset_creator_and_set_full(log_t &log)
Resets creator name to the current creator and marks all files as full in their headers by setting LO...
Definition: log0files_governor.cc:1821
void log_files_resize_requested(log_t &log)
Updates capacity limitations after srv_redo_log_capacity_used has been changed.
Definition: log0files_governor.cc:2025
void log_files_initialize_on_empty_redo(log_t &log)
Computes initial capacity limits and size suggested for the next log file.
Definition: log0files_governor.cc:2004
dberr_t log_files_produce_file(log_t &log)
Creates a next log file, ready for writes.
Definition: log0files_governor.cc:1045
dberr_t log_files_create(log_t &log, lsn_t flushed_lsn)
Creates a new set of redo log files.
Definition: log0files_governor.cc:1536
uint64_t lsn_t
Type used for all log sequence number storage and arithmetic.
Definition: log0types.h:62
uint32_t Log_flags
Log flags (stored in file header of log file).
Definition: log0types.h:68
The interface to the operating system file io.
bool srv_thread_is_active(const IB_thread &thread)
Check if given thread is still active.
Definition: srv0srv.cc:3254
Srv_threads srv_threads
Structure with state of srv background threads.
Definition: srv0srv.cc:102
IB_thread m_log_files_governor
Redo files governor thread.
Definition: srv0srv.h:171
Redo log - single data structure with state of the redo log system.
Definition: log0sys.h:76