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
c4690d39
Commit
c4690d39
authored
Nov 19, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into releases/tokudb-7.5
parents
4555904b
412be21f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
1 deletion
+68
-1
mysql-test/suite/tokudb.bugs/r/db762.result
mysql-test/suite/tokudb.bugs/r/db762.result
+7
-0
mysql-test/suite/tokudb.bugs/r/db766.result
mysql-test/suite/tokudb.bugs/r/db766.result
+7
-0
mysql-test/suite/tokudb.bugs/r/db768.result
mysql-test/suite/tokudb.bugs/r/db768.result
+10
-0
mysql-test/suite/tokudb.bugs/t/db762.test
mysql-test/suite/tokudb.bugs/t/db762.test
+13
-0
mysql-test/suite/tokudb.bugs/t/db766.test
mysql-test/suite/tokudb.bugs/t/db766.test
+12
-0
mysql-test/suite/tokudb.bugs/t/db768.test
mysql-test/suite/tokudb.bugs/t/db768.test
+12
-0
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+7
-1
No files found.
mysql-test/suite/tokudb.bugs/r/db762.result
0 → 100644
View file @
c4690d39
drop table if exists t1,t2;
create table t1 (x int) engine=innodb;
lock table t1 read;
create temporary table t2 (x int) engine=tokudb;
insert into t2 values (1);
unlock tables;
drop table t1, t2;
mysql-test/suite/tokudb.bugs/r/db766.result
0 → 100644
View file @
c4690d39
set default_storage_engine=TokuDB;
drop table if exists t1;
CREATE TABLE t1(c1 INT,c2 CHAR)PARTITION BY KEY(c1) PARTITIONS 5;
insert INTO t1 values(1,1),(2,1),(2,2),(2,3);
ALTER TABLE t1 ADD UNIQUE INDEX i1(c1);
ERROR 23000: Can't write; duplicate key in table 't1'
drop table t1;
mysql-test/suite/tokudb.bugs/r/db768.result
0 → 100644
View file @
c4690d39
set default_storage_engine='tokudb';
drop table if exists t;
create table t (id int primary key);
set autocommit=OFF;
lock tables t write;
optimize table t;
Table Op Msg_type Msg_text
test.t optimize status OK
unlock tables;
drop table t;
mysql-test/suite/tokudb.bugs/t/db762.test
0 → 100644
View file @
c4690d39
# test for DB-762 and DB-767
source
include
/
have_tokudb
.
inc
;
source
include
/
have_innodb
.
inc
;
disable_warnings
;
drop
table
if
exists
t1
,
t2
;
enable_warnings
;
create
table
t1
(
x
int
)
engine
=
innodb
;
lock
table
t1
read
;
create
temporary
table
t2
(
x
int
)
engine
=
tokudb
;
insert
into
t2
values
(
1
);
unlock
tables
;
drop
table
t1
,
t2
;
mysql-test/suite/tokudb.bugs/t/db766.test
0 → 100644
View file @
c4690d39
# reproducer for DB-766
source
include
/
have_tokudb
.
inc
;
source
include
/
have_partition
.
inc
;
set
default_storage_engine
=
TokuDB
;
disable_warnings
;
drop
table
if
exists
t1
;
enable_warnings
;
CREATE
TABLE
t1
(
c1
INT
,
c2
CHAR
)
PARTITION
BY
KEY
(
c1
)
PARTITIONS
5
;
insert
INTO
t1
values
(
1
,
1
),(
2
,
1
),(
2
,
2
),(
2
,
3
);
--
error
ER_DUP_KEY
ALTER
TABLE
t1
ADD
UNIQUE
INDEX
i1
(
c1
);
drop
table
t1
;
\ No newline at end of file
mysql-test/suite/tokudb.bugs/t/db768.test
0 → 100644
View file @
c4690d39
# test case for DB-768
source
include
/
have_tokudb
.
inc
;
set
default_storage_engine
=
'tokudb'
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
create
table
t
(
id
int
primary
key
);
set
autocommit
=
OFF
;
lock
tables
t
write
;
optimize
table
t
;
unlock
tables
;
drop
table
t
;
storage/tokudb/ha_tokudb.cc
View file @
c4690d39
...
...
@@ -5980,6 +5980,8 @@ int ha_tokudb::extra(enum ha_extra_function operation) {
case
HA_EXTRA_NO_IGNORE_NO_KEY
:
using_ignore_no_key
=
false
;
break
;
case
HA_EXTRA_NOT_USED
:
break
;
// must do nothing and return 0
default:
break
;
}
...
...
@@ -6225,7 +6227,11 @@ int ha_tokudb::start_stmt(THD * thd, thr_lock_type lock_type) {
int
error
=
0
;
tokudb_trx_data
*
trx
=
(
tokudb_trx_data
*
)
thd_get_ha_data
(
thd
,
tokudb_hton
);
DBUG_ASSERT
(
trx
);
if
(
!
trx
)
{
error
=
create_tokudb_trx_data_instance
(
&
trx
);
if
(
error
)
{
goto
cleanup
;
}
thd_set_ha_data
(
thd
,
tokudb_hton
,
trx
);
}
/*
note that trx->stmt may have been already initialized as start_stmt()
...
...
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