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
38a4780f
Commit
38a4780f
authored
Dec 08, 2003
by
gluh@gluh.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test for 'init_slave' variable
parent
a09d6409
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
mysql-test/r/rpl_init_slave.result
mysql-test/r/rpl_init_slave.result
+12
-11
mysql-test/t/rpl_init_slave-slave.opt
mysql-test/t/rpl_init_slave-slave.opt
+1
-1
mysql-test/t/rpl_init_slave.test
mysql-test/t/rpl_init_slave.test
+5
-5
No files found.
mysql-test/r/rpl_init_slave.result
View file @
38a4780f
...
...
@@ -4,20 +4,21 @@ reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
show variables like 'init_slave';
Variable_name Value
init_slave set global max_connections=500
show variables like 'max_connections';
Variable_name Value
max_connections 500
reset master;
create table t1(n int);
insert into t1 values (@a), (@b);
select * from t1;
n
NULL
NULL
select * from t1;
n
1
2
show variables like 'init_slave';
Variable_name Value
init_slave
show variables like 'max_connections';
Variable_name Value
max_connections 100
set global init_connect="set @c=1";
show variables like 'init_connect';
Variable_name Value
init_connect set @c=1
drop table t1;
stop slave;
mysql-test/t/rpl_init_slave-slave.opt
View file @
38a4780f
--init-slave="set
@a=1;set @b=2
"
--init-slave="set
global max_connections=500
"
mysql-test/t/rpl_init_slave.test
View file @
38a4780f
...
...
@@ -6,20 +6,20 @@ source include/master-slave.inc;
save_master_pos
;
connection
slave
;
sleep
1
;
show
variables
like
'init_slave'
;
show
variables
like
'max_connections'
;
sync_with_master
;
reset
master
;
connection
master
;
create
table
t1
(
n
int
);
insert
into
t1
values
(
@
a
),
(
@
b
);
select
*
from
t1
;
show
variables
like
'init_slave'
;
show
variables
like
'max_connections'
;
save_master_pos
;
connection
slave
;
sync_with_master
;
select
*
from
t1
;
set
global
init_connect
=
"set @c=1"
;
show
variables
like
'init_connect'
;
connection
master
;
drop
table
t1
;
save_master_pos
;
connection
slave
;
sync_with_master
;
...
...
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