Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
061b72f1
Commit
061b72f1
authored
Aug 20, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Add const qualifiers to the upd_t* parameters of some functions.
parent
12ed008d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
17 deletions
+19
-17
btr/btr0cur.c
btr/btr0cur.c
+2
-2
include/btr0cur.h
include/btr0cur.h
+2
-2
include/row0upd.h
include/row0upd.h
+6
-5
row/row0upd.c
row/row0upd.c
+9
-8
No files found.
btr/btr0cur.c
View file @
061b72f1
...
...
@@ -2043,7 +2043,7 @@ btr_cur_pessimistic_update(
mem_heap_t
**
heap
,
/* in/out: pointer to memory heap, or NULL */
big_rec_t
**
big_rec
,
/* out: big rec vector whose fields have to
be stored externally by the caller, or NULL */
upd_t
*
update
,
/* in: update vector; this is allowed also
const
upd_t
*
update
,
/* in: update vector; this is allowed also
contain trx id and roll ptr fields, but
the values in update vector have no effect */
ulint
cmpl_info
,
/* in: compiler info on secondary index
...
...
@@ -3400,7 +3400,7 @@ btr_cur_mark_extern_inherited_fields(
rec_t
*
rec
,
/* in/out: record in a clustered index */
dict_index_t
*
index
,
/* in: index of the page */
const
ulint
*
offsets
,
/* in: array returned by rec_get_offsets() */
upd_t
*
update
,
/* in: update vector */
const
upd_t
*
update
,
/* in: update vector */
mtr_t
*
mtr
)
/* in: mtr, or NULL if not logged */
{
ulint
n
;
...
...
include/btr0cur.h
View file @
061b72f1
...
...
@@ -269,7 +269,7 @@ btr_cur_pessimistic_update(
mem_heap_t
**
heap
,
/* in/out: pointer to memory heap, or NULL */
big_rec_t
**
big_rec
,
/* out: big rec vector whose fields have to
be stored externally by the caller, or NULL */
upd_t
*
update
,
/* in: update vector; this is allowed also
const
upd_t
*
update
,
/* in: update vector; this is allowed also
contain trx id and roll ptr fields, but
the values in update vector have no effect */
ulint
cmpl_info
,
/* in: compiler info on secondary index
...
...
@@ -444,7 +444,7 @@ btr_cur_mark_extern_inherited_fields(
rec_t
*
rec
,
/* in/out: record in a clustered index */
dict_index_t
*
index
,
/* in: index of the page */
const
ulint
*
offsets
,
/* in: array returned by rec_get_offsets() */
upd_t
*
update
,
/* in: update vector */
const
upd_t
*
update
,
/* in: update vector */
mtr_t
*
mtr
);
/* in: mtr, or NULL if not logged */
/***********************************************************************
The complement of the previous function: in an update entry may inherit
...
...
include/row0upd.h
View file @
061b72f1
...
...
@@ -208,7 +208,7 @@ row_upd_index_replace_new_col_vals(
dtuple_t
*
entry
,
/* in/out: index entry where replaced */
dict_index_t
*
index
,
/* in: index; NOTE that this may also be a
non-clustered index */
upd_t
*
update
,
/* in: an update vector built for the
const
upd_t
*
update
,
/* in: an update vector built for the
CLUSTERED index so that the field number in
an upd_field is the clustered index position */
mem_heap_t
*
heap
);
/* in: memory heap to which we allocate and
...
...
@@ -244,10 +244,11 @@ NOTE: we compare the fields as binary strings! */
ibool
row_upd_changes_some_index_ord_field_binary
(
/*========================================*/
/* out: TRUE if update vector may change
an ordering field in an index record */
dict_table_t
*
table
,
/* in: table */
upd_t
*
update
);
/* in: update vector for the row */
/* out: TRUE if update vector
may change an ordering field
in an index record */
const
dict_table_t
*
table
,
/* in: table */
const
upd_t
*
update
);
/* in: update vector for the row */
/***************************************************************
Updates a row in a table. This is a high-level function used
in SQL execution graphs. */
...
...
row/row0upd.c
View file @
061b72f1
...
...
@@ -84,7 +84,7 @@ row_upd_changes_first_fields_binary(
/* out: TRUE if changes */
dtuple_t
*
entry
,
/* in: old value of index entry */
dict_index_t
*
index
,
/* in: index of entry */
upd_t
*
update
,
/* in: update vector for the row */
const
upd_t
*
update
,
/* in: update vector for the row */
ulint
n
);
/* in: how many first fields to check */
...
...
@@ -925,7 +925,7 @@ row_upd_index_replace_new_col_vals(
dtuple_t
*
entry
,
/* in/out: index entry where replaced */
dict_index_t
*
index
,
/* in: index; NOTE that this may also be a
non-clustered index */
upd_t
*
update
,
/* in: an update vector built for the
const
upd_t
*
update
,
/* in: an update vector built for the
CLUSTERED index so that the field number in
an upd_field is the clustered index position */
mem_heap_t
*
heap
)
/* in: memory heap to which we allocate and
...
...
@@ -1068,10 +1068,11 @@ NOTE: we compare the fields as binary strings! */
ibool
row_upd_changes_some_index_ord_field_binary
(
/*========================================*/
/* out: TRUE if update vector may change
an ordering field in an index record */
dict_table_t
*
table
,
/* in: table */
upd_t
*
update
)
/* in: update vector for the row */
/* out: TRUE if update vector
may change an ordering field
in an index record */
const
dict_table_t
*
table
,
/* in: table */
const
upd_t
*
update
)
/* in: update vector for the row */
{
upd_field_t
*
upd_field
;
dict_index_t
*
index
;
...
...
@@ -1105,7 +1106,7 @@ row_upd_changes_first_fields_binary(
/* out: TRUE if changes */
dtuple_t
*
entry
,
/* in: index entry */
dict_index_t
*
index
,
/* in: index of entry */
upd_t
*
update
,
/* in: update vector for the row */
const
upd_t
*
update
,
/* in: update vector for the row */
ulint
n
)
/* in: how many first fields to check */
{
ulint
n_upd_fields
;
...
...
@@ -1182,7 +1183,7 @@ UNIV_INLINE
void
row_upd_eval_new_vals
(
/*==================*/
upd_t
*
update
)
/* in: update vector */
upd_t
*
update
)
/* in
/out
: update vector */
{
que_node_t
*
exp
;
upd_field_t
*
upd_field
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment