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
7a387c01
Commit
7a387c01
authored
Mar 26, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table->keep_row_order no longer need to force DYNAMIC_RECORD
for temporary Aria tables. It can use a faster BLOCK_RECORD
parent
5d8dbee9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
sql/sql_select.cc
sql/sql_select.cc
+3
-8
No files found.
sql/sql_select.cc
View file @
7a387c01
...
...
@@ -16979,20 +16979,15 @@ bool create_internal_tmp_table(TABLE *table, KEY *keyinfo,
{
enum
data_file_type
file_type
=
table
->
no_rows
?
NO_RECORD
:
(
share
->
reclength
<
64
&&
!
share
->
blob_fields
?
STATIC_RECORD
:
table
->
used_for_duplicate_elimination
||
table
->
keep_row_order
?
DYNAMIC_RECORD
:
BLOCK_RECORD
);
uint
create_flags
=
HA_CREATE_TMP_TABLE
|
HA_CREATE_INTERNAL_TABLE
;
table
->
used_for_duplicate_elimination
?
DYNAMIC_RECORD
:
BLOCK_RECORD
);
uint
create_flags
=
HA_CREATE_TMP_TABLE
|
HA_CREATE_INTERNAL_TABLE
|
(
table
->
keep_row_order
?
HA_PRESERVE_INSERT_ORDER
:
0
)
;
if
(
file_type
!=
NO_RECORD
&&
encrypt_tmp_disk_tables
)
{
/* encryption is only supported for BLOCK_RECORD */
file_type
=
BLOCK_RECORD
;
create_flags
|=
HA_CREATE_ENCRYPTED
;
if
(
table
->
keep_row_order
)
{
create_flags
|=
HA_PRESERVE_INSERT_ORDER
;
}
if
(
table
->
used_for_duplicate_elimination
)
{
/*
...
...
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