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
a1d42a6f
Commit
a1d42a6f
authored
Apr 11, 2017
by
kevg
Committed by
Aleksey Midenkov
May 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc: code cleanup
parent
06ad9c01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
sql/sql_update.cc
sql/sql_update.cc
+2
-1
storage/innobase/vers/vers0vtq.cc
storage/innobase/vers/vers0vtq.cc
+7
-2
No files found.
sql/sql_update.cc
View file @
a1d42a6f
...
@@ -366,7 +366,8 @@ int mysql_update(THD *thd,
...
@@ -366,7 +366,8 @@ int mysql_update(THD *thd,
{
{
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
bool
has_vers_fields
=
check_has_vers_fields
(
fields
);
bool
has_vers_fields
=
table
->
versioned
()
?
check_has_vers_fields
(
fields
)
:
false
;
if
(
check_key_in_view
(
thd
,
table_list
))
if
(
check_key_in_view
(
thd
,
table_list
))
{
{
my_error
(
ER_NON_UPDATABLE_TABLE
,
MYF
(
0
),
table_list
->
alias
,
"UPDATE"
);
my_error
(
ER_NON_UPDATABLE_TABLE
,
MYF
(
0
),
table_list
->
alias
,
"UPDATE"
);
...
...
storage/innobase/vers/vers0vtq.cc
View file @
a1d42a6f
...
@@ -243,8 +243,13 @@ read_trx_id(const rec_t *rec) {
...
@@ -243,8 +243,13 @@ read_trx_id(const rec_t *rec) {
*/
*/
static
static
void
void
find_best_match
(
mtr_t
&
mtr
,
btr_pcur_t
&
pcur
,
bool
backwards
,
find_best_match
(
timeval
commit_ts
,
const
rec_t
*
rec
)
{
mtr_t
&
mtr
,
btr_pcur_t
&
pcur
,
bool
backwards
,
timeval
commit_ts
,
const
rec_t
*
rec
)
{
btr_pcur_t
best
;
btr_pcur_t
best
;
btr_pcur_init
(
&
best
);
btr_pcur_init
(
&
best
);
btr_pcur_copy_stored_position
(
&
best
,
&
pcur
);
btr_pcur_copy_stored_position
(
&
best
,
&
pcur
);
...
...
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