drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
log0log.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1995, 2010, Innobase Oy. All Rights Reserved.
4Copyright (C) 2009 Google Inc.
5
6Portions of this file contain modifications contributed and copyrighted by
7Google, Inc. Those modifications are gratefully acknowledged and are described
8briefly in the InnoDB documentation. The contributions by Google are
9incorporated with their permission, and subject to the conditions contained in
10the file COPYING.Google.
11
12This program is free software; you can redistribute it and/or modify it under
13the terms of the GNU General Public License as published by the Free Software
14Foundation; version 2 of the License.
15
16This program is distributed in the hope that it will be useful, but WITHOUT
17ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License along with
21this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
22St, Fifth Floor, Boston, MA 02110-1301 USA
23
24*****************************************************************************/
25
26/**************************************************/
32
33#pragma once
34#ifndef log0log_h
35#define log0log_h
36
37#include "univ.i"
38#include "ut0byte.h"
39#include "ut0lst.h"
40#ifndef UNIV_HOTBACKUP
41#include "sync0sync.h"
42#include "sync0rw.h"
43#endif /* !UNIV_HOTBACKUP */
44
46typedef struct log_struct log_t;
49
50#ifdef UNIV_DEBUG
52extern ibool log_do_write;
54extern ibool log_debug_writes;
55#else /* UNIV_DEBUG */
57# define log_do_write TRUE
58#endif /* UNIV_DEBUG */
59
61#define LOG_NO_WAIT 91
62#define LOG_WAIT_ONE_GROUP 92
63#define LOG_WAIT_ALL_GROUPS 93
64/* @} */
66#define LOG_MAX_N_GROUPS 32
67
68#ifndef UNIV_HOTBACKUP
69/****************************************************************/
73UNIV_INTERN
74void
76/*==========================================*/
77 ulint limit);
78#endif /* !UNIV_HOTBACKUP */
79/*******************************************************************/
82UNIV_INTERN
83ulint
85/*==================*/
86 ib_int64_t* log_file_offset,
88 ib_uint64_t first_header_lsn,
90 ib_uint64_t lsn,
92 ulint n_log_files,
94 ib_int64_t log_file_size);
96#ifndef UNIV_HOTBACKUP
97/************************************************************/
101UNIV_INLINE
102ib_uint64_t
104/*=======================*/
105 const void* str,
106 ulint len,
107 ib_uint64_t* start_lsn);
108/***********************************************************************/
110UNIV_INLINE
111void
113/*=============*/
114/***********************************************************************/
119UNIV_INLINE
120void
122/*================*/
123/************************************************************/
127UNIV_INTERN
128ib_uint64_t
130/*=================*/
131 ulint len);
132/************************************************************/
135UNIV_INTERN
136void
138/*==========*/
139 byte* str,
140 ulint str_len);
141/************************************************************/
144UNIV_INTERN
145ib_uint64_t
146log_close(void);
147/*===========*/
148/************************************************************/
151UNIV_INLINE
152ib_uint64_t
154/*=============*/
155/****************************************************************
156Gets the log group capacity. It is OK to read the value without
157holding log_sys->mutex because it is constant.
158@return log group capacity */
159UNIV_INLINE
160ulint
161log_get_capacity(void);
162/*==================*/
163/******************************************************/
165UNIV_INTERN
166void
167log_init(void);
168/*==========*/
169/******************************************************************/
171UNIV_INTERN
172void
174/*===========*/
175 ulint id,
176 ulint n_files,
177 ulint file_size,
178 ulint space_id,
181 ulint archive_space_id);
186/******************************************************/
188UNIV_INTERN
189void
191/*============*/
192 log_group_t* group);
193/******************************************************/
198UNIV_INTERN
199void
201/*============*/
202 ib_uint64_t lsn,
205 ulint wait,
207 ibool flush_to_disk);
210/****************************************************************/
212UNIV_INTERN
213void
215/*==========================*/
216/****************************************************************/
221UNIV_INTERN
222void
224/*==========================*/
225 ibool flush); /*<! in: flush the logs to disk */
226/****************************************************************/
232UNIV_INTERN
233ibool
235/*=============================*/
236 ib_uint64_t new_oldest,
239 ibool sync);
241/******************************************************/
247UNIV_INTERN
248ibool
250/*===========*/
251 ibool sync,
253 ibool write_always);
259/****************************************************************/
261UNIV_INTERN
262void
264/*===================*/
265 ib_uint64_t lsn,
268 ibool write_always);
275/****************************************************************/
280UNIV_INTERN
281void
283/*=======================================*/
284/******************************************************/
286UNIV_INTERN
287void
289/*===========================*/
290 log_group_t* group,
291 ulint field);
292/*******************************************************************/
294UNIV_INTERN
295void
297/*==============================*/
298 const byte* buf,
299 ulint n,
300 ulint* file_no,
301 ulint* offset);
302/******************************************************/
304UNIV_INTERN
305void
307/*==================================*/
308/********************************************************************/
311UNIV_INTERN
312ibool
314/*===========*/
315 ibool sync,
316 ulint* n_bytes);
318/****************************************************************/
325UNIV_INTERN
326ulint
328/*==================*/
329/****************************************************************/
332UNIV_INTERN
333ulint
335/*===================*/
336/****************************************************************/
339UNIV_INTERN
340ulint
342/*==========================*/
343/****************************************************************/
346UNIV_INTERN
347ulint
349/*========================*/
350/******************************************************/
352UNIV_INTERN
353void
355/*=======================*/
356 char* buf,
357 ulint id,
358 ulint file_no);
359#else /* !UNIV_HOTBACKUP */
360/******************************************************/
363UNIV_INTERN
364void
365log_reset_first_header_and_checkpoint(
366/*==================================*/
367 byte* hdr_buf,
369 ib_uint64_t start);
372#endif /* !UNIV_HOTBACKUP */
373/********************************************************************/
378UNIV_INTERN
379void
381/*===================*/
382#ifndef UNIV_HOTBACKUP
383/******************************************************/
385UNIV_INTERN
386void
388/*===================*/
389 ulint type,
390 byte* buf,
391 log_group_t* group,
392 ib_uint64_t start_lsn,
393 ib_uint64_t end_lsn);
394/******************************************************/
396UNIV_INTERN
397void
399/*================*/
400 log_group_t* group,
401 byte* buf,
402 ulint len,
404 ib_uint64_t start_lsn,
407 ulint new_data_offset);
411/********************************************************/
415UNIV_INTERN
416void
418/*=================*/
419 log_group_t* group,
420 ib_uint64_t lsn);
422/******************************************************/
426UNIV_INTERN
427ulint
429/*===================*/
430 const log_group_t* group);
431#endif /* !UNIV_HOTBACKUP */
432/************************************************************/
435UNIV_INLINE
436ibool
438/*====================*/
439 const byte* log_block);
440/************************************************************/
443UNIV_INLINE
444ulint
446/*=================*/
447 const byte* log_block);
448/************************************************************/
451UNIV_INLINE
452ulint
454/*===================*/
455 const byte* log_block);
456/************************************************************/
458UNIV_INLINE
459void
461/*===================*/
462 byte* log_block,
463 ulint len);
464/************************************************************/
467UNIV_INLINE
468ulint
470/*====================*/
471 const byte* block);
472/************************************************************/
475UNIV_INLINE
476ulint
478/*===================*/
479 const byte* log_block);
480/************************************************************/
482UNIV_INLINE
483void
485/*===================*/
486 byte* log_block,
487 ulint checksum);
488/************************************************************/
492UNIV_INLINE
493ulint
495/*==========================*/
496 const byte* log_block);
497/************************************************************/
499UNIV_INLINE
500void
502/*==========================*/
503 byte* log_block,
504 ulint offset);
505/************************************************************/
508UNIV_INLINE
509ulint
511/*========================*/
512 const byte* log_block);
513/************************************************************/
515UNIV_INLINE
516void
518/*===========*/
519 byte* log_block,
520 ib_uint64_t lsn);
521/************************************************************/
524UNIV_INLINE
525void
527/*=========================*/
528 byte* log_block,
529 ib_uint64_t lsn);
530/************************************************************/
533UNIV_INLINE
534ulint
536/*========================*/
537 ib_uint64_t lsn);
538/******************************************************/
540UNIV_INTERN
541void
543/*======*/
544 FILE* file);
545/******************************************************/
548UNIV_INTERN
549ibool
551/*=========*/
552 ib_uint64_t* lsn);
553/**********************************************************************/
555UNIV_INTERN
556void
558/*===================*/
559/**********************************************************
560Shutdown the log system but do not release all the memory. */
561UNIV_INTERN
562void
563log_shutdown(void);
564/*==============*/
565/**********************************************************
566Free the log system data structures. */
567UNIV_INTERN
568void
569log_mem_free(void);
570/*==============*/
571
572extern log_t* log_sys;
573
574/* Values used as flags */
575#define LOG_FLUSH 7652559
576#define LOG_CHECKPOINT 78656949
577#ifdef UNIV_LOG_ARCHIVE
578# define LOG_ARCHIVE 11122331
579#endif /* UNIV_LOG_ARCHIVE */
580#define LOG_RECOVER 98887331
581
582/* The counting of lsn's starts from this value: this must be non-zero */
583#define LOG_START_LSN ((ib_uint64_t) (16 * OS_FILE_LOG_BLOCK_SIZE))
584
585#define LOG_BUFFER_SIZE (srv_log_buffer_size * UNIV_PAGE_SIZE)
586#define LOG_ARCHIVE_BUF_SIZE (srv_log_buffer_size * UNIV_PAGE_SIZE / 4)
587
588/* Offsets of a log block header */
589#define LOG_BLOCK_HDR_NO 0 /* block number which must be > 0 and
590 is allowed to wrap around at 2G; the
591 highest bit is set to 1 if this is the
592 first log block in a log flush write
593 segment */
594#define LOG_BLOCK_FLUSH_BIT_MASK 0x80000000UL
595 /* mask used to get the highest bit in
596 the preceding field */
597#define LOG_BLOCK_HDR_DATA_LEN 4 /* number of bytes of log written to
598 this block */
599#define LOG_BLOCK_FIRST_REC_GROUP 6 /* offset of the first start of an
600 mtr log record group in this log block,
601 0 if none; if the value is the same
602 as LOG_BLOCK_HDR_DATA_LEN, it means
603 that the first rec group has not yet
604 been catenated to this log block, but
605 if it will, it will start at this
606 offset; an archive recovery can
607 start parsing the log records starting
608 from this offset in this log block,
609 if value not 0 */
610#define LOG_BLOCK_CHECKPOINT_NO 8 /* 4 lower bytes of the value of
611 log_sys->next_checkpoint_no when the
612 log block was last written to: if the
613 block has not yet been written full,
614 this value is only updated before a
615 log buffer flush */
616#define LOG_BLOCK_HDR_SIZE 12 /* size of the log block header in
617 bytes */
618
619/* Offsets of a log block trailer from the end of the block */
620#define LOG_BLOCK_CHECKSUM 4 /* 4 byte checksum of the log block
621 contents; in InnoDB versions
622 < 3.23.52 this did not contain the
623 checksum but the same value as
624 .._HDR_NO */
625#define LOG_BLOCK_TRL_SIZE 4 /* trailer size in bytes */
626
627/* Offsets for a checkpoint field */
628#define LOG_CHECKPOINT_NO 0
629#define LOG_CHECKPOINT_LSN 8
630#define LOG_CHECKPOINT_OFFSET 16
631#define LOG_CHECKPOINT_LOG_BUF_SIZE 20
632#define LOG_CHECKPOINT_ARCHIVED_LSN 24
633#define LOG_CHECKPOINT_GROUP_ARRAY 32
634
635/* For each value smaller than LOG_MAX_N_GROUPS the following 8 bytes: */
636
637#define LOG_CHECKPOINT_ARCHIVED_FILE_NO 0
638#define LOG_CHECKPOINT_ARCHIVED_OFFSET 4
639
640#define LOG_CHECKPOINT_ARRAY_END (LOG_CHECKPOINT_GROUP_ARRAY\
641 + LOG_MAX_N_GROUPS * 8)
642#define LOG_CHECKPOINT_CHECKSUM_1 LOG_CHECKPOINT_ARRAY_END
643#define LOG_CHECKPOINT_CHECKSUM_2 (4 + LOG_CHECKPOINT_ARRAY_END)
644#define LOG_CHECKPOINT_FSP_FREE_LIMIT (8 + LOG_CHECKPOINT_ARRAY_END)
645 /* current fsp free limit in
646 tablespace 0, in units of one
647 megabyte; this information is only used
648 by ibbackup to decide if it can
649 truncate unused ends of
650 non-auto-extending data files in space
651 0 */
652#define LOG_CHECKPOINT_FSP_MAGIC_N (12 + LOG_CHECKPOINT_ARRAY_END)
653 /* this magic number tells if the
654 checkpoint contains the above field:
655 the field was added to
656 InnoDB-3.23.50 */
657#define LOG_CHECKPOINT_SIZE (16 + LOG_CHECKPOINT_ARRAY_END)
658
659#define LOG_CHECKPOINT_FSP_MAGIC_N_VAL 1441231243
660
661/* Offsets of a log file header */
662#define LOG_GROUP_ID 0 /* log group number */
663#define LOG_FILE_START_LSN 4 /* lsn of the start of data in this
664 log file */
665#define LOG_FILE_NO 12 /* 4-byte archived log file number;
666 this field is only defined in an
667 archived log file */
668#define LOG_FILE_WAS_CREATED_BY_HOT_BACKUP 16
669 /* a 32-byte field which contains
670 the string 'ibbackup' and the
671 creation time if the log file was
672 created by ibbackup --restore;
673 when mysqld is first time started
674 on the restored database, it can
675 print helpful info for the user */
676#define LOG_FILE_OS_FILE_LOG_BLOCK_SIZE 64
677 /* The log_block_size of XtraDB.
678 0 means default 512. */
679#define LOG_FILE_ARCH_COMPLETED OS_FILE_LOG_BLOCK_SIZE
680 /* this 4-byte field is TRUE when
681 the writing of an archived log file
682 has been completed; this field is
683 only defined in an archived log file */
684#define LOG_FILE_END_LSN (OS_FILE_LOG_BLOCK_SIZE + 4)
685 /* lsn where the archived log file
686 at least extends: actually the
687 archived log file may extend to a
688 later lsn, as long as it is within the
689 same log block as this lsn; this field
690 is defined only when an archived log
691 file has been completely written */
692#define LOG_CHECKPOINT_1 OS_FILE_LOG_BLOCK_SIZE
693 /* first checkpoint field in the log
694 header; we write alternately to the
695 checkpoint fields when we make new
696 checkpoints; this field is only defined
697 in the first log file of a log group */
698#define LOG_CHECKPOINT_2 (3 * OS_FILE_LOG_BLOCK_SIZE)
699 /* second checkpoint field in the log
700 header */
701#define LOG_FILE_HDR_SIZE (4 * OS_FILE_LOG_BLOCK_SIZE)
702
703#define LOG_GROUP_OK 301
704#define LOG_GROUP_CORRUPTED 302
705
708struct log_group_struct{
709 /* The following fields are protected by log_sys->mutex */
710 ulint id;
711 ulint n_files;
712 ulint file_size;
714 ulint space_id;
716 ulint state;
718 ib_uint64_t lsn;
720 ulint lsn_offset;
726#ifdef UNIV_LOG_ARCHIVE
727 /*-----------------------------*/
728 byte** archive_file_header_bufs_ptr;
729 byte** archive_file_header_bufs;
730
731 ulint archive_space_id;
732 implements the log group
733 archive */
734 ulint archived_file_no;
736 ulint archived_offset;
740 ulint next_archived_file_no;
746 ulint next_archived_offset;
747#endif /* UNIV_LOG_ARCHIVE */
748 /*-----------------------------*/
749 ib_uint64_t scanned_lsn;
752 byte* checkpoint_buf_ptr;
756 log_groups;
758
761 byte pad[64];
764 ib_uint64_t lsn;
765 ulint buf_free;
767#ifndef UNIV_HOTBACKUP
768 mutex_t mutex;
769#endif /* !UNIV_HOTBACKUP */
770
779 byte* buf_ptr; /* unaligned log buffer */
780 byte* buf;
781 ulint buf_size;
782 ulint max_buf_free;
788 ib_uint64_t old_lsn;
801 log_groups;
802
803#ifndef UNIV_HOTBACKUP
805
806 ulint buf_next_to_write;
813 ib_uint64_t written_to_some_lsn;
835 ib_uint64_t write_lsn;
837 ulint write_end_offset;
842 ib_uint64_t current_flush_lsn;
847 ulint n_pending_writes;
849 /* NOTE on the 'flush' in names of the fields below: starting from
850 4.0.14, we separate the write of the log file and the actual fsync()
851 or other method to flush it to disk. The names below shhould really
852 be 'flush_or_write'! */
859 ibool one_flushed;
872 ulint n_log_ios;
874 ulint n_log_ios_old;
876 time_t last_printout_time;
878 /* @} */
879
881 ulint log_group_capacity;
908 ulint max_checkpoint_age;
912 ib_uint64_t next_checkpoint_no;
914 ib_uint64_t last_checkpoint_lsn;
916 ib_uint64_t next_checkpoint_lsn;
921 rw_lock_t checkpoint_lock;
925#endif /* !UNIV_HOTBACKUP */
926 byte* checkpoint_buf_ptr;/* unaligned checkpoint header */
927 byte* checkpoint_buf;
929 /* @} */
930#ifdef UNIV_LOG_ARCHIVE
932 ulint archiving_state;
934 ib_uint64_t archived_lsn;
936 ulint max_archived_lsn_age_async;
939
940 ulint max_archived_lsn_age;
941 /*!< maximum allowed age for
942 archived_lsn */
943 ib_uint64_t next_archived_lsn;
945 store the next value for
946 archived_lsn here: the write
947 completion function then sets the new
948 value to archived_lsn */
949 ulint archiving_phase;
951 ulint n_pending_archive_ios;
952
954 rw_lock_t archive_lock;
958 ulint archive_buf_size;
959 byte* archive_buf;
961 os_event_t archiving_on;
964 /* @} */
965#endif /* UNIV_LOG_ARCHIVE */
966};
967
969#define log_flush_order_mutex_own() \
970 mutex_own(&log_sys->log_flush_order_mutex)
971
973#define log_flush_order_mutex_enter() do { \
974 mutex_enter(&log_sys->log_flush_order_mutex); \
975} while (0)
977# define log_flush_order_mutex_exit() do { \
978 mutex_exit(&log_sys->log_flush_order_mutex); \
979} while (0)
980
981#ifdef UNIV_LOG_ARCHIVE
983#define LOG_ARCH_ON 71
984#define LOG_ARCH_STOPPING 72
985#define LOG_ARCH_STOPPING2 73
986#define LOG_ARCH_STOPPED 74
987#define LOG_ARCH_OFF 75
988/* @} */
989#endif /* UNIV_LOG_ARCHIVE */
990
991#ifndef UNIV_NONINL
992#include "log0log.ic"
993#endif
994
995#endif
UNIV_INTERN void log_group_set_fields(log_group_t *group, ib_uint64_t lsn)
Definition log0log.cc:676
UNIV_INTERN void log_refresh_stats(void)
Definition log0log.cc:3427
UNIV_INTERN void log_group_read_checkpoint_info(log_group_t *group, ulint field)
Definition log0log.cc:1969
UNIV_INLINE ulint log_block_get_checkpoint_no(const byte *log_block)
UNIV_INTERN void log_make_checkpoint_at(ib_uint64_t lsn, ibool write_always)
Definition log0log.cc:2102
UNIV_INLINE ulint log_block_get_data_len(const byte *log_block)
UNIV_INLINE void log_free_check(void)
UNIV_INTERN ulint log_group_get_capacity(const log_group_t *group)
Definition log0log.cc:527
#define log_do_write
Definition log0log.h:57
UNIV_INTERN void log_write_low(byte *str, ulint str_len)
Definition log0log.cc:299
UNIV_INTERN void log_check_margins(void)
Definition log0log.cc:3086
UNIV_INTERN ulint log_archive_start(void)
UNIV_INTERN ibool log_archive_do(ibool sync, ulint *n_bytes)
UNIV_INTERN ibool log_preflush_pool_modified_pages(ib_uint64_t new_oldest, ibool sync)
Definition log0log.cc:1676
UNIV_INTERN void logs_empty_and_mark_files_at_shutdown(void)
Definition log0log.cc:3118
UNIV_INLINE void log_release(void)
UNIV_INTERN void log_write_up_to(ib_uint64_t lsn, ulint wait, ibool flush_to_disk)
Definition log0log.cc:1376
UNIV_INLINE ulint log_block_get_hdr_no(const byte *log_block)
UNIV_INLINE ulint log_block_convert_lsn_to_no(ib_uint64_t lsn)
UNIV_INLINE ulint log_block_calc_checksum(const byte *block)
UNIV_INLINE void log_block_init_in_old_format(byte *log_block, ib_uint64_t lsn)
UNIV_INLINE ib_uint64_t log_reserve_and_write_fast(const void *str, ulint len, ib_uint64_t *start_lsn)
UNIV_INLINE void log_block_set_checksum(byte *log_block, ulint checksum)
UNIV_INTERN void log_checkpoint_get_nth_group_info(const byte *buf, ulint n, ulint *file_no, ulint *offset)
Definition log0log.cc:1773
UNIV_INTERN ulint log_archive_archivelog(void)
UNIV_INLINE ibool log_block_get_flush_bit(const byte *log_block)
UNIV_INTERN void log_print(FILE *file)
Definition log0log.cc:3377
UNIV_INLINE void log_block_init(byte *log_block, ib_uint64_t lsn)
UNIV_INLINE void log_block_set_data_len(byte *log_block, ulint len)
UNIV_INTERN void log_buffer_flush_to_disk(void)
Definition log0log.cc:1601
UNIV_INTERN ulint log_archive_stop(void)
UNIV_INLINE ulint log_block_get_checksum(const byte *log_block)
UNIV_INTERN void log_group_write_buf(log_group_t *group, byte *buf, ulint len, ib_uint64_t start_lsn, ulint new_data_offset)
Definition log0log.cc:1255
UNIV_INTERN void log_fsp_current_free_limit_set_and_checkpoint(ulint limit)
Definition log0log.cc:175
UNIV_INLINE ulint log_block_get_first_rec_group(const byte *log_block)
UNIV_INTERN void log_buffer_sync_in_background(ibool flush)
Definition log0log.cc:1622
UNIV_INLINE ib_uint64_t log_get_lsn(void)
UNIV_INTERN ibool log_peek_lsn(ib_uint64_t *lsn)
Definition log0log.cc:3358
struct log_struct log_t
Definition log0log.h:46
UNIV_INTERN void log_io_complete(log_group_t *group)
Definition log0log.cc:1117
UNIV_INTERN ulint log_calc_where_lsn_is(ib_int64_t *log_file_offset, ib_uint64_t first_header_lsn, ib_uint64_t lsn, ulint n_log_files, ib_int64_t log_file_size)
Definition log0log.cc:634
UNIV_INTERN ib_uint64_t log_close(void)
Definition log0log.cc:402
UNIV_INTERN void log_group_read_log_seg(ulint type, byte *buf, log_group_t *group, ib_uint64_t start_lsn, ib_uint64_t end_lsn)
Definition log0log.cc:2229
UNIV_INTERN void log_group_init(ulint id, ulint n_files, ulint file_size, ulint space_id, ulint archive_space_id)
Definition log0log.cc:925
UNIV_INTERN ulint log_archive_noarchivelog(void)
UNIV_INTERN ib_uint64_t log_reserve_and_open(ulint len)
Definition log0log.cc:225
struct log_group_struct log_group_t
Definition log0log.h:48
UNIV_INTERN void log_archived_file_name_gen(char *buf, ulint id, ulint file_no)
UNIV_INLINE void log_block_set_first_rec_group(byte *log_block, ulint offset)
UNIV_INTERN ibool log_checkpoint(ibool sync, ibool write_always)
Definition log0log.cc:2011
UNIV_INTERN void log_init(void)
Definition log0log.cc:801
UNIV_INTERN void log_groups_write_checkpoint_info(void)
Definition log0log.cc:1987
os_event_struct_t * os_event_t
Definition os0sync.h:58
ib_uint64_t scanned_lsn
Definition log0log.h:721
ib_uint64_t lsn
Definition log0log.h:690
byte ** file_header_bufs
Definition log0log.h:696
ulint n_pending_writes
Definition log0log.h:693
byte ** file_header_bufs_ptr
Definition log0log.h:695
ib_uint64_t written_to_all_lsn
Definition log0log.h:791
ulint max_checkpoint_age
Definition log0log.h:880
ulint buf_size
Definition log0log.h:753
byte * buf
Definition log0log.h:752
ib_uint64_t last_checkpoint_lsn
Definition log0log.h:886
os_event_t no_flush_event
Definition log0log.h:825
ibool check_flush_or_checkpoint
Definition log0log.h:763
ulint old_buf_free
Definition log0log.h:757
ulint log_group_capacity
Definition log0log.h:853
ib_uint64_t written_to_some_lsn
Definition log0log.h:785
ulint adm_checkpoint_interval
Definition log0log.h:870
byte * checkpoint_buf
Definition log0log.h:899
ib_uint64_t old_lsn
Definition log0log.h:760
ulint max_buf_free
Definition log0log.h:754
ib_uint64_t current_flush_lsn
Definition log0log.h:814
ulint n_log_ios
Definition log0log.h:844
ib_uint64_t next_checkpoint_lsn
Definition log0log.h:888
mutex_t mutex
Definition log0log.h:740
rw_lock_t checkpoint_lock
Definition log0log.h:893
ulint max_modified_age_sync
Definition log0log.h:864
ulint n_pending_writes
Definition log0log.h:819
time_t last_printout_time
Definition log0log.h:848
ib_uint64_t flushed_to_disk_lsn
Definition log0log.h:816
ulint max_checkpoint_age_async
Definition log0log.h:875
ulint buf_next_to_write
Definition log0log.h:778
ib_uint64_t next_checkpoint_no
Definition log0log.h:884
ibool one_flushed
Definition log0log.h:831
os_event_t one_flushed_event
Definition log0log.h:835
mutex_t log_flush_order_mutex
Definition log0log.h:743
ulint n_pending_checkpoint_writes
Definition log0log.h:890
ulint n_log_ios_old
Definition log0log.h:846
ulint max_modified_age_async
Definition log0log.h:858
ulint buf_free
Definition log0log.h:737
ib_uint64_t write_lsn
Definition log0log.h:807
byte pad[64]
Definition log0log.h:733
ulint write_end_offset
Definition log0log.h:809
ib_uint64_t lsn
Definition log0log.h:736
#define mutex_t
Definition sync0types.h:31
#define UT_LIST_NODE_T(TYPE)
Definition ut0lst.h:73
#define UT_LIST_BASE_NODE_T(TYPE)
Definition ut0lst.h:54