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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e0ae86ce
Commit
e0ae86ce
authored
Sep 28, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the unused parameter order_only=FALSE from row_upd_index_replace_new_col_vals_index_pos()
parent
22d96965
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
50 deletions
+26
-50
storage/innobase/btr/btr0cur.cc
storage/innobase/btr/btr0cur.cc
+2
-2
storage/innobase/include/row0upd.h
storage/innobase/include/row0upd.h
+12
-20
storage/innobase/row/row0upd.cc
storage/innobase/row/row0upd.cc
+12
-28
No files found.
storage/innobase/btr/btr0cur.cc
View file @
e0ae86ce
...
...
@@ -3996,7 +3996,7 @@ btr_cur_optimistic_update(
corresponding to new_entry is latched in mtr.
Thus the following call is safe. */
row_upd_index_replace_new_col_vals_index_pos
(
new_entry
,
index
,
update
,
FALSE
,
*
heap
);
*
heap
);
old_rec_size
=
rec_offs_size
(
*
offsets
);
new_rec_size
=
rec_get_converted_size
(
index
,
new_entry
,
0
);
...
...
@@ -4321,7 +4321,7 @@ btr_cur_pessimistic_update(
purge would also have removed the clustered index record
itself. Thus the following call is safe. */
row_upd_index_replace_new_col_vals_index_pos
(
new_entry
,
index
,
update
,
FALSE
,
entry_heap
);
entry_heap
);
/* We have to set appropriate extern storage bits in the new
record to be inserted: we have to remember which fields were such */
...
...
storage/innobase/include/row0upd.h
View file @
e0ae86ce
/*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -26,7 +27,6 @@ Created 12/27/1996 Heikki Tuuri
#ifndef row0upd_h
#define row0upd_h
#include "univ.i"
#include "data0data.h"
#include "row0types.h"
#include "btr0types.h"
...
...
@@ -245,27 +245,19 @@ row_upd_build_difference_binary(
mem_heap_t
*
heap
,
TABLE
*
mysql_table
)
MY_ATTRIBUTE
((
nonnull
(
1
,
2
,
3
,
7
),
warn_unused_result
));
/***********************************************************//**
Replaces the new column values stored in the update vector to the index entry
given. */
/** Apply an update vector to an index entry.
@param[in,out] entry index entry to be updated; the clustered index record
must be covered by a lock or a page latch to prevent
deletion (rollback or purge)
@param[in] index index of the entry
@param[in] update update vector built for the entry
@param[in,out] heap memory heap for copying off-page columns */
void
row_upd_index_replace_new_col_vals_index_pos
(
/*=========================================*/
dtuple_t
*
entry
,
/*!< in/out: index entry where replaced;
the clustered index record must be
covered by a lock or a page latch to
prevent deletion (rollback or purge) */
dict_index_t
*
index
,
/*!< in: index; NOTE that this may also be a
non-clustered index */
const
upd_t
*
update
,
/*!< in: an update vector built for the index so
that the field number in an upd_field is the
index position */
ibool
order_only
,
/*!< in: if TRUE, limit the replacement to
ordering fields of index; note that this
does not work for non-clustered indexes. */
mem_heap_t
*
heap
)
/*!< in: memory heap for allocating and
copying the new values */
dtuple_t
*
entry
,
const
dict_index_t
*
index
,
const
upd_t
*
update
,
mem_heap_t
*
heap
)
MY_ATTRIBUTE
((
nonnull
));
/***********************************************************//**
Replaces the new column values stored in the update vector to the index entry
...
...
storage/innobase/row/row0upd.cc
View file @
e0ae86ce
...
...
@@ -1323,41 +1323,25 @@ row_upd_index_replace_new_col_val(
}
}
/***********************************************************//**
Replaces the new column values stored in the update vector to the index entry
given. */
/** Apply an update vector to an index entry.
@param[in,out] entry index entry to be updated; the clustered index record
must be covered by a lock or a page latch to prevent
deletion (rollback or purge)
@param[in] index index of the entry
@param[in] update update vector built for the entry
@param[in,out] heap memory heap for copying off-page columns */
void
row_upd_index_replace_new_col_vals_index_pos
(
/*=========================================*/
dtuple_t
*
entry
,
/*!< in/out: index entry where replaced;
the clustered index record must be
covered by a lock or a page latch to
prevent deletion (rollback or purge) */
dict_index_t
*
index
,
/*!< in: index; NOTE that this may also be a
non-clustered index */
const
upd_t
*
update
,
/*!< in: an update vector built for the index so
that the field number in an upd_field is the
index position */
ibool
order_only
,
/*!< in: if TRUE, limit the replacement to
ordering fields of index; note that this
does not work for non-clustered indexes. */
mem_heap_t
*
heap
)
/*!< in: memory heap for allocating and
copying the new values */
dtuple_t
*
entry
,
const
dict_index_t
*
index
,
const
upd_t
*
update
,
mem_heap_t
*
heap
)
{
ulint
i
;
ulint
n_fields
;
const
page_size_t
&
page_size
=
dict_table_page_size
(
index
->
table
);
dtuple_set_info_bits
(
entry
,
update
->
info_bits
);
if
(
order_only
)
{
n_fields
=
dict_index_get_n_unique
(
index
);
}
else
{
n_fields
=
dict_index_get_n_fields
(
index
);
}
for
(
i
=
0
;
i
<
n_fields
;
i
++
)
{
for
(
unsigned
i
=
index
->
n_fields
;
i
--
;
)
{
const
dict_field_t
*
field
;
const
dict_col_t
*
col
;
const
upd_field_t
*
uf
;
...
...
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