struct page_cur_t{ const dict_index_t* index; rec_t* rec; /*!< pointer to a record on page */ ulint* offsets; buf_block_t* block; /*!< pointer to the block containing rec */ }; 其中包含了本index的數據字典類容、實際的數據、記錄所在塊的信息等,下面我具體談一下定位方法,同時結合源碼來看它具體的實現。
/* The maximum and minimum number of records owned by a directory slot. The number may drop below the minimum in the first and the last slot in the directory. */ #define PAGE_DIR_SLOT_MAX_N_OWNED 8 #define PAGE_DIR_SLOT_MIN_N_OWNED 4 如果大于了8則進行分裂