Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7e5be50c
Commit
7e5be50c
authored
Jun 25, 2013
by
antirez
Browse files
Test: replication-3 test speedup in master-slave setup.
parent
fb674688
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/replication-3.tcl
View file @
7e5be50c
...
@@ -2,9 +2,12 @@ start_server {tags {"repl"}} {
...
@@ -2,9 +2,12 @@ start_server {tags {"repl"}} {
start_server
{}
{
start_server
{}
{
test
{
First server should have role slave after SLAVEOF
}
{
test
{
First server should have role slave after SLAVEOF
}
{
r -1 slaveof
[
srv 0 host
]
[
srv 0 port
]
r -1 slaveof
[
srv 0 host
]
[
srv 0 port
]
after 1000
wait_for_condition 50 100
{
s -1 role
[
s -1 master_link_status
]
eq
{
up
}
}
{
slave
}
}
else
{
fail
"Replication not started."
}
}
if
{
$::accurate
}
{
set numops 50000
}
else
{
set numops 5000
}
if
{
$::accurate
}
{
set numops 50000
}
else
{
set numops 5000
}
...
...
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