~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/log0log.h

  • Committer: Brian Aker
  • Date: 2010-10-15 00:59:36 UTC
  • mfrom: (1849 staging)
  • mto: This revision was merged to the branch mainline in revision 1853.
  • Revision ID: brian@tangent.org-20101015005936-znhvkz8khs4fhlyv
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
ib_uint64_t
119
119
log_reserve_and_write_fast(
120
120
/*=======================*/
121
 
        byte*           str,    /*!< in: string */
 
121
        const void*     str,    /*!< in: string */
122
122
        ulint           len,    /*!< in: string length */
123
 
        ib_uint64_t*    start_lsn,/*!< out: start lsn of the log record */
124
 
        ibool*          success);/*!< out: TRUE if success */
 
123
        ib_uint64_t*    start_lsn);/*!< out: start lsn of the log record */
125
124
/***********************************************************************//**
126
125
Releases the log mutex. */
127
126
UNIV_INLINE
573
572
void
574
573
log_refresh_stats(void);
575
574
/*===================*/
 
575
/**********************************************************
 
576
Shutdown the log system but do not release all the memory. */
 
577
UNIV_INTERN
 
578
void
 
579
log_shutdown(void);
 
580
/*==============*/
 
581
/**********************************************************
 
582
Free the log system data structures. */
 
583
UNIV_INTERN
 
584
void
 
585
log_mem_free(void);
 
586
/*==============*/
576
587
 
577
588
extern log_t*   log_sys;
578
589
 
585
596
#define LOG_RECOVER     98887331
586
597
 
587
598
/* The counting of lsn's starts from this value: this must be non-zero */
588
 
#define LOG_START_LSN   ((ib_uint64_t) (16 * OS_FILE_LOG_BLOCK_SIZE))
 
599
#define LOG_START_LSN           ((ib_uint64_t) (16 * OS_FILE_LOG_BLOCK_SIZE))
589
600
 
590
601
#define LOG_BUFFER_SIZE         (srv_log_buffer_size * UNIV_PAGE_SIZE)
591
602
#define LOG_ARCHIVE_BUF_SIZE    (srv_log_buffer_size * UNIV_PAGE_SIZE / 4)
722
733
        ulint           lsn_offset;     /*!< the offset of the above lsn */
723
734
        ulint           n_pending_writes;/*!< number of currently pending flush
724
735
                                        writes for this log group */
 
736
        byte**          file_header_bufs_ptr;/*!< unaligned buffers */
725
737
        byte**          file_header_bufs;/*!< buffers for each file
726
738
                                        header in the group */
 
739
#ifdef UNIV_LOG_ARCHIVE
727
740
        /*-----------------------------*/
 
741
        byte**          archive_file_header_bufs_ptr;/*!< unaligned buffers */
728
742
        byte**          archive_file_header_bufs;/*!< buffers for each file
729
743
                                        header in the group */
730
744
        ulint           archive_space_id;/*!< file space which
743
757
                                        completion function then sets the new
744
758
                                        value to ..._file_no */
745
759
        ulint           next_archived_offset; /*!< like the preceding field */
 
760
#endif /* UNIV_LOG_ARCHIVE */
746
761
        /*-----------------------------*/
747
762
        ib_uint64_t     scanned_lsn;    /*!< used only in recovery: recovery scan
748
763
                                        succeeded up to this lsn in this log
749
764
                                        group */
 
765
        byte*           checkpoint_buf_ptr;/*!< unaligned checkpoint header */
750
766
        byte*           checkpoint_buf; /*!< checkpoint header is written from
751
767
                                        this buffer to the group */
752
768
        UT_LIST_NODE_T(log_group_t)
764
780
#ifndef UNIV_HOTBACKUP
765
781
        mutex_t         mutex;          /*!< mutex protecting the log */
766
782
#endif /* !UNIV_HOTBACKUP */
 
783
        byte*           buf_ptr;        /* unaligned log buffer */
767
784
        byte*           buf;            /*!< log buffer */
768
785
        ulint           buf_size;       /*!< log buffer size in bytes */
769
786
        ulint           max_buf_free;   /*!< recommended maximum value of
900
917
                                        should wait for this without owning
901
918
                                        the log mutex */
902
919
#endif /* !UNIV_HOTBACKUP */
 
920
        byte*           checkpoint_buf_ptr;/* unaligned checkpoint header */
903
921
        byte*           checkpoint_buf; /*!< checkpoint header is read to this
904
922
                                        buffer */
905
923
        /* @} */