结构体buf_chunk_t

时间:2023-03-09 22:08:31
结构体buf_chunk_t
/** Buffer pool chunk comprising buf_block_t */
typedef struct buf_chunk_struct        buf_chunk_t;

/** A chunk of buffers. The buffer pool is allocated in chunks. */
struct buf_chunk_struct{
    ulint        mem_size;    /*!< allocated size of the chunk */
    ulint        size;        /*!< size of frames[] and blocks[] */
    void*        mem;        /*!< pointer to the memory area which was allocated for the frames */
    buf_block_t*    blocks;        /*!< array of buffer control blocks */
};