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
c82aaf4b
Commit
c82aaf4b
authored
Jun 30, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-rpl
parents
e3613247
325d8002
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
86 additions
and
16 deletions
+86
-16
mysql-test/lib/mtr_cases.pl
mysql-test/lib/mtr_cases.pl
+1
-0
mysql-test/r/rpl_ndb_ctype_ucs2_def.result
mysql-test/r/rpl_ndb_ctype_ucs2_def.result
+9
-0
mysql-test/t/ndb_alter_table.test
mysql-test/t/ndb_alter_table.test
+0
-1
mysql-test/t/ndb_alter_table2.test
mysql-test/t/ndb_alter_table2.test
+0
-1
mysql-test/t/ndb_alter_table3.test
mysql-test/t/ndb_alter_table3.test
+0
-1
mysql-test/t/ndb_autodiscover3.test
mysql-test/t/ndb_autodiscover3.test
+25
-7
mysql-test/t/ndb_binlog_ddl_multi.test
mysql-test/t/ndb_binlog_ddl_multi.test
+0
-1
mysql-test/t/ndb_binlog_log_bin.test
mysql-test/t/ndb_binlog_log_bin.test
+0
-1
mysql-test/t/ndb_binlog_multi.test
mysql-test/t/ndb_binlog_multi.test
+0
-1
mysql-test/t/ndb_cache_multi.test
mysql-test/t/ndb_cache_multi.test
+0
-1
mysql-test/t/ndb_cache_multi2.test
mysql-test/t/ndb_cache_multi2.test
+0
-1
mysql-test/t/ndb_single_user.test
mysql-test/t/ndb_single_user.test
+0
-1
mysql-test/t/rpl_ndb_ctype_ucs2_def-master.opt
mysql-test/t/rpl_ndb_ctype_ucs2_def-master.opt
+1
-0
mysql-test/t/rpl_ndb_ctype_ucs2_def.test
mysql-test/t/rpl_ndb_ctype_ucs2_def.test
+42
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+8
-0
No files found.
mysql-test/lib/mtr_cases.pl
View file @
c82aaf4b
...
...
@@ -631,6 +631,7 @@ our @tags=
["
include/big_test.inc
",
"
big_test
",
1
],
["
include/have_debug.inc
",
"
need_debug
",
1
],
["
include/have_ndb.inc
",
"
ndb_test
",
1
],
["
include/have_multi_ndb.inc
",
"
ndb_test
",
1
],
["
include/have_ndb_extra.inc
",
"
ndb_extra
",
1
],
["
require_manager
",
"
require_manager
",
1
],
);
...
...
mysql-test/r/rpl_ndb_ctype_ucs2_def.result
0 → 100644
View file @
c82aaf4b
show variables like 'collation_server';
Variable_name Value
collation_server ucs2_unicode_ci
show variables like "%character_set_ser%";
Variable_name Value
character_set_server ucs2
DROP TABLE IF EXISTS t1;
create table t1 (a int);
drop table t1;
mysql-test/t/ndb_alter_table.test
View file @
c82aaf4b
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/ndb_alter_table2.test
View file @
c82aaf4b
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/ndb_alter_table3.test
View file @
c82aaf4b
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/ndb_autodiscover3.test
View file @
c82aaf4b
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
ndb_default_cluster
.
inc
--
source
include
/
not_embedded
.
inc
...
...
@@ -10,6 +9,9 @@
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
connect
(
con1
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,);
connect
(
con2
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT1
,);
# Workaround for Bug#27644
# ndb: connecting api node/mysqld may "steal" node_id from running mysqld
# - let ndb_waiter use a fixed node id so "steal" cannot happen
...
...
@@ -27,8 +29,14 @@ insert into t1 values (1);
--
exec
$NDB_MGM
--
no
-
defaults
-
e
"all restart"
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_waiter
--
no
-
defaults
-
c
$connect_str
>>
$NDB_TOOLS_OUTPUT
# Wait for mysqld to reconnect and exit from readonly mode
# Should preferrably be a "while (!"select ndb_readonly")" loop
sleep
2
;
--
disable_query_log
--
connection
con1
--
source
include
/
ndb_not_readonly
.
inc
--
connection
con2
--
source
include
/
ndb_not_readonly
.
inc
--
enable_query_log
--
connection
server1
--
error
1297
insert
into
t1
values
(
2
);
--
error
1296
...
...
@@ -47,8 +55,13 @@ select * from t2 order by a limit 3;
--
exec
$NDB_MGM
--
no
-
defaults
-
e
"all restart -i"
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_waiter
--
no
-
defaults
-
c
$connect_str
>>
$NDB_TOOLS_OUTPUT
# to ensure mysqld has connected again, and recreated system tables
--
exec
$NDB_TOOLS_DIR
/
ndb_desc
--
no
-
defaults
-
r
30
-
d
cluster
ndb_apply_status
>>
$NDB_TOOLS_OUTPUT
sleep
2
;
--
disable_query_log
--
connection
con1
--
source
include
/
ndb_not_readonly
.
inc
--
connection
con2
--
source
include
/
ndb_not_readonly
.
inc
--
enable_query_log
--
connection
server2
--
error
ER_NO_SUCH_TABLE
select
*
from
t2
;
...
...
@@ -66,8 +79,13 @@ reset master;
--
exec
$NDB_MGM
--
no
-
defaults
-
e
"all restart -i"
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_waiter
--
no
-
defaults
-
c
$connect_str
>>
$NDB_TOOLS_OUTPUT
# to ensure mysqld has connected again, and recreated system tables
--
exec
$NDB_TOOLS_DIR
/
ndb_desc
--
no
-
defaults
-
r
30
-
d
cluster
ndb_apply_status
>>
$NDB_TOOLS_OUTPUT
sleep
2
;
--
disable_query_log
--
connection
con1
--
source
include
/
ndb_not_readonly
.
inc
--
connection
con2
--
source
include
/
ndb_not_readonly
.
inc
--
enable_query_log
--
connection
server1
--
error
ER_NO_SUCH_TABLE
select
*
from
t2
;
...
...
mysql-test/t/ndb_binlog_ddl_multi.test
View file @
c82aaf4b
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
have_binlog_format_row
.
inc
...
...
mysql-test/t/ndb_binlog_log_bin.test
View file @
c82aaf4b
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
have_binlog_format_row
.
inc
...
...
mysql-test/t/ndb_binlog_multi.test
View file @
c82aaf4b
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
have_binlog_format_row
.
inc
...
...
mysql-test/t/ndb_cache_multi.test
View file @
c82aaf4b
--
source
include
/
have_query_cache
.
inc
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/ndb_cache_multi2.test
View file @
c82aaf4b
--
source
include
/
have_query_cache
.
inc
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/ndb_single_user.test
View file @
c82aaf4b
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_multi_ndb
.
inc
--
source
include
/
ndb_default_cluster
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/rpl_ndb_ctype_ucs2_def-master.opt
0 → 100644
View file @
c82aaf4b
--default-collation=ucs2_unicode_ci --default-character-set=ucs2,latin1
mysql-test/t/rpl_ndb_ctype_ucs2_def.test
0 → 100644
View file @
c82aaf4b
--
source
include
/
have_ucs2
.
inc
--
source
include
/
have_ndb
.
inc
--
source
include
/
ndb_master
-
slave
.
inc
#
# MySQL Bug#15276: MySQL ignores collation-server
#
show
variables
like
'collation_server'
;
#
# Check that NDB replication doesn't explode with default charset
# being multibyte.
#
# Theorised that this could be a problem when dealing with:
# Bug #27404 util thd mysql_parse sig11 when mysqld default multibyte charset
#
# Sort of related to:
# Bug#18004 Connecting crashes server when default charset is UCS2
#
#
show
variables
like
"%character_set_ser%"
;
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
create
table
t1
(
a
int
)
ENGINE
=
NDB
;
drop
table
t1
;
--
connection
master
CREATE
TABLE
`t1`
(
`nid`
int
(
11
)
NOT
NULL
default
'0'
,
`nom`
char
(
4
)
default
NULL
,
`prenom`
char
(
4
)
default
NULL
,
PRIMARY
KEY
(
`nid`
))
ENGINE
=
ndbcluster
;
INSERT
INTO
t1
VALUES
(
1
,
"XYZ1"
,
"ABC1"
);
select
*
from
t1
order
by
nid
;
--
sync_slave_with_master
# connect to slave and ensure data it there.
--
connection
slave
select
*
from
t1
order
by
nid
;
sql/ha_ndbcluster.cc
View file @
c82aaf4b
...
...
@@ -8976,6 +8976,14 @@ pthread_handler_t ndb_util_thread_func(void *arg __attribute__((unused)))
thd
->
main_security_ctx
.
master_access
=
~
0
;
thd
->
main_security_ctx
.
priv_user
=
0
;
CHARSET_INFO
*
charset_connection
;
charset_connection
=
get_charset_by_csname
(
"utf8"
,
MY_CS_PRIMARY
,
MYF
(
MY_WME
));
thd
->
variables
.
character_set_client
=
charset_connection
;
thd
->
variables
.
character_set_results
=
charset_connection
;
thd
->
variables
.
collation_connection
=
charset_connection
;
thd
->
update_charset
();
/* Signal successful initialization */
ndb_util_thread_running
=
1
;
pthread_cond_signal
(
&
COND_ndb_util_ready
);
...
...
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