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
5831ddcf
Commit
5831ddcf
authored
Jun 09, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Plain Diff
Merge with bug fixes
parents
824ce5f3
97e834e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
sql/sql_class.cc
sql/sql_class.cc
+2
-2
sql/sql_select.cc
sql/sql_select.cc
+14
-3
No files found.
sql/sql_class.cc
View file @
5831ddcf
...
...
@@ -1188,11 +1188,11 @@ void add_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var)
*
(
to
++
)
+=
*
(
from
++
);
/* Handle the not ulong variables. See end of system_status_var */
to_var
->
bytes_received
=
from_var
->
bytes_received
;
to_var
->
bytes_received
+=
from_var
->
bytes_received
;
to_var
->
bytes_sent
+=
from_var
->
bytes_sent
;
to_var
->
rows_read
+=
from_var
->
rows_read
;
to_var
->
rows_sent
+=
from_var
->
rows_sent
;
to_var
->
binlog_bytes_written
=
from_var
->
binlog_bytes_written
;
to_var
->
binlog_bytes_written
+
=
from_var
->
binlog_bytes_written
;
to_var
->
cpu_time
+=
from_var
->
cpu_time
;
to_var
->
busy_time
+=
from_var
->
busy_time
;
}
...
...
sql/sql_select.cc
View file @
5831ddcf
...
...
@@ -11009,10 +11009,21 @@ static bool create_internal_tmp_table(TABLE *table,TMP_TABLE_PARAM *param,
OPTION_BIG_TABLES
)
create_info
.
data_file_length
=
~
(
ulonglong
)
0
;
/*
The logic for choosing the record format:
The STATIC_RECORD format is the fastest one, because it's so simple,
so we use this by default for short rows.
BLOCK_RECORD caches both row and data, so this is generally faster than
DYNAMIC_RECORD. The one exception is when we write to tmp table
(no updates == no sum fields) in which case BLOCK RECORD is slower as
we first write the row, then check for key conflicts and then we have to
delete the row.
*/
if
((
error
=
maria_create
(
share
->
table_name
.
str
,
share
->
reclength
<
64
&&
!
share
->
blob_fields
?
STATIC_RECORD
:
BLOCK_RECORD
,
(
share
->
reclength
<
64
&&
!
share
->
blob_fields
?
STATIC_RECORD
:
!
param
->
sum_func_count
?
DYNAMIC_RECORD
:
BLOCK_RECORD
),
share
->
keys
,
&
keydef
,
(
uint
)
(
param
->
recinfo
-
param
->
start_recinfo
),
param
->
start_recinfo
,
...
...
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