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
31e794bc
Commit
31e794bc
authored
Aug 09, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0 into 10.1
parents
535910ae
cb9648a6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
36 deletions
+7
-36
storage/innobase/api/api0api.cc
storage/innobase/api/api0api.cc
+4
-17
storage/innobase/include/row0mysql.h
storage/innobase/include/row0mysql.h
+1
-6
storage/innobase/row/row0sel.cc
storage/innobase/row/row0sel.cc
+2
-13
No files found.
storage/innobase/api/api0api.cc
View file @
31e794bc
/*****************************************************************************
/*****************************************************************************
Copyright (c) 2008, 201
7
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, 201
5
, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
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
the terms of the GNU General Public License as published by the Free Software
...
@@ -1988,14 +1988,11 @@ ib_cursor_read_row(
...
@@ -1988,14 +1988,11 @@ ib_cursor_read_row(
page_format
=
static_cast
<
ib_bool_t
>
(
page_format
=
static_cast
<
ib_bool_t
>
(
dict_table_is_comp
(
tuple
->
index
->
table
));
dict_table_is_comp
(
tuple
->
index
->
table
));
rec
=
btr_pcur_get_rec
(
pcur
);
rec
=
btr_pcur_get_rec
(
pcur
);
if
(
!
rec_get_deleted_flag
(
rec
,
page_format
))
{
if
(
prebuilt
->
innodb_api_rec
&&
if
(
prebuilt
->
innodb_api
&&
prebuilt
->
innodb_api_rec
!=
rec
)
{
prebuilt
->
innodb_api_rec
!=
NULL
)
{
rec
=
prebuilt
->
innodb_api_rec
;
rec
=
prebuilt
->
innodb_api_rec
;
}
}
}
if
(
!
rec_get_deleted_flag
(
rec
,
page_format
))
{
if
(
!
rec_get_deleted_flag
(
rec
,
page_format
))
{
...
@@ -2032,10 +2029,6 @@ ib_cursor_position(
...
@@ -2032,10 +2029,6 @@ ib_cursor_position(
buf
=
static_cast
<
unsigned
char
*>
(
mem_alloc
(
UNIV_PAGE_SIZE
));
buf
=
static_cast
<
unsigned
char
*>
(
mem_alloc
(
UNIV_PAGE_SIZE
));
if
(
prebuilt
->
innodb_api
)
{
prebuilt
->
cursor_heap
=
cursor
->
heap
;
}
/* We want to position at one of the ends, row_search_for_mysql()
/* We want to position at one of the ends, row_search_for_mysql()
uses the search_tuple fields to work out what to do. */
uses the search_tuple fields to work out what to do. */
dtuple_set_n_fields
(
prebuilt
->
search_tuple
,
0
);
dtuple_set_n_fields
(
prebuilt
->
search_tuple
,
0
);
...
@@ -2090,9 +2083,6 @@ ib_cursor_next(
...
@@ -2090,9 +2083,6 @@ ib_cursor_next(
row_prebuilt_t
*
prebuilt
=
cursor
->
prebuilt
;
row_prebuilt_t
*
prebuilt
=
cursor
->
prebuilt
;
byte
buf
[
UNIV_PAGE_SIZE_MAX
];
byte
buf
[
UNIV_PAGE_SIZE_MAX
];
if
(
prebuilt
->
innodb_api
)
{
prebuilt
->
cursor_heap
=
cursor
->
heap
;
}
/* We want to move to the next record */
/* We want to move to the next record */
dtuple_set_n_fields
(
prebuilt
->
search_tuple
,
0
);
dtuple_set_n_fields
(
prebuilt
->
search_tuple
,
0
);
...
@@ -2145,9 +2135,6 @@ ib_cursor_moveto(
...
@@ -2145,9 +2135,6 @@ ib_cursor_moveto(
buf
=
static_cast
<
unsigned
char
*>
(
mem_alloc
(
UNIV_PAGE_SIZE
));
buf
=
static_cast
<
unsigned
char
*>
(
mem_alloc
(
UNIV_PAGE_SIZE
));
if
(
prebuilt
->
innodb_api
)
{
prebuilt
->
cursor_heap
=
cursor
->
heap
;
}
err
=
static_cast
<
ib_err_t
>
(
row_search_for_mysql
(
err
=
static_cast
<
ib_err_t
>
(
row_search_for_mysql
(
buf
,
ib_srch_mode
,
prebuilt
,
cursor
->
match_mode
,
0
));
buf
,
ib_srch_mode
,
prebuilt
,
cursor
->
match_mode
,
0
));
...
...
storage/innobase/include/row0mysql.h
View file @
31e794bc
/*****************************************************************************
/*****************************************************************************
Copyright (c) 2000, 201
7
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2000, 201
6
, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
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
the terms of the GNU General Public License as published by the Free Software
...
@@ -735,8 +735,6 @@ struct row_prebuilt_t {
...
@@ -735,8 +735,6 @@ struct row_prebuilt_t {
mem_heap_t
*
heap
;
/*!< memory heap from which
mem_heap_t
*
heap
;
/*!< memory heap from which
these auxiliary structures are
these auxiliary structures are
allocated when needed */
allocated when needed */
mem_heap_t
*
cursor_heap
;
/*!< memory heap from which
innodb_api_buf is allocated per session*/
ins_node_t
*
ins_node
;
/*!< Innobase SQL insert node
ins_node_t
*
ins_node
;
/*!< Innobase SQL insert node
used to perform inserts
used to perform inserts
to the table */
to the table */
...
@@ -887,9 +885,6 @@ struct row_prebuilt_t {
...
@@ -887,9 +885,6 @@ struct row_prebuilt_t {
unsigned
innodb_api
:
1
;
/*!< whether this is a InnoDB API
unsigned
innodb_api
:
1
;
/*!< whether this is a InnoDB API
query */
query */
const
rec_t
*
innodb_api_rec
;
/*!< InnoDB API search result */
const
rec_t
*
innodb_api_rec
;
/*!< InnoDB API search result */
void
*
innodb_api_buf
;
/*!< Buffer holding copy of the physical
Innodb API search record */
ulint
innodb_api_rec_size
;
/*!< Size of the Innodb API record */
byte
*
srch_key_val1
;
/*!< buffer used in converting
byte
*
srch_key_val1
;
/*!< buffer used in converting
search key values from MySQL format
search key values from MySQL format
to InnoDB format.*/
to InnoDB format.*/
...
...
storage/innobase/row/row0sel.cc
View file @
31e794bc
...
@@ -5096,19 +5096,8 @@ row_search_for_mysql(
...
@@ -5096,19 +5096,8 @@ row_search_for_mysql(
btr_pcur_store_position
(
pcur
,
&
mtr
);
btr_pcur_store_position
(
pcur
,
&
mtr
);
if
(
prebuilt
->
innodb_api
if
(
prebuilt
->
innodb_api
)
{
&&
(
btr_pcur_get_rec
(
pcur
)
!=
result_rec
))
{
prebuilt
->
innodb_api_rec
=
result_rec
;
ulint
rec_size
=
rec_offs_size
(
offsets
);
if
(
!
prebuilt
->
innodb_api_rec_size
||
(
prebuilt
->
innodb_api_rec_size
<
rec_size
))
{
prebuilt
->
innodb_api_buf
=
static_cast
<
byte
*>
(
mem_heap_alloc
(
prebuilt
->
cursor_heap
,
rec_size
));
prebuilt
->
innodb_api_rec_size
=
rec_size
;
}
prebuilt
->
innodb_api_rec
=
rec_copy
(
prebuilt
->
innodb_api_buf
,
result_rec
,
offsets
);
}
}
}
}
...
...
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