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
dd283b75
Commit
dd283b75
authored
Jul 15, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#263 enable bulk fetch for insert select sql commands
parent
0430a965
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+2
-5
No files found.
storage/tokudb/ha_tokudb.cc
View file @
dd283b75
...
@@ -4395,7 +4395,7 @@ int ha_tokudb::prepare_index_key_scan(const uchar * key, uint key_len) {
...
@@ -4395,7 +4395,7 @@ int ha_tokudb::prepare_index_key_scan(const uchar * key, uint key_len) {
range_lock_grabbed
=
true
;
range_lock_grabbed
=
true
;
range_lock_grabbed_null
=
index_key_is_null
(
table
,
tokudb_active_index
,
key
,
key_len
);
range_lock_grabbed_null
=
index_key_is_null
(
table
,
tokudb_active_index
,
key
,
key_len
);
doing_bulk_fetch
=
thd_sql_command
(
thd
)
==
SQLCOM_SELECT
||
thd_sql_command
(
thd
)
==
SQLCOM_CREATE_TABLE
;
doing_bulk_fetch
=
thd_sql_command
(
thd
)
==
SQLCOM_SELECT
||
thd_sql_command
(
thd
)
==
SQLCOM_CREATE_TABLE
||
thd_sql_command
(
thd
)
==
SQLCOM_INSERT_SELECT
;
bulk_fetch_iteration
=
0
;
bulk_fetch_iteration
=
0
;
rows_fetched_using_bulk_fetch
=
0
;
rows_fetched_using_bulk_fetch
=
0
;
error
=
0
;
error
=
0
;
...
@@ -5694,11 +5694,8 @@ int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_k
...
@@ -5694,11 +5694,8 @@ int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_k
goto
cleanup
;
goto
cleanup
;
}
}
//
// at this point, determine if we will be doing bulk fetch
// at this point, determine if we will be doing bulk fetch
// as of now, only do it if we are doing a select
doing_bulk_fetch
=
thd_sql_command
(
thd
)
==
SQLCOM_SELECT
||
thd_sql_command
(
thd
)
==
SQLCOM_CREATE_TABLE
||
thd_sql_command
(
thd
)
==
SQLCOM_INSERT_SELECT
;
//
doing_bulk_fetch
=
thd_sql_command
(
thd
)
==
SQLCOM_SELECT
||
thd_sql_command
(
thd
)
==
SQLCOM_CREATE_TABLE
;
bulk_fetch_iteration
=
0
;
bulk_fetch_iteration
=
0
;
rows_fetched_using_bulk_fetch
=
0
;
rows_fetched_using_bulk_fetch
=
0
;
...
...
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