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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
29d7a2be
Commit
29d7a2be
authored
Apr 07, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new
into neptunus.(none):/home/msvensson/mysql/mysql-5.1
parents
4b05efd0
3c7d6f8b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
157 additions
and
3 deletions
+157
-3
client/mysql.cc
client/mysql.cc
+2
-3
include/mysql.h
include/mysql.h
+1
-0
mysql-test/r/ndb_alter_table2.result
mysql-test/r/ndb_alter_table2.result
+42
-0
mysql-test/t/ndb_alter_table2.test
mysql-test/t/ndb_alter_table2.test
+82
-0
sql-common/client.c
sql-common/client.c
+21
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+9
-0
No files found.
client/mysql.cc
View file @
29d7a2be
...
...
@@ -3212,10 +3212,9 @@ com_status(String *buffer __attribute__((unused)),
mysql_free_result
(
result
);
}
#ifdef HAVE_OPENSSL
if
(
mysql
.
net
.
vio
&&
mysql
.
net
.
vio
->
ssl_arg
&&
SSL_get_cipher
((
SSL
*
)
mysql
.
net
.
vio
->
ssl_arg
))
if
(
mysql_get_ssl_cipher
(
&
mysql
))
tee_fprintf
(
stdout
,
"SSL:
\t\t\t
Cipher in use is %s
\n
"
,
SSL_get_cipher
((
SSL
*
)
mysql
.
net
.
vio
->
ssl_arg
));
mysql_get_ssl_cipher
(
&
mysql
));
else
#endif
/* HAVE_OPENSSL */
tee_puts
(
"SSL:
\t\t\t
Not in use"
,
stdout
);
...
...
include/mysql.h
View file @
29d7a2be
...
...
@@ -409,6 +409,7 @@ MYSQL * STDCALL mysql_init(MYSQL *mysql);
my_bool
STDCALL
mysql_ssl_set
(
MYSQL
*
mysql
,
const
char
*
key
,
const
char
*
cert
,
const
char
*
ca
,
const
char
*
capath
,
const
char
*
cipher
);
const
char
*
STDCALL
mysql_get_ssl_cipher
(
MYSQL
*
mysql
);
my_bool
STDCALL
mysql_change_user
(
MYSQL
*
mysql
,
const
char
*
user
,
const
char
*
passwd
,
const
char
*
db
);
MYSQL
*
STDCALL
mysql_real_connect
(
MYSQL
*
mysql
,
const
char
*
host
,
...
...
mysql-test/r/ndb_alter_table2.result
0 → 100644
View file @
29d7a2be
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
a INT NOT NULL PRIMARY KEY,
b INT NOT NULL
) ENGINE=ndbcluster;
BEGIN;
INSERT INTO t1 VALUES (9410,9412);
BEGIN;
INSERT INTO t1 VALUES (9411,9412);
BEGIN;
INSERT INTO t1 VALUES (9412,9412);
BEGIN;
INSERT INTO t1 VALUES (9413,9412);
BEGIN;
INSERT INTO t1 VALUES (9414,9412);
BEGIN;
INSERT INTO t1 VALUES (9415,9412);
ROLLBACK;
ROLLBACK;
ROLLBACK;
ROLLBACK;
ROLLBACK;
ROLLBACK;
drop table t1;
CREATE TABLE t1 (
a INT NOT NULL PRIMARY KEY,
b INT NOT NULL,
c INT NOT NULL
) ENGINE=ndbcluster;
select * from t1;
a b c
select * from t1;
a b c
select * from t1;
a b c
select * from t1;
a b c
select * from t1;
a b c
select * from t1;
a b c
drop table t1;
mysql-test/t/ndb_alter_table2.test
0 → 100644
View file @
29d7a2be
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
not_embedded
.
inc
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
connect
(
con1
,
localhost
,
root
,,
test
);
connect
(
con2
,
localhost
,
root
,,
test
);
connect
(
con3
,
localhost
,
root
,,
test
);
connect
(
con4
,
localhost
,
root
,,
test
);
connect
(
con5
,
localhost
,
root
,,
test
);
connect
(
con6
,
localhost
,
root
,,
test
);
CREATE
TABLE
t1
(
a
INT
NOT
NULL
PRIMARY
KEY
,
b
INT
NOT
NULL
)
ENGINE
=
ndbcluster
;
connection
con1
;
BEGIN
;
INSERT
INTO
t1
VALUES
(
9410
,
9412
);
connection
con2
;
BEGIN
;
--
send
INSERT
INTO
t1
VALUES
(
9411
,
9412
);
connection
con3
;
BEGIN
;
--
send
INSERT
INTO
t1
VALUES
(
9412
,
9412
);
connection
con4
;
BEGIN
;
--
send
INSERT
INTO
t1
VALUES
(
9413
,
9412
);
connection
con5
;
BEGIN
;
--
send
INSERT
INTO
t1
VALUES
(
9414
,
9412
);
connection
con6
;
BEGIN
;
--
send
INSERT
INTO
t1
VALUES
(
9415
,
9412
);
connection
con1
;
sleep
1
;
ROLLBACK
;
connection
con2
;
reap
;
ROLLBACK
;
connection
con3
;
reap
;
ROLLBACK
;
connection
con4
;
reap
;
ROLLBACK
;
connection
con5
;
reap
;
ROLLBACK
;
connection
con6
;
reap
;
ROLLBACK
;
connection
server2
;
drop
table
t1
;
CREATE
TABLE
t1
(
a
INT
NOT
NULL
PRIMARY
KEY
,
b
INT
NOT
NULL
,
c
INT
NOT
NULL
)
ENGINE
=
ndbcluster
;
connection
server1
;
select
*
from
t1
;
select
*
from
t1
;
select
*
from
t1
;
select
*
from
t1
;
select
*
from
t1
;
select
*
from
t1
;
drop
table
t1
;
sql-common/client.c
View file @
29d7a2be
...
...
@@ -1535,6 +1535,27 @@ mysql_ssl_free(MYSQL *mysql __attribute__((unused)))
mysql
->
connector_fd
=
0
;
DBUG_VOID_RETURN
;
}
/*
Return the SSL cipher (if any) used for current
connection to the server.
SYNOPSYS
mysql_get_ssl_cipher()
mysql pointer to the mysql connection
*/
const
char
*
STDCALL
mysql_get_ssl_cipher
(
MYSQL
*
mysql
)
{
DBUG_ENTER
(
"mysql_get_ssl_cipher"
);
if
(
mysql
->
net
.
vio
&&
mysql
->
net
.
vio
->
ssl_arg
)
SSL_get_cipher_name
((
SSL
*
)
mysql
->
net
.
vio
->
ssl_arg
);
DBUG_RETURN
(
NULL
);
}
#endif
/* HAVE_OPENSSL */
...
...
sql/ha_ndbcluster.cc
View file @
29d7a2be
...
...
@@ -556,8 +556,16 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
ERR_PRINT
(
err
);
switch
(
err
.
classification
)
{
case
NdbError
:
:
SchemaError
:
{
invalidate_dictionary_cache
(
TRUE
);
/* Close other open handlers not used by any thread */
TABLE_LIST
table_list
;
bzero
((
char
*
)
&
table_list
,
sizeof
(
table_list
));
table_list
.
db
=
m_dbname
;
table_list
.
alias
=
table_list
.
table_name
=
m_tabname
;
close_cached_tables
(
current_thd
,
0
,
&
table_list
);
if
(
err
.
code
==
284
)
{
/*
...
...
@@ -576,6 +584,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
DBUG_PRINT
(
"info"
,
(
"Table exists but must have changed"
));
}
break
;
}
default:
break
;
}
...
...
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