35#ifndef log0files_governor_h
36#define log0files_governor_h
61#define log_files_mutex_enter(log) mutex_enter(&((log).m_files_mutex))
63#define log_files_mutex_exit(log) mutex_exit(&((log).m_files_mutex))
65#define log_files_mutex_own(log) mutex_own(&((log).m_files_mutex))
dberr_t
Definition: db0err.h:39
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:2034
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:1930
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:1811
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:1854
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:2011
void log_files_governor(log_t *log_ptr)
The log files governor thread routine.
Definition: log0files_governor.cc:1351
void log_files_remove(log_t &log)
Removes all log files.
Definition: log0files_governor.cc:1606
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:1390
bool log_files_governor_is_active()
Checks if log file governor thread is active.
Definition: log0files_governor.h:57
dberr_t log_files_start(log_t &log)
Starts the log file management.
Definition: log0files_governor.cc:1651
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:1934
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:1824
void log_files_resize_requested(log_t &log)
Updates capacity limitations after srv_redo_log_capacity_used has been changed.
Definition: log0files_governor.cc:2030
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:2007
dberr_t log_files_produce_file(log_t &log)
Creates a next log file, ready for writes.
Definition: log0files_governor.cc:1046
dberr_t log_files_create(log_t &log, lsn_t flushed_lsn)
Creates a new set of redo log files.
Definition: log0files_governor.cc:1539
uint64_t lsn_t
Type used for all log sequence number storage and arithmetic.
Definition: log0types.h:63
uint32_t Log_flags
Log flags (stored in file header of log file).
Definition: log0types.h:69
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:3260
Srv_threads srv_threads
Structure with state of srv background threads.
Definition: srv0srv.cc:104
IB_thread m_log_files_governor
Redo files governor thread.
Definition: srv0srv.h:173
Redo log - single data structure with state of the redo log system.
Definition: log0sys.h:77