mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
branches/zip: row0ins.c: Add const qualifiers to function parameters.
This commit is contained in:
parent
ae100c0f15
commit
49e0b1512e
1 changed files with 8 additions and 8 deletions
|
@ -228,7 +228,7 @@ row_ins_sec_index_entry_by_modify(
|
||||||
depending on whether mtr holds just a leaf
|
depending on whether mtr holds just a leaf
|
||||||
latch or also a tree latch */
|
latch or also a tree latch */
|
||||||
btr_cur_t* cursor, /* in: B-tree cursor */
|
btr_cur_t* cursor, /* in: B-tree cursor */
|
||||||
dtuple_t* entry, /* in: index entry to insert */
|
const dtuple_t* entry, /* in: index 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 */
|
||||||
{
|
{
|
||||||
|
@ -300,8 +300,8 @@ row_ins_clust_index_entry_by_modify(
|
||||||
big_rec_t** big_rec,/* out: possible big rec vector of fields
|
big_rec_t** big_rec,/* out: possible big rec vector of fields
|
||||||
which have to be stored externally by the
|
which have to be stored externally by the
|
||||||
caller */
|
caller */
|
||||||
dtuple_t* entry, /* in: index entry to insert */
|
const dtuple_t* entry, /* in: index entry to insert */
|
||||||
ulint* ext_vec,/* in: array containing field numbers of
|
const ulint* ext_vec,/* in: array containing field numbers of
|
||||||
externally stored fields in entry, or NULL */
|
externally stored fields in entry, or NULL */
|
||||||
ulint n_ext_vec,/* in: number of fields in ext_vec */
|
ulint n_ext_vec,/* in: number of fields in ext_vec */
|
||||||
que_thr_t* thr, /* in: query thread */
|
que_thr_t* thr, /* in: query thread */
|
||||||
|
@ -632,9 +632,9 @@ row_ins_foreign_report_err(
|
||||||
que_thr_t* thr, /* in: query thread whose run_node
|
que_thr_t* thr, /* in: query thread whose run_node
|
||||||
is an update node */
|
is an update node */
|
||||||
dict_foreign_t* foreign, /* in: foreign key constraint */
|
dict_foreign_t* foreign, /* in: foreign key constraint */
|
||||||
rec_t* rec, /* in: a matching index record in the
|
const rec_t* rec, /* in: a matching index record in the
|
||||||
child table */
|
child table */
|
||||||
dtuple_t* entry) /* in: index entry in the parent
|
const dtuple_t* entry) /* in: index entry in the parent
|
||||||
table */
|
table */
|
||||||
{
|
{
|
||||||
FILE* ef = dict_foreign_err_file;
|
FILE* ef = dict_foreign_err_file;
|
||||||
|
@ -686,10 +686,10 @@ row_ins_foreign_report_add_err(
|
||||||
/*===========================*/
|
/*===========================*/
|
||||||
trx_t* trx, /* in: transaction */
|
trx_t* trx, /* in: transaction */
|
||||||
dict_foreign_t* foreign, /* in: foreign key constraint */
|
dict_foreign_t* foreign, /* in: foreign key constraint */
|
||||||
rec_t* rec, /* in: a record in the parent table:
|
const rec_t* rec, /* in: a record in the parent table:
|
||||||
it does not match entry because we
|
it does not match entry because we
|
||||||
have an error! */
|
have an error! */
|
||||||
dtuple_t* entry) /* in: index entry to insert in the
|
const dtuple_t* entry) /* in: index entry to insert in the
|
||||||
child table */
|
child table */
|
||||||
{
|
{
|
||||||
FILE* ef = dict_foreign_err_file;
|
FILE* ef = dict_foreign_err_file;
|
||||||
|
@ -721,7 +721,7 @@ row_ins_foreign_report_add_err(
|
||||||
/* If the cursor ended on a supremum record, it is better
|
/* If the cursor ended on a supremum record, it is better
|
||||||
to report the previous record in the error message, so that
|
to report the previous record in the error message, so that
|
||||||
the user gets a more descriptive error message. */
|
the user gets a more descriptive error message. */
|
||||||
rec = page_rec_get_prev(rec);
|
rec = page_rec_get_prev((rec_t*) rec);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rec) {
|
if (rec) {
|
||||||
|
|
Loading…
Reference in a new issue