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
8f476ba2
Commit
8f476ba2
authored
Nov 08, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Tokutek/ft-engine
parents
cec8b297
f31c88c1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
68 deletions
+40
-68
scripts/common.sh
scripts/common.sh
+3
-6
scripts/run.mysql.tests.bash
scripts/run.mysql.tests.bash
+1
-1
scripts/run.sql.bench.bash
scripts/run.sql.bench.bash
+1
-1
scripts/run.tests.7.0.3.bash
scripts/run.tests.7.0.3.bash
+0
-50
scripts/setup.mysql.bash
scripts/setup.mysql.bash
+26
-9
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+9
-1
No files found.
scripts/common.sh
View file @
8f476ba2
...
@@ -157,15 +157,12 @@ function parse_mysqlbuild() {
...
@@ -157,15 +157,12 @@ function parse_mysqlbuild() {
else
else
git_tag
=
HEAD
git_tag
=
HEAD
# setup _tree defaults
# setup _tree defaults
if
[
-z
$mysql_tree
]
;
then
mysql_tree
=
$mysql_version
;
fi
if
[
-z
$mysql_tree
]
;
then
mysql_tree
=
$mysql_
distro
-
$mysql_
version
;
fi
if
[
-z
$jemalloc_tree
]
;
then
jemalloc_tree
=
$jemalloc_version
;
fi
if
[
-z
$jemalloc_tree
]
;
then
jemalloc_tree
=
$jemalloc_version
;
fi
fi
fi
# 5.6 is in another repo
mysql_repo
=
$mysql_distro
mysql_repo
=
$mysql_distro
if
[[
$mysql_distro
=
mysql
&&
$mysql_version
=
~ ^5.6
]]
;
then
# 5.6 is in another repo
mysql_repo
=
mysql56
if
[[
$mysql_distro
=
mysql
&&
$mysql_version
=
~ ^5.6
]]
;
then
mysql_repo
=
mysql56
;
fi
mysql_tree
=
$mysql_distro
-
$mysql_version
fi
else
else
exitcode
=
1
exitcode
=
1
fi
fi
...
...
scripts/run.mysql.tests.bash
View file @
8f476ba2
...
@@ -52,7 +52,7 @@ if [[ $mysqlbuild =~ (.*)-(tokudb\-.*)-(linux)-(x86_64) ]] ; then
...
@@ -52,7 +52,7 @@ if [[ $mysqlbuild =~ (.*)-(tokudb\-.*)-(linux)-(x86_64) ]] ; then
system
=
${
BASH_REMATCH
[3]
}
system
=
${
BASH_REMATCH
[3]
}
arch
=
${
BASH_REMATCH
[4]
}
arch
=
${
BASH_REMATCH
[4]
}
else
else
e
xit
1
e
cho
$mysqlbuild
is not a tokudb build
fi
fi
if
[
-d
$mysql_basedir
/lib/mysql
]
;
then
if
[
-d
$mysql_basedir
/lib/mysql
]
;
then
...
...
scripts/run.sql.bench.bash
View file @
8f476ba2
...
@@ -51,7 +51,7 @@ if [[ $mysqlbuild =~ (.*)-(tokudb-.*)-(linux)-(x86_64) ]] ; then
...
@@ -51,7 +51,7 @@ if [[ $mysqlbuild =~ (.*)-(tokudb-.*)-(linux)-(x86_64) ]] ; then
system
=
${
BASH_REMATCH
[3]
}
system
=
${
BASH_REMATCH
[3]
}
arch
=
${
BASH_REMATCH
[4]
}
arch
=
${
BASH_REMATCH
[4]
}
else
else
e
xit
1
e
cho
$mysqlbuild
is not a tokudb build
fi
fi
# goto the base directory
# goto the base directory
...
...
scripts/run.tests.7.0.3.bash
deleted
100644 → 0
View file @
cec8b297
mysqlbuild
=
mysql-5.5.30-tokudb-7.0.3-e-linux-x86_64
setup.mysql.bash
--mysqlbuild
=
$mysqlbuild
--install
=
0
if
[
$?
=
0
]
;
then
run.sql.bench.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
fi
mysqlbuild
=
mariadb-5.5.30-tokudb-7.0.3-e-linux-x86_64
setup.mysql.bash
--mysqlbuild
=
$mysqlbuild
--install
=
0
if
[
$?
=
0
]
;
then
run.atc.ontime.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--engine
=
tokudb
fi
mysqlbuild
=
mariadb-5.5.30-tokudb-7.0.3-linux-x86_64
setup.mysql.bash
--mysqlbuild
=
$mysqlbuild
--install
=
0
if
[
$?
=
0
]
;
then
run.sql.bench.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
fi
mysqlbuild
=
mariadb-5.5.30-tokudb-7.0.3-e-linux-x86_64
setup.mysql.bash
--mysqlbuild
=
$mysqlbuild
--install
=
0
if
[
$?
=
0
]
;
then
run.sql.bench.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
fi
mysqlbuild
=
mariadb-5.5.30-tokudb-7.0.3-e-linux-x86_64
setup.mysql.bash
--mysqlbuild
=
$mysqlbuild
--install
=
0
if
[
$?
=
0
]
;
then
run.tpch.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--SCALE
=
1
run.tpch.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--SCALE
=
1
--tokudb_load_save_space
=
1
run.tpch.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--SCALE
=
10
run.tpch.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--SCALE
=
10
--tokudb_load_save_space
=
1
run.tpch.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--SCALE
=
30
run.tpch.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--SCALE
=
30
--tokudb_load_save_space
=
1
fi
mysqlbuild
=
mariadb-5.5.30-tokudb-7.0.3-e-linux-x86_64
setup.mysql.bash
--mysqlbuild
=
$mysqlbuild
--install
=
0
if
[
$?
=
0
]
;
then
run.iibench.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--max_rows
=
1000000000
--insert_only
=
0
run.iibench.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--max_rows
=
1000000000
--replace_into
run.iibench.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--max_rows
=
1000000000
--insert_ignore
run.iibench.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--max_rows
=
1000000000
--insert_only
=
1
fi
mysqlbuild
=
mariadb-5.5.30-tokudb-7.0.3-e-linux-x86_64
setup.mysql.bash
--mysqlbuild
=
$mysqlbuild
--install
=
0
if
[
$?
=
0
]
;
then
run.tpch.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--SCALE
=
100
--compare
=
0
run.tpch.bash
--mysqlbuild
=
$mysqlbuild
--commit
=
1
--SCALE
=
100
--compare
=
0
--tokudb_load_save_space
=
1
fi
scripts/setup.mysql.bash
View file @
8f476ba2
...
@@ -10,7 +10,8 @@ shutdown=1
...
@@ -10,7 +10,8 @@ shutdown=1
install
=
1
install
=
1
startup
=
1
startup
=
1
s3bucket
=
tokutek-mysql-build
s3bucket
=
tokutek-mysql-build
builtins
=
"mysqlbuild shutdown install startup s3bucket"
sleeptime
=
60
builtins
=
"mysqlbuild shutdown install startup s3bucket sleeptime"
mysqld_args
=
"--user=mysql --core-file --core-file-size=unlimited"
mysqld_args
=
"--user=mysql --core-file --core-file-size=unlimited"
defaultsfile
=
""
defaultsfile
=
""
if
[
-f
/etc/
$(
whoami
)
.my.cnf
]
;
then
if
[
-f
/etc/
$(
whoami
)
.my.cnf
]
;
then
...
@@ -50,7 +51,7 @@ if [[ $mysqlbuild =~ (.*)-(tokudb\-.*)-(linux)-(x86_64) ]] ; then
...
@@ -50,7 +51,7 @@ if [[ $mysqlbuild =~ (.*)-(tokudb\-.*)-(linux)-(x86_64) ]] ; then
system
=
${
BASH_REMATCH
[3]
}
system
=
${
BASH_REMATCH
[3]
}
arch
=
${
BASH_REMATCH
[4]
}
arch
=
${
BASH_REMATCH
[4]
}
else
else
e
xit
1
e
cho
$muysqlbuild
is not a tokudb build
fi
fi
mysqltarball
=
$mysqlbuild
.tar.gz
mysqltarball
=
$mysqlbuild
.tar.gz
...
@@ -79,6 +80,12 @@ if [ $? -ne 0 ] ; then
...
@@ -79,6 +80,12 @@ if [ $? -ne 0 ] ; then
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
fi
fi
# set ldpath
ldpath
=
""
if
[
-d
/usr/local/gcc-4.7/lib64
]
;
then
ldpath
=
"export LD_LIBRARY_PATH=/usr/local/gcc-4.7/lib64:
\$
LD_LIBRARY_PATH;"
fi
# shutdown mysql
# shutdown mysql
if
[
$shutdown
-ne
0
]
;
then
if
[
$shutdown
-ne
0
]
;
then
if
[
-x
/etc/init.d/mysql
]
;
then
if
[
-x
/etc/init.d/mysql
]
;
then
...
@@ -86,7 +93,7 @@ if [ $shutdown -ne 0 ] ; then
...
@@ -86,7 +93,7 @@ if [ $shutdown -ne 0 ] ; then
else
else
/usr/local/mysql/bin/mysqladmin shutdown
/usr/local/mysql/bin/mysqladmin shutdown
fi
fi
sleep
60
sleep
$sleeptime
fi
fi
pushd
/usr/local
pushd
/usr/local
...
@@ -112,6 +119,9 @@ if [ ! -d $mysqlbuild ] || [ $install -ne 0 ] ; then
...
@@ -112,6 +119,9 @@ if [ ! -d $mysqlbuild ] || [ $install -ne 0 ] ; then
tar
xzf
$basedir
/
$mysqltarball
tar
xzf
$basedir
/
$mysqltarball
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
ln
-s
$mysqldir
/usr/local/mysql
ln
-s
$mysqldir
/usr/local/mysql
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
ln
-s
$mysqldir
/usr/local/
$mysqlbuild
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
installdb
=
$mysqlbuild
/bin/mysql_install_db
installdb
=
$mysqlbuild
/bin/mysql_install_db
if
[
!
-f
$installdb
]
;
then
if
[
!
-f
$installdb
]
;
then
...
@@ -127,16 +137,18 @@ if [ ! -d $mysqlbuild ] || [ $install -ne 0 ] ; then
...
@@ -127,16 +137,18 @@ if [ ! -d $mysqlbuild ] || [ $install -ne 0 ] ; then
fi
fi
if
[
-z
"
$defaultsfile
"
]
;
then
if
[
-z
"
$defaultsfile
"
]
;
then
sudo
$installdb
--user
=
mysql
--basedir
=
$PWD
/
$mysqlbuild
--datadir
=
$PWD
/
$mysqlbuild
/data
default_arg
=
""
else
else
sudo
$installdb
--defaults-file
=
$defaultsfile
--user
=
mysql
--basedir
=
$PWD
/
$mysqlbuild
--datadir
=
$PWD
/
$mysqlbuild
/data
default_arg
=
"--defaults-file=
$defaultsfile
"
fi
fi
sudo
bash
-c
"
$ldpath
$installdb
$default_arg
--user=mysql --basedir=
$PWD
/
$mysqlbuild
--datadir=
$PWD
/
$mysqlbuild
/data"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
else
else
# create link
# create link
ln
-s
$mysqldir
/usr/local/mysql
ln
-s
$mysqldir
/usr/local/mysql
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
ln
-s
$mysqldir
/usr/local/
$mysqlbuild
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
fi
fi
popd
popd
...
@@ -151,9 +163,14 @@ if [ $startup -ne 0 ] ; then
...
@@ -151,9 +163,14 @@ if [ $startup -ne 0 ] ; then
if
[
-x
/etc/init.d/mysql
]
;
then
if
[
-x
/etc/init.d/mysql
]
;
then
sudo
setsid /etc/init.d/mysql start
sudo
setsid /etc/init.d/mysql start
else
else
sudo
-b
/usr/local/mysql/bin/mysqld_safe
$mysqld_args
>
/dev/null 2>&1 &
if
[
-z
"
$defaultsfile
"
]
;
then
default_arg
=
""
else
default_arg
=
"--defaults-file=
$defaultsfile
"
fi
sudo
-b
bash
-c
"
$ldpath
/usr/local/mysql/bin/mysqld_safe
$default_arg
$mysqld_args
"
>
/dev/null 2>&1 &
fi
fi
sleep
60
sleep
$sleeptime
# add mysql grants
# add mysql grants
/usr/local/mysql/bin/mysql
-u
root
-e
"grant all on *.* to tokubuild@localhost"
/usr/local/mysql/bin/mysql
-u
root
-e
"grant all on *.* to tokubuild@localhost"
...
...
storage/tokudb/ha_tokudb.cc
View file @
8f476ba2
...
@@ -6168,7 +6168,13 @@ int ha_tokudb::create_txn(THD* thd, tokudb_trx_data* trx) {
...
@@ -6168,7 +6168,13 @@ int ha_tokudb::create_txn(THD* thd, tokudb_trx_data* trx) {
(
thd_sql_command
(
thd
)
!=
SQLCOM_ALTER_TABLE
))
{
(
thd_sql_command
(
thd
)
!=
SQLCOM_ALTER_TABLE
))
{
/* QQQ We have to start a master transaction */
/* QQQ We have to start a master transaction */
// DBUG_PRINT("trans", ("starting transaction all "));
// DBUG_PRINT("trans", ("starting transaction all "));
if
((
error
=
txn_begin
(
db_env
,
NULL
,
&
trx
->
all
,
toku_iso_to_txn_flag
(
toku_iso_level
),
thd
)))
{
uint32_t
txn_begin_flags
=
toku_iso_to_txn_flag
(
toku_iso_level
);
#if 50614 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50699
if
(
thd_tx_is_read_only
(
thd
))
{
txn_begin_flags
|=
DB_TXN_READ_ONLY
;
}
#endif
if
((
error
=
txn_begin
(
db_env
,
NULL
,
&
trx
->
all
,
txn_begin_flags
,
thd
)))
{
trx
->
tokudb_lock_count
--
;
// We didn't get the lock
trx
->
tokudb_lock_count
--
;
// We didn't get the lock
goto
cleanup
;
goto
cleanup
;
}
}
...
@@ -6614,9 +6620,11 @@ void ha_tokudb::update_create_info(HA_CREATE_INFO* create_info) {
...
@@ -6614,9 +6620,11 @@ void ha_tokudb::update_create_info(HA_CREATE_INFO* create_info) {
// show create table asks us to update this create_info, this makes it
// show create table asks us to update this create_info, this makes it
// so we'll always show what compression type we're using
// so we'll always show what compression type we're using
create_info
->
row_type
=
get_row_type
();
create_info
->
row_type
=
get_row_type
();
#if TOKU_INCLUDE_ROW_TYPE_COMPRESSION
if
(
create_info
->
row_type
==
ROW_TYPE_TOKU_ZLIB
&&
THDVAR
(
ha_thd
(),
hide_default_row_format
)
!=
0
)
{
if
(
create_info
->
row_type
==
ROW_TYPE_TOKU_ZLIB
&&
THDVAR
(
ha_thd
(),
hide_default_row_format
)
!=
0
)
{
create_info
->
row_type
=
ROW_TYPE_DEFAULT
;
create_info
->
row_type
=
ROW_TYPE_DEFAULT
;
}
}
#endif
}
}
}
}
...
...
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