Commit b8871cd5 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Applying InnoDB snapshot

Detailed revision comments:

r6768 | vasil | 2010-03-02 18:20:48 +0200 (Tue, 02 Mar 2010) | 5 lines
branches/zip:

Add a NOTE to the comment of btr_node_ptr_get_child_page_no()
to prevent mysterious bugs.
parent b866cdae
...@@ -193,6 +193,10 @@ btr_leaf_page_release( ...@@ -193,6 +193,10 @@ btr_leaf_page_release(
mtr_t* mtr); /*!< in: mtr */ mtr_t* mtr); /*!< in: mtr */
/**************************************************************//** /**************************************************************//**
Gets the child node file address in a node pointer. Gets the child node file address in a node pointer.
NOTE: the offsets array must contain all offsets for the record since
we read the last field according to offsets and assume that it contains
the child page number. In other words offsets must have been retrieved
with rec_get_offsets(n_fields=ULINT_UNDEFINED).
@return child node address */ @return child node address */
UNIV_INLINE UNIV_INLINE
ulint ulint
......
...@@ -255,6 +255,10 @@ btr_page_set_prev( ...@@ -255,6 +255,10 @@ btr_page_set_prev(
/**************************************************************//** /**************************************************************//**
Gets the child node file address in a node pointer. Gets the child node file address in a node pointer.
NOTE: the offsets array must contain all offsets for the record since
we read the last field according to offsets and assume that it contains
the child page number. In other words offsets must have been retrieved
with rec_get_offsets(n_fields=ULINT_UNDEFINED).
@return child node address */ @return child node address */
UNIV_INLINE UNIV_INLINE
ulint ulint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment