Commit cbf1eb60 authored by Marko Mäkelä's avatar Marko Mäkelä

Non-functional change: Remove bogus const qualifiers

and make some function comments more accurate.
parent 24fcae12
...@@ -953,7 +953,7 @@ btr_cur_ins_lock_and_undo( ...@@ -953,7 +953,7 @@ btr_cur_ins_lock_and_undo(
not zero, the parameters index and thr not zero, the parameters index and thr
should be specified */ should be specified */
btr_cur_t* cursor, /*!< in: cursor on page after which to insert */ btr_cur_t* cursor, /*!< in: cursor on page after which to insert */
const dtuple_t* entry, /*!< in: entry to insert */ dtuple_t* entry, /*!< in/out: entry to insert */
que_thr_t* thr, /*!< in: query thread or NULL */ que_thr_t* thr, /*!< in: query thread or NULL */
mtr_t* mtr, /*!< in/out: mini-transaction */ mtr_t* mtr, /*!< in/out: mini-transaction */
ibool* inherit)/*!< out: TRUE if the inserted new record maybe ibool* inherit)/*!< out: TRUE if the inserted new record maybe
...@@ -3794,7 +3794,7 @@ Stores the fields in big_rec_vec to the tablespace and puts pointers to ...@@ -3794,7 +3794,7 @@ Stores the fields in big_rec_vec to the tablespace and puts pointers to
them in rec. The extern flags in rec will have to be set beforehand. them in rec. The extern flags in rec will have to be set beforehand.
The fields are stored on pages allocated from leaf node The fields are stored on pages allocated from leaf node
file segment of the index tree. file segment of the index tree.
@return DB_SUCCESS or error */ @return DB_SUCCESS or DB_OUT_OF_FILE_SPACE */
UNIV_INTERN UNIV_INTERN
ulint ulint
btr_store_big_rec_extern_fields( btr_store_big_rec_extern_fields(
......
...@@ -520,7 +520,7 @@ Stores the fields in big_rec_vec to the tablespace and puts pointers to ...@@ -520,7 +520,7 @@ Stores the fields in big_rec_vec to the tablespace and puts pointers to
them in rec. The extern flags in rec will have to be set beforehand. them in rec. The extern flags in rec will have to be set beforehand.
The fields are stored on pages allocated from leaf node The fields are stored on pages allocated from leaf node
file segment of the index tree. file segment of the index tree.
@return DB_SUCCESS or error */ @return DB_SUCCESS or DB_OUT_OF_FILE_SPACE */
UNIV_INTERN UNIV_INTERN
ulint ulint
btr_store_big_rec_extern_fields( btr_store_big_rec_extern_fields(
......
...@@ -84,7 +84,7 @@ ulint ...@@ -84,7 +84,7 @@ ulint
row_ins_index_entry( row_ins_index_entry(
/*================*/ /*================*/
dict_index_t* index, /*!< in: index */ dict_index_t* index, /*!< in: index */
dtuple_t* entry, /*!< in: index entry to insert */ dtuple_t* entry, /*!< in/out: index entry to insert */
ulint n_ext, /*!< in: number of externally stored columns */ ulint n_ext, /*!< in: number of externally stored columns */
ibool foreign,/*!< in: TRUE=check foreign key constraints */ ibool foreign,/*!< in: TRUE=check foreign key constraints */
que_thr_t* thr); /*!< in: query thread */ que_thr_t* thr); /*!< in: query thread */
......
...@@ -126,8 +126,8 @@ UNIV_INTERN ...@@ -126,8 +126,8 @@ UNIV_INTERN
void void
row_upd_index_entry_sys_field( row_upd_index_entry_sys_field(
/*==========================*/ /*==========================*/
const dtuple_t* entry, /*!< in: index entry, where the memory buffers dtuple_t* entry, /*!< in/out: index entry, where the memory
for sys fields are already allocated: buffers for sys fields are already allocated:
the function just copies the new values to the function just copies the new values to
them */ them */
dict_index_t* index, /*!< in: clustered index */ dict_index_t* index, /*!< in: clustered index */
......
...@@ -1781,7 +1781,7 @@ ulint ...@@ -1781,7 +1781,7 @@ ulint
row_ins_duplicate_error_in_clust( row_ins_duplicate_error_in_clust(
/*=============================*/ /*=============================*/
btr_cur_t* cursor, /*!< in: B-tree cursor */ btr_cur_t* cursor, /*!< in: B-tree cursor */
dtuple_t* entry, /*!< in: entry to insert */ const dtuple_t* entry, /*!< in: entry to insert */
que_thr_t* thr, /*!< in: query thread */ que_thr_t* thr, /*!< in: query thread */
mtr_t* mtr) /*!< in: mtr */ mtr_t* mtr) /*!< in: mtr */
{ {
...@@ -1977,7 +1977,7 @@ row_ins_index_entry_low( ...@@ -1977,7 +1977,7 @@ row_ins_index_entry_low(
depending on whether we wish optimistic or depending on whether we wish optimistic or
pessimistic descent down the index tree */ pessimistic descent down the index tree */
dict_index_t* index, /*!< in: index */ dict_index_t* index, /*!< in: index */
dtuple_t* entry, /*!< in: index entry to insert */ dtuple_t* entry, /*!< in/out: index entry to insert */
ulint n_ext, /*!< in: number of externally stored columns */ ulint n_ext, /*!< in: number of externally stored columns */
que_thr_t* thr) /*!< in: query thread */ que_thr_t* thr) /*!< in: query thread */
{ {
...@@ -2158,7 +2158,7 @@ ulint ...@@ -2158,7 +2158,7 @@ ulint
row_ins_index_entry( row_ins_index_entry(
/*================*/ /*================*/
dict_index_t* index, /*!< in: index */ dict_index_t* index, /*!< in: index */
dtuple_t* entry, /*!< in: index entry to insert */ dtuple_t* entry, /*!< in/out: index entry to insert */
ulint n_ext, /*!< in: number of externally stored columns */ ulint n_ext, /*!< in: number of externally stored columns */
ibool foreign,/*!< in: TRUE=check foreign key constraints */ ibool foreign,/*!< in: TRUE=check foreign key constraints */
que_thr_t* thr) /*!< in: query thread */ que_thr_t* thr) /*!< in: query thread */
......
...@@ -371,8 +371,8 @@ UNIV_INTERN ...@@ -371,8 +371,8 @@ UNIV_INTERN
void void
row_upd_index_entry_sys_field( row_upd_index_entry_sys_field(
/*==========================*/ /*==========================*/
const dtuple_t* entry, /*!< in: index entry, where the memory buffers dtuple_t* entry, /*!< in/out: index entry, where the memory
for sys fields are already allocated: buffers for sys fields are already allocated:
the function just copies the new values to the function just copies the new values to
them */ them */
dict_index_t* index, /*!< in: clustered index */ dict_index_t* index, /*!< in: clustered index */
...@@ -1587,12 +1587,12 @@ static ...@@ -1587,12 +1587,12 @@ static
ulint ulint
row_upd_clust_rec_by_insert( row_upd_clust_rec_by_insert(
/*========================*/ /*========================*/
upd_node_t* node, /*!< in: row update node */ upd_node_t* node, /*!< in/out: row update node */
dict_index_t* index, /*!< in: clustered index of the record */ dict_index_t* index, /*!< in: clustered index of the record */
que_thr_t* thr, /*!< in: query thread */ que_thr_t* thr, /*!< in: query thread */
ibool check_ref,/*!< in: TRUE if index may be referenced in ibool check_ref,/*!< in: TRUE if index may be referenced in
a foreign key constraint */ a foreign key constraint */
mtr_t* mtr) /*!< in: mtr; gets committed here */ mtr_t* mtr) /*!< in/out: mtr; gets committed here */
{ {
mem_heap_t* heap = NULL; mem_heap_t* heap = NULL;
btr_pcur_t* pcur; btr_pcur_t* pcur;
......
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