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
60093be8
Commit
60093be8
authored
Dec 08, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test for 'init_slave' variable
parent
306b58b1
Changes
3
Hide 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 @
60093be8
...
@@ -4,20 +4,21 @@ reset master;
...
@@ -4,20 +4,21 @@ reset master;
reset slave;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
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;
reset master;
create table t1(n int);
show variables like 'init_slave';
insert into t1 values (@a), (@b);
Variable_name Value
select * from t1;
init_slave
n
show variables like 'max_connections';
NULL
Variable_name Value
NULL
max_connections 100
select * from t1;
n
1
2
set global init_connect="set @c=1";
set global init_connect="set @c=1";
show variables like 'init_connect';
show variables like 'init_connect';
Variable_name Value
Variable_name Value
init_connect set @c=1
init_connect set @c=1
drop table t1;
stop slave;
stop slave;
mysql-test/t/rpl_init_slave-slave.opt
View file @
60093be8
--init-slave="set
@a=1;set @b=2
"
--init-slave="set
global max_connections=500
"
mysql-test/t/rpl_init_slave.test
View file @
60093be8
...
@@ -6,20 +6,20 @@ source include/master-slave.inc;
...
@@ -6,20 +6,20 @@ source include/master-slave.inc;
save_master_pos
;
save_master_pos
;
connection
slave
;
connection
slave
;
sleep
1
;
show
variables
like
'init_slave'
;
show
variables
like
'max_connections'
;
sync_with_master
;
sync_with_master
;
reset
master
;
reset
master
;
connection
master
;
connection
master
;
create
table
t1
(
n
int
);
show
variables
like
'init_slave'
;
insert
into
t1
values
(
@
a
),
(
@
b
);
show
variables
like
'max_connections'
;
select
*
from
t1
;
save_master_pos
;
save_master_pos
;
connection
slave
;
connection
slave
;
sync_with_master
;
sync_with_master
;
select
*
from
t1
;
set
global
init_connect
=
"set @c=1"
;
set
global
init_connect
=
"set @c=1"
;
show
variables
like
'init_connect'
;
show
variables
like
'init_connect'
;
connection
master
;
connection
master
;
drop
table
t1
;
save_master_pos
;
save_master_pos
;
connection
slave
;
connection
slave
;
sync_with_master
;
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