diff --git a/storage/innobase/include/row0row.h b/storage/innobase/include/row0row.h index 1f37a6b02d7..3f8d0e9b254 100644 --- a/storage/innobase/include/row0row.h +++ b/storage/innobase/include/row0row.h @@ -90,8 +90,8 @@ row_build_index_entry_low( inserted or purged */ const row_ext_t* ext, /*!< in: externally stored column prefixes, or NULL */ - dict_index_t* index, /*!< in: index on the table */ - mem_heap_t* heap, /*!< in: memory heap from which + const dict_index_t* index, /*!< in: index on the table */ + mem_heap_t* heap, /*!< in,out: memory heap from which the memory for the index entry is allocated */ ulint flag) /*!< in: ROW_BUILD_NORMAL, @@ -112,8 +112,8 @@ row_build_index_entry( inserted or purged */ const row_ext_t* ext, /*!< in: externally stored column prefixes, or NULL */ - dict_index_t* index, /*!< in: index on the table */ - mem_heap_t* heap) /*!< in: memory heap from which + const dict_index_t* index, /*!< in: index on the table */ + mem_heap_t* heap) /*!< in,out: memory heap from which the memory for the index entry is allocated */ MY_ATTRIBUTE((warn_unused_result, nonnull(1,3,4))); diff --git a/storage/innobase/include/row0row.ic b/storage/innobase/include/row0row.ic index a7c0f2551b5..e1a3b5f6a1a 100644 --- a/storage/innobase/include/row0row.ic +++ b/storage/innobase/include/row0row.ic @@ -119,8 +119,8 @@ row_build_index_entry( inserted or purged */ const row_ext_t* ext, /*!< in: externally stored column prefixes, or NULL */ - dict_index_t* index, /*!< in: index on the table */ - mem_heap_t* heap) /*!< in: memory heap from which + const dict_index_t* index, /*!< in: index on the table */ + mem_heap_t* heap) /*!< in,out: memory heap from which the memory for the index entry is allocated */ { diff --git a/storage/innobase/row/row0row.cc b/storage/innobase/row/row0row.cc index ffd8f48503d..8cd215d8902 100644 --- a/storage/innobase/row/row0row.cc +++ b/storage/innobase/row/row0row.cc @@ -57,7 +57,7 @@ Created 4/20/1996 Heikki Tuuri of the field entry is allocated. @retval false if undo log is logged before spatial index creation. */ static bool row_build_spatial_index_key( - dict_index_t* index, + const dict_index_t* index, const row_ext_t* ext, dfield_t* dfield, const dfield_t* dfield2, @@ -189,8 +189,8 @@ row_build_index_entry_low( inserted or purged */ const row_ext_t* ext, /*!< in: externally stored column prefixes, or NULL */ - dict_index_t* index, /*!< in: index on the table */ - mem_heap_t* heap, /*!< in: memory heap from which + const dict_index_t* index, /*!< in: index on the table */ + mem_heap_t* heap, /*!< in,out: memory heap from which the memory for the index entry is allocated */ ulint flag) /*!< in: ROW_BUILD_NORMAL,