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
6f6a1289
Commit
6f6a1289
authored
Apr 03, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Plain Diff
#209 add tokudb_open_table_check_empty session variable to enable/disable may_table_be_open
parents
d2ce95d8
db470f29
Changes
3
Show 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 @
6f6a1289
...
@@ -1732,7 +1732,7 @@ int ha_tokudb::initialize_share(
...
@@ -1732,7 +1732,7 @@ int ha_tokudb::initialize_share(
init_auto_increment
();
init_auto_increment
();
}
}
if
(
may_table_be_empty
(
txn
))
{
if
(
THDVAR
(
thd
,
open_table_check_empty
)
&&
may_table_be_empty
(
txn
))
{
share
->
try_table_lock
=
true
;
share
->
try_table_lock
=
true
;
}
}
else
{
else
{
...
...
storage/tokudb/hatoku_hton.cc
View file @
6f6a1289
...
@@ -1394,6 +1394,7 @@ static struct st_mysql_sys_var *tokudb_system_variables[] = {
...
@@ -1394,6 +1394,7 @@ static struct st_mysql_sys_var *tokudb_system_variables[] = {
MYSQL_SYSVAR
(
loader_memory_size
),
MYSQL_SYSVAR
(
loader_memory_size
),
MYSQL_SYSVAR
(
hide_default_row_format
),
MYSQL_SYSVAR
(
hide_default_row_format
),
MYSQL_SYSVAR
(
killed_time
),
MYSQL_SYSVAR
(
killed_time
),
MYSQL_SYSVAR
(
open_table_check_empty
),
NULL
NULL
};
};
...
...
storage/tokudb/hatoku_hton.h
View file @
6f6a1289
...
@@ -484,6 +484,8 @@ static int tokudb_killed_callback(void) {
...
@@ -484,6 +484,8 @@ static int tokudb_killed_callback(void) {
return
thd
->
killed
;
return
thd
->
killed
;
}
}
static
MYSQL_THDVAR_BOOL
(
open_table_check_empty
,
0
,
"Check if table is empty at first open"
,
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