#include <log0log.h>
Redo log buffer
Definition at line 732 of file log0log.h.
◆ adm_checkpoint_interval
| ulint log_struct::adm_checkpoint_interval |
administrator-specified checkpoint interval in terms of log growth in bytes; the interval actually used by the database can be smaller
Definition at line 870 of file log0log.h.
◆ buf
◆ buf_free
| ulint log_struct::buf_free |
first free offset within the log buffer
Definition at line 737 of file log0log.h.
◆ buf_next_to_write
| ulint log_struct::buf_next_to_write |
The fields involved in the log buffer flush first offset in the log buffer where the byte content may not exist written to file, e.g., the start offset of a log record catenated later; this is advanced when a flush operation is completed to all the log groups
Definition at line 778 of file log0log.h.
◆ buf_ptr
| byte* log_struct::buf_ptr |
◆ buf_size
| ulint log_struct::buf_size |
log buffer size in bytes
Definition at line 753 of file log0log.h.
◆ check_flush_or_checkpoint
| ibool log_struct::check_flush_or_checkpoint |
this is set to TRUE when there may be need to flush the log buffer, or preflush buffer pool pages, or make a checkpoint; this MUST be TRUE when lsn - last_checkpoint_lsn > max_checkpoint_age; this flag is peeked at by log_free_check(), which does not reserve the log mutex
Definition at line 763 of file log0log.h.
◆ checkpoint_buf
| byte* log_struct::checkpoint_buf |
checkpoint header is read to this buffer
Definition at line 899 of file log0log.h.
◆ checkpoint_buf_ptr
| byte* log_struct::checkpoint_buf_ptr |
◆ checkpoint_lock
| rw_lock_t log_struct::checkpoint_lock |
this latch is x-locked when a checkpoint write is running; a thread should wait for this without owning the log mutex
Definition at line 893 of file log0log.h.
◆ current_flush_lsn
| ib_uint64_t log_struct::current_flush_lsn |
end lsn for the current running write + flush operation
Definition at line 814 of file log0log.h.
◆ flushed_to_disk_lsn
| ib_uint64_t log_struct::flushed_to_disk_lsn |
how far we have written the log AND flushed to disk
Definition at line 816 of file log0log.h.
◆ last_checkpoint_lsn
| ib_uint64_t log_struct::last_checkpoint_lsn |
latest checkpoint lsn
Definition at line 886 of file log0log.h.
◆ last_printout_time
| time_t log_struct::last_printout_time |
when log_print was last time called
Definition at line 848 of file log0log.h.
◆ log_flush_order_mutex
| mutex_t log_struct::log_flush_order_mutex |
mutex to serialize access to the flush list when we are putting dirty blocks in the list. The idea behind this mutex is to be able to release log_sys->mutex during mtr_commit and still ensure that insertions in the flush_list happen in the LSN order.
Definition at line 743 of file log0log.h.
◆ log_group_capacity
| ulint log_struct::log_group_capacity |
Fields involved in checkpoints capacity of the log group; if the checkpoint age exceeds this, it is a serious error because it is possible we will then overwrite log and spoil crash recovery
Definition at line 853 of file log0log.h.
◆ log_groups
◆ lsn
| ib_uint64_t log_struct::lsn |
log sequence number
Definition at line 736 of file log0log.h.
◆ max_buf_free
| ulint log_struct::max_buf_free |
recommended maximum value of buf_free, after which the buffer is flushed
Definition at line 754 of file log0log.h.
◆ max_checkpoint_age
| ulint log_struct::max_checkpoint_age |
this is the maximum allowed value for lsn - last_checkpoint_lsn when a new query step is started
Definition at line 880 of file log0log.h.
◆ max_checkpoint_age_async
| ulint log_struct::max_checkpoint_age_async |
when this checkpoint age is exceeded we start an asynchronous writing of a new checkpoint
Definition at line 875 of file log0log.h.
◆ max_modified_age_async
| ulint log_struct::max_modified_age_async |
◆ max_modified_age_sync
| ulint log_struct::max_modified_age_sync |
◆ mutex
mutex protecting the log
Definition at line 740 of file log0log.h.
◆ n_log_ios
| ulint log_struct::n_log_ios |
number of log i/os initiated thus far
Definition at line 844 of file log0log.h.
◆ n_log_ios_old
| ulint log_struct::n_log_ios_old |
number of log i/o's at the previous printout
Definition at line 846 of file log0log.h.
◆ n_pending_checkpoint_writes
| ulint log_struct::n_pending_checkpoint_writes |
number of currently pending checkpoint writes
Definition at line 890 of file log0log.h.
◆ n_pending_writes
| ulint log_struct::n_pending_writes |
number of currently pending flushes or writes
Definition at line 819 of file log0log.h.
◆ next_checkpoint_lsn
| ib_uint64_t log_struct::next_checkpoint_lsn |
next checkpoint lsn
Definition at line 888 of file log0log.h.
◆ next_checkpoint_no
| ib_uint64_t log_struct::next_checkpoint_no |
next checkpoint number
Definition at line 884 of file log0log.h.
◆ no_flush_event
this event is in the reset state when a flush or a write is running; a thread should wait for this without owning the log mutex, but NOTE that to set or reset this event, the thread MUST own the log mutex!
Definition at line 825 of file log0log.h.
◆ old_buf_free
| ulint log_struct::old_buf_free |
value of buf free when log was last time opened; only in the debug version
Definition at line 757 of file log0log.h.
◆ old_lsn
| ib_uint64_t log_struct::old_lsn |
value of lsn when log was last time opened; only in the debug version
Definition at line 760 of file log0log.h.
◆ one_flushed
| ibool log_struct::one_flushed |
during a flush, this is first FALSE and becomes TRUE when one log group has been written or flushed
Definition at line 831 of file log0log.h.
◆ one_flushed_event
this event is reset when the flush or write has not yet completed for any log group; e.g., this means that a transaction has been committed when this is set; a thread should wait for this without owning the log mutex, but NOTE that to set or reset this event, the thread MUST own the log mutex!
Definition at line 835 of file log0log.h.
◆ pad
padding to prevent other memory update hotspots from residing on the same memory cache line
Definition at line 733 of file log0log.h.
◆ write_end_offset
| ulint log_struct::write_end_offset |
the data in buffer has been written up to this offset when the current write ends: this field will then be copied to buf_next_to_write
Definition at line 809 of file log0log.h.
◆ write_lsn
| ib_uint64_t log_struct::write_lsn |
end lsn for the current running write
Definition at line 807 of file log0log.h.
◆ written_to_all_lsn
| ib_uint64_t log_struct::written_to_all_lsn |
first log sequence number not yet written to some log group; for this to be advanced, it is enough that the write i/o has been completed for all log groups. Note that since InnoDB currently has only one log group therefore this value is redundant. Also it is possible that this value falls behind the flushed_to_disk_lsn transiently. It is appropriate to use either flushed_to_disk_lsn or write_lsn which are always up-to-date and accurate.
Definition at line 791 of file log0log.h.
◆ written_to_some_lsn
| ib_uint64_t log_struct::written_to_some_lsn |
first log sequence number not yet written to any log group; for this to be advanced, it is enough that the write i/o has been completed for any one log group
Definition at line 785 of file log0log.h.
The documentation for this struct was generated from the following file: