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
b16b461d
Commit
b16b461d
authored
Aug 14, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-506 add a session variable to enable/disable bulk fetch default enabled
parent
f011f45b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+1
-1
storage/tokudb/hatoku_hton.cc
storage/tokudb/hatoku_hton.cc
+1
-0
storage/tokudb/hatoku_hton.h
storage/tokudb/hatoku_hton.h
+2
-0
No files found.
storage/tokudb/ha_tokudb.cc
View file @
b16b461d
...
@@ -4370,7 +4370,7 @@ static bool tokudb_do_bulk_fetch(THD *thd) {
...
@@ -4370,7 +4370,7 @@ static bool tokudb_do_bulk_fetch(THD *thd) {
case
SQLCOM_CREATE_TABLE
:
case
SQLCOM_CREATE_TABLE
:
case
SQLCOM_INSERT_SELECT
:
case
SQLCOM_INSERT_SELECT
:
case
SQLCOM_REPLACE_SELECT
:
case
SQLCOM_REPLACE_SELECT
:
return
true
;
return
THDVAR
(
thd
,
bulk_fetch
)
!=
0
;
default:
default:
return
false
;
return
false
;
}
}
...
...
storage/tokudb/hatoku_hton.cc
View file @
b16b461d
...
@@ -1428,6 +1428,7 @@ static struct st_mysql_sys_var *tokudb_system_variables[] = {
...
@@ -1428,6 +1428,7 @@ static struct st_mysql_sys_var *tokudb_system_variables[] = {
#if TOKUDB_CHECK_JEMALLOC
#if TOKUDB_CHECK_JEMALLOC
MYSQL_SYSVAR
(
check_jemalloc
),
MYSQL_SYSVAR
(
check_jemalloc
),
#endif
#endif
MYSQL_SYSVAR
(
bulk_fetch
),
NULL
NULL
};
};
...
...
storage/tokudb/hatoku_hton.h
View file @
b16b461d
...
@@ -515,6 +515,8 @@ static uint tokudb_check_jemalloc;
...
@@ -515,6 +515,8 @@ static uint tokudb_check_jemalloc;
static
MYSQL_SYSVAR_UINT
(
check_jemalloc
,
tokudb_check_jemalloc
,
0
,
"Check if jemalloc is linked"
,
NULL
,
NULL
,
1
,
0
,
1
,
0
);
static
MYSQL_SYSVAR_UINT
(
check_jemalloc
,
tokudb_check_jemalloc
,
0
,
"Check if jemalloc is linked"
,
NULL
,
NULL
,
1
,
0
,
1
,
0
);
#endif
#endif
static
MYSQL_THDVAR_BOOL
(
bulk_fetch
,
PLUGIN_VAR_THDLOCAL
,
"enable bulk fetch"
,
NULL
/*check*/
,
NULL
/*update*/
,
true
/*default*/
);
extern
HASH
tokudb_open_tables
;
extern
HASH
tokudb_open_tables
;
extern
pthread_mutex_t
tokudb_mutex
;
extern
pthread_mutex_t
tokudb_mutex
;
extern
uint32_t
tokudb_write_status_frequency
;
extern
uint32_t
tokudb_write_status_frequency
;
...
...
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