Commit 36608705 authored by marko's avatar marko

branches/zip: Minor cleanup.

row_build_row_ref_fast(): Note that "ref" is an in/out parameter.

row_build_row_ref_from_row(): Add const qualifiers to all "in" parameters.
parent 9b1d1fff
......@@ -186,13 +186,14 @@ index record. */
void
row_build_row_ref_from_row(
/*=======================*/
dtuple_t* ref, /* in/out: row reference built; see the
NOTE below! ref must have the right number
of fields! */
dict_table_t* table, /* in: table */
dtuple_t* row); /* in: row
NOTE: the data fields in ref will point
directly into data of this row */
dtuple_t* ref, /* in/out: row reference built;
see the NOTE below!
ref must have the right number
of fields! */
const dict_table_t* table, /* in: table */
const dtuple_t* row); /* in: row
NOTE: the data fields in ref will point
directly into data of this row */
/***********************************************************************
Builds from a secondary index record a row reference with which we can
search the clustered index record. */
......@@ -200,7 +201,7 @@ UNIV_INLINE
void
row_build_row_ref_fast(
/*===================*/
dtuple_t* ref, /* in: typed data tuple where the
dtuple_t* ref, /* in/out: typed data tuple where the
reference is built */
const ulint* map, /* in: array of field numbers in rec
telling how ref should be built from
......
......@@ -67,7 +67,7 @@ UNIV_INLINE
void
row_build_row_ref_fast(
/*===================*/
dtuple_t* ref, /* in: typed data tuple where the
dtuple_t* ref, /* in/out: typed data tuple where the
reference is built */
const ulint* map, /* in: array of field numbers in rec
telling how ref should be built from
......
......@@ -592,17 +592,18 @@ index record. */
void
row_build_row_ref_from_row(
/*=======================*/
dtuple_t* ref, /* in/out: row reference built; see the
NOTE below! ref must have the right number
of fields! */
dict_table_t* table, /* in: table */
dtuple_t* row) /* in: row
NOTE: the data fields in ref will point
directly into data of this row */
dtuple_t* ref, /* in/out: row reference built;
see the NOTE below!
ref must have the right number
of fields! */
const dict_table_t* table, /* in: table */
const dtuple_t* row) /* in: row
NOTE: the data fields in ref will point
directly into data of this row */
{
dict_index_t* clust_index;
ulint ref_len;
ulint i;
const dict_index_t* clust_index;
ulint ref_len;
ulint i;
ut_ad(ref && table && row);
......@@ -614,7 +615,7 @@ row_build_row_ref_from_row(
for (i = 0; i < ref_len; i++) {
const dict_col_t* col;
dict_field_t* field;
const dict_field_t* field;
dfield_t* dfield;
const dfield_t* dfield2;
......
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