MySQL 9.0.0
Source Code Documentation
btr_path_t Struct Reference

A slot in the path array. More...

#include <btr0cur.h>

Public Attributes

ulint nth_rec {ULINT_UNDEFINED}
 Index of the record where the page cursor stopped on this level (index in alphabetical order). More...
 
ulint n_recs {ULINT_UNDEFINED}
 Number of the records on the page, not counting inf and sup. More...
 
page_no_t page_no {FIL_NULL}
 Number of the page containing the record. More...
 
ulint page_level {ULINT_UNDEFINED}
 Level of the page. More...
 

Detailed Description

A slot in the path array.

We store here info on a search path down the tree. Each slot contains data on a single level of the tree.

Member Data Documentation

◆ n_recs

ulint btr_path_t::n_recs {ULINT_UNDEFINED}

Number of the records on the page, not counting inf and sup.

In the above example n_recs will be 4.

◆ nth_rec

ulint btr_path_t::nth_rec {ULINT_UNDEFINED}

Index of the record where the page cursor stopped on this level (index in alphabetical order).

Value ULINT_UNDEFINED denotes array end. In the above example, if the search stopped on record 'c', then nth_rec will be 3.

◆ page_level

ulint btr_path_t::page_level {ULINT_UNDEFINED}

Level of the page.

If later we fetch the page under page_no and it is on a different level then we know that the tree has been reorganized.

◆ page_no

page_no_t btr_path_t::page_no {FIL_NULL}

Number of the page containing the record.


The documentation for this struct was generated from the following file: