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
3d7ce2ce
Commit
3d7ce2ce
authored
Jul 20, 2007
by
acurtis/antony@ltamd64.xiphis.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge xiphis.org:/anubis/antony/work/mysql-5.1-engines
into xiphis.org:/anubis/antony/work/p1-bug29875.1
parents
2edad3d4
395233b4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
0 deletions
+62
-0
mysql-test/r/federated.result
mysql-test/r/federated.result
+22
-0
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+1
-0
mysql-test/t/federated.test
mysql-test/t/federated.test
+26
-0
storage/federated/ha_federated.cc
storage/federated/ha_federated.cc
+12
-0
storage/federated/ha_federated.h
storage/federated/ha_federated.h
+1
-0
No files found.
mysql-test/r/federated.result
View file @
3d7ce2ce
...
@@ -1882,6 +1882,28 @@ a b
...
@@ -1882,6 +1882,28 @@ a b
2 Curly
2 Curly
drop table federated.t1;
drop table federated.t1;
drop table federated.t1;
drop table federated.t1;
CREATE TABLE federated.t1 (a INT PRIMARY KEY) DEFAULT CHARSET=utf8;
CREATE TABLE federated.t1 (a INT PRIMARY KEY)
ENGINE=FEDERATED
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1'
DEFAULT CHARSET=utf8;
SELECT transactions FROM information_schema.engines WHERE engine="FEDERATED";
transactions
NO
INSERT INTO federated.t1 VALUES (1);
SET autocommit=0;
INSERT INTO federated.t1 VALUES (2);
ROLLBACK;
Warnings:
Warning 1196 Some non-transactional changed tables couldn't be rolled back
SET autocommit=1;
SELECT * FROM federated.t1;
a
1
2
DROP TABLE federated.t1;
DROP TABLE federated.t1;
End of 5.1 tests
DROP TABLE IF EXISTS federated.t1;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE IF EXISTS federated;
DROP DATABASE IF EXISTS federated;
DROP TABLE IF EXISTS federated.t1;
DROP TABLE IF EXISTS federated.t1;
...
...
mysql-test/t/disabled.def
View file @
3d7ce2ce
...
@@ -25,3 +25,4 @@ ctype_big5 : BUG#26711 2007-06-21 Lars Test has never worked on Do
...
@@ -25,3 +25,4 @@ ctype_big5 : BUG#26711 2007-06-21 Lars Test has never worked on Do
mysql_upgrade : Bug#28560 test links to /usr/local/mysql/lib libraries, causes non-determinism and failures on ABI breakage
mysql_upgrade : Bug#28560 test links to /usr/local/mysql/lib libraries, causes non-determinism and failures on ABI breakage
federated_innodb : Bug#29522 failed assertion in binlog_close_connection()
federated_innodb : Bug#29522 failed assertion in binlog_close_connection()
federated_transactions : Bug#29523 Transactions do not work
mysql-test/t/federated.test
View file @
3d7ce2ce
...
@@ -1683,4 +1683,30 @@ connection slave;
...
@@ -1683,4 +1683,30 @@ connection slave;
drop
table
federated
.
t1
;
drop
table
federated
.
t1
;
#
# BUG#29875 Disable support for transactions
#
connection
slave
;
CREATE
TABLE
federated
.
t1
(
a
INT
PRIMARY
KEY
)
DEFAULT
CHARSET
=
utf8
;
connection
master
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
CREATE
TABLE
federated
.
t1
(
a
INT
PRIMARY
KEY
)
ENGINE
=
FEDERATED
CONNECTION
=
'mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/t1'
DEFAULT
CHARSET
=
utf8
;
SELECT
transactions
FROM
information_schema
.
engines
WHERE
engine
=
"FEDERATED"
;
INSERT
INTO
federated
.
t1
VALUES
(
1
);
SET
autocommit
=
0
;
INSERT
INTO
federated
.
t1
VALUES
(
2
);
ROLLBACK
;
SET
autocommit
=
1
;
SELECT
*
FROM
federated
.
t1
;
DROP
TABLE
federated
.
t1
;
connection
slave
;
DROP
TABLE
federated
.
t1
;
--
echo
End
of
5.1
tests
source
include
/
federated_cleanup
.
inc
;
source
include
/
federated_cleanup
.
inc
;
storage/federated/ha_federated.cc
View file @
3d7ce2ce
...
@@ -449,6 +449,13 @@ int federated_db_init(void *p)
...
@@ -449,6 +449,13 @@ int federated_db_init(void *p)
federated_hton
->
create
=
federated_create_handler
;
federated_hton
->
create
=
federated_create_handler
;
federated_hton
->
flags
=
HTON_ALTER_NOT_SUPPORTED
|
HTON_NO_PARTITION
;
federated_hton
->
flags
=
HTON_ALTER_NOT_SUPPORTED
|
HTON_NO_PARTITION
;
/*
Support for transactions disabled until WL#2952 fixes it.
We do it like this to avoid "defined but not used" compiler warnings.
*/
federated_hton
->
commit
=
0
;
federated_hton
->
rollback
=
0
;
if
(
pthread_mutex_init
(
&
federated_mutex
,
MY_MUTEX_INIT_FAST
))
if
(
pthread_mutex_init
(
&
federated_mutex
,
MY_MUTEX_INIT_FAST
))
goto
error
;
goto
error
;
if
(
!
hash_init
(
&
federated_open_tables
,
&
my_charset_bin
,
32
,
0
,
0
,
if
(
!
hash_init
(
&
federated_open_tables
,
&
my_charset_bin
,
32
,
0
,
0
,
...
@@ -3163,6 +3170,10 @@ int ha_federated::external_lock(THD *thd, int lock_type)
...
@@ -3163,6 +3170,10 @@ int ha_federated::external_lock(THD *thd, int lock_type)
ha_federated
*
trx
=
(
ha_federated
*
)
thd
->
ha_data
[
ht
->
slot
];
ha_federated
*
trx
=
(
ha_federated
*
)
thd
->
ha_data
[
ht
->
slot
];
DBUG_ENTER
(
"ha_federated::external_lock"
);
DBUG_ENTER
(
"ha_federated::external_lock"
);
/*
Support for transactions disabled until WL#2952 fixes it.
*/
#ifdef XXX_SUPERCEDED_BY_WL2952
if
(
lock_type
!=
F_UNLCK
)
if
(
lock_type
!=
F_UNLCK
)
{
{
DBUG_PRINT
(
"info"
,(
"federated not lock F_UNLCK"
));
DBUG_PRINT
(
"info"
,(
"federated not lock F_UNLCK"
));
...
@@ -3216,6 +3227,7 @@ int ha_federated::external_lock(THD *thd, int lock_type)
...
@@ -3216,6 +3227,7 @@ int ha_federated::external_lock(THD *thd, int lock_type)
}
}
}
}
}
}
#endif
/* XXX_SUPERCEDED_BY_WL2952 */
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
...
...
storage/federated/ha_federated.h
View file @
3d7ce2ce
...
@@ -141,6 +141,7 @@ public:
...
@@ -141,6 +141,7 @@ public:
|
HA_REC_NOT_IN_SEQ
|
HA_AUTO_PART_KEY
|
HA_CAN_INDEX_BLOBS
|
|
HA_REC_NOT_IN_SEQ
|
HA_AUTO_PART_KEY
|
HA_CAN_INDEX_BLOBS
|
HA_BINLOG_ROW_CAPABLE
|
HA_BINLOG_STMT_CAPABLE
|
HA_BINLOG_ROW_CAPABLE
|
HA_BINLOG_STMT_CAPABLE
|
HA_NO_PREFIX_CHAR_KEYS
|
HA_PRIMARY_KEY_REQUIRED_FOR_DELETE
|
HA_NO_PREFIX_CHAR_KEYS
|
HA_PRIMARY_KEY_REQUIRED_FOR_DELETE
|
HA_NO_TRANSACTIONS
/* until fixed by WL#2952 */
|
HA_PARTIAL_COLUMN_READ
|
HA_NULL_IN_KEY
);
HA_PARTIAL_COLUMN_READ
|
HA_NULL_IN_KEY
);
}
}
/*
/*
...
...
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